<?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 Device ID Retrieval Not Working in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Device-ID-Retrieval-Not-Working/m-p/5596675#M9628</link>
    <description>&lt;P&gt;I'm trying to get a list of device id's connected to my spotify account but when I run my code to retrieve my device information it does not seem to work. I was able to get my auth token through Curl but not device information. This is the code i'm using&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;curl --request GET \&lt;BR /&gt;--url &lt;A href="https://api.spotify.com/v1/me/player/devices" target="_blank" rel="noopener"&gt;https://api.spotify.com/v1/me/player/devices&lt;/A&gt; \&lt;BR /&gt;--header 'Authorization: Bearer "Access Token" '&lt;BR /&gt;&lt;BR /&gt;I've obviously replaced "access token" with mine but it still doesn't work. Please help, this is the error which I get&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;"error": {&lt;BR /&gt;"status": 404,&lt;BR /&gt;"message": "Invalid username"&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jun 2023 23:19:54 GMT</pubDate>
    <dc:creator>DevMistry</dc:creator>
    <dc:date>2023-06-15T23:19:54Z</dc:date>
    <item>
      <title>Device ID Retrieval Not Working</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Device-ID-Retrieval-Not-Working/m-p/5596675#M9628</link>
      <description>&lt;P&gt;I'm trying to get a list of device id's connected to my spotify account but when I run my code to retrieve my device information it does not seem to work. I was able to get my auth token through Curl but not device information. This is the code i'm using&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;curl --request GET \&lt;BR /&gt;--url &lt;A href="https://api.spotify.com/v1/me/player/devices" target="_blank" rel="noopener"&gt;https://api.spotify.com/v1/me/player/devices&lt;/A&gt; \&lt;BR /&gt;--header 'Authorization: Bearer "Access Token" '&lt;BR /&gt;&lt;BR /&gt;I've obviously replaced "access token" with mine but it still doesn't work. Please help, this is the error which I get&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;"error": {&lt;BR /&gt;"status": 404,&lt;BR /&gt;"message": "Invalid username"&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 23:19:54 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Device-ID-Retrieval-Not-Working/m-p/5596675#M9628</guid>
      <dc:creator>DevMistry</dc:creator>
      <dc:date>2023-06-15T23:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Device ID Retrieval Not Working</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Device-ID-Retrieval-Not-Working/m-p/5596910#M9634</link>
      <description>&lt;P&gt;You aren't able to use the access token with that endpoint, because the token you'll get with Curl is a token for endpoints that can only be used with Client Credentials.&lt;/P&gt;&lt;P&gt;You'll need to get an access token through the Authorization Code Flow (with the required scopes) if you want to use that endpoint. That's not possible with Curl.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 11:45:48 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Device-ID-Retrieval-Not-Working/m-p/5596910#M9634</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2023-06-16T11:45:48Z</dc:date>
    </item>
  </channel>
</rss>

