<?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 Client-side only for album pre-save? in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Client-side-only-for-album-pre-save/m-p/5022534#M992</link>
    <description>&lt;P&gt;I am mainly a musician but have some web dev experience that has gotten rusty over the past few years. I am trying to roll my own Album "pre-save" that doesn't request user info but saves my upcoming album to their library.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to authorize Spotify to save an album only on the client side?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, I have this URL&lt;/P&gt;&lt;P&gt;&lt;A href="https://accounts.spotify.com/authorize?client_id=[MY" target="_blank" rel="noopener"&gt;https://accounts.spotify.com/authorize?client_id=[MY&lt;/A&gt;&amp;nbsp;CLIENT ID]&amp;amp;albums&amp;amp;ids=[ALBUM URI]&amp;amp;redirect_uri=[MY REDIRECT URI]&lt;SPAN class=""&gt;&amp;amp;scope=user-library-modify&amp;amp;response_type=token&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works as far as authorization and redirect but the album isn't saved. I also cannot find any documentation on a client side only request so I assume this request needs to be PHP? Even though I don't want access to any user info?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
    <pubDate>Sun, 23 Aug 2020 16:52:50 GMT</pubDate>
    <dc:creator>speedo123</dc:creator>
    <dc:date>2020-08-23T16:52:50Z</dc:date>
    <item>
      <title>Client-side only for album pre-save?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Client-side-only-for-album-pre-save/m-p/5022534#M992</link>
      <description>&lt;P&gt;I am mainly a musician but have some web dev experience that has gotten rusty over the past few years. I am trying to roll my own Album "pre-save" that doesn't request user info but saves my upcoming album to their library.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to authorize Spotify to save an album only on the client side?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, I have this URL&lt;/P&gt;&lt;P&gt;&lt;A href="https://accounts.spotify.com/authorize?client_id=[MY" target="_blank" rel="noopener"&gt;https://accounts.spotify.com/authorize?client_id=[MY&lt;/A&gt;&amp;nbsp;CLIENT ID]&amp;amp;albums&amp;amp;ids=[ALBUM URI]&amp;amp;redirect_uri=[MY REDIRECT URI]&lt;SPAN class=""&gt;&amp;amp;scope=user-library-modify&amp;amp;response_type=token&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works as far as authorization and redirect but the album isn't saved. I also cannot find any documentation on a client side only request so I assume this request needs to be PHP? Even though I don't want access to any user info?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Sun, 23 Aug 2020 16:52:50 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Client-side-only-for-album-pre-save/m-p/5022534#M992</guid>
      <dc:creator>speedo123</dc:creator>
      <dc:date>2020-08-23T16:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Client-side only for album pre-save?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Client-side-only-for-album-pre-save/m-p/5022610#M993</link>
      <description>&lt;P&gt;I've made some progress and realized I needed an Ajax function on the callback.&lt;/P&gt;&lt;P&gt;So now I have it set up and it seems to be sending the request info but I am getting a 403 'Insufficient client scope' error when trying to save an album even though the request and auth have 'user-library-modify' set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$.ajax({&lt;BR /&gt;url: '&lt;A href="https://api.spotify.com/v1/me/albums?ids=7qkBrY5sRxEt41dvzH6lMH" target="_blank"&gt;https://api.spotify.com/v1/me/albums?ids=7qkBrY5sRxEt41dvzH6lMH&lt;/A&gt;',&lt;BR /&gt;headers: {&lt;BR /&gt;'Authorization': 'Bearer ' + accessToken&lt;BR /&gt;},&lt;BR /&gt;success: function(response) {&lt;BR /&gt;console.log(response);&lt;BR /&gt;},&lt;BR /&gt;error: function(response){&lt;BR /&gt;console.log(response);&lt;BR /&gt;}&lt;BR /&gt;})&lt;/P&gt;</description>
      <pubDate>Sun, 23 Aug 2020 20:53:14 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Client-side-only-for-album-pre-save/m-p/5022610#M993</guid>
      <dc:creator>speedo123</dc:creator>
      <dc:date>2020-08-23T20:53:14Z</dc:date>
    </item>
  </channel>
</rss>

