<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Data binding with Authorization code PKCE in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Data-binding-with-Authorization-code-PKCE/m-p/6545731#M15846</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am learning to code with the Spotify API. I tried playing with the demoware in the web api github repo. I am trying to understand how the data binding works in the example, and when I searched up the syntax, or for 'basic javascript data binding' I have not been able to find information regarding the method that is used in the tutorial. The most popular result I have seen is for the knockout framework, and while the syntax seems to be a bit similar, I do not believe it is used. In fact, the documentation says that it only employs basic data binding.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From my understanding after analyzing the code, the data binding in the PKCE example works by matching the html data-bind attribute's value in a html element with the attribute name in the json response for the api request. For example, there is an attribute called 'display_name' in the response for getting the user's profile endpoint. Similarly, there is an element in the html code with a data-bind attribute with the value: 'display_name'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I wanted to try listing multiple song names on the page, so I tried using the top user songs api. I was able to console log a concatenation of all the songs, but I was not able to bind each individual song to a corresponding element.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering if anyone else know how to do this? Do I need to use another method or framework for data-binding?&lt;/P&gt;</description>
    <pubDate>Fri, 29 Nov 2024 22:19:59 GMT</pubDate>
    <dc:creator>learntolearn</dc:creator>
    <dc:date>2024-11-29T22:19:59Z</dc:date>
    <item>
      <title>Data binding with Authorization code PKCE</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Data-binding-with-Authorization-code-PKCE/m-p/6545731#M15846</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am learning to code with the Spotify API. I tried playing with the demoware in the web api github repo. I am trying to understand how the data binding works in the example, and when I searched up the syntax, or for 'basic javascript data binding' I have not been able to find information regarding the method that is used in the tutorial. The most popular result I have seen is for the knockout framework, and while the syntax seems to be a bit similar, I do not believe it is used. In fact, the documentation says that it only employs basic data binding.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From my understanding after analyzing the code, the data binding in the PKCE example works by matching the html data-bind attribute's value in a html element with the attribute name in the json response for the api request. For example, there is an attribute called 'display_name' in the response for getting the user's profile endpoint. Similarly, there is an element in the html code with a data-bind attribute with the value: 'display_name'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I wanted to try listing multiple song names on the page, so I tried using the top user songs api. I was able to console log a concatenation of all the songs, but I was not able to bind each individual song to a corresponding element.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering if anyone else know how to do this? Do I need to use another method or framework for data-binding?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 22:19:59 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Data-binding-with-Authorization-code-PKCE/m-p/6545731#M15846</guid>
      <dc:creator>learntolearn</dc:creator>
      <dc:date>2024-11-29T22:19:59Z</dc:date>
    </item>
  </channel>
</rss>

