<?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 invalid client in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/invalid-client/m-p/5540744#M8829</link>
    <description>&lt;P&gt;&lt;SPAN&gt;hi im trying to run some simple code to test out spotifys api&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;import spotipy&lt;BR /&gt;from spotipy.oauth2 import SpotifyClientCredentials&lt;/P&gt;&lt;P&gt;# Set up Spotipy client credentials&lt;BR /&gt;client_id = 'YOUR_CLIENT_ID'&lt;BR /&gt;client_secret = 'YOUR_CLIENT_SECRET'&lt;BR /&gt;client_credentials_manager = SpotifyClientCredentials(client_id=client_id, client_secret=client_secret)&lt;BR /&gt;sp = spotipy.Spotify(client_credentials_manager=client_credentials_manager)&lt;/P&gt;&lt;P&gt;# Retrieve a list of all devices connected to the user's Spotify account&lt;BR /&gt;devices = sp.devices()&lt;/P&gt;&lt;P&gt;# Print out the device IDs and names&lt;BR /&gt;for device in devices['devices']:&lt;BR /&gt;print(f"Device ID: {device['id']}, Device Name: {device['name']}")&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;I replaced&amp;nbsp;YOUR_CLIENT_ID, and&amp;nbsp;YOUR_CLIENT_SECRET with the id and secret provided in my app in spotify for developers but&lt;BR /&gt;&lt;BR /&gt;i'm recieving an "invalid_client" error suggesting that the client ID and/or client secret provided in the code are not valid.&lt;BR /&gt;I have checked many times and they are exactly the same.&lt;BR /&gt;&lt;BR /&gt;please help me i dont know what is wrong&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Apr 2023 08:14:10 GMT</pubDate>
    <dc:creator>quiteanonymous</dc:creator>
    <dc:date>2023-04-17T08:14:10Z</dc:date>
    <item>
      <title>invalid client</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/invalid-client/m-p/5540744#M8829</link>
      <description>&lt;P&gt;&lt;SPAN&gt;hi im trying to run some simple code to test out spotifys api&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;import spotipy&lt;BR /&gt;from spotipy.oauth2 import SpotifyClientCredentials&lt;/P&gt;&lt;P&gt;# Set up Spotipy client credentials&lt;BR /&gt;client_id = 'YOUR_CLIENT_ID'&lt;BR /&gt;client_secret = 'YOUR_CLIENT_SECRET'&lt;BR /&gt;client_credentials_manager = SpotifyClientCredentials(client_id=client_id, client_secret=client_secret)&lt;BR /&gt;sp = spotipy.Spotify(client_credentials_manager=client_credentials_manager)&lt;/P&gt;&lt;P&gt;# Retrieve a list of all devices connected to the user's Spotify account&lt;BR /&gt;devices = sp.devices()&lt;/P&gt;&lt;P&gt;# Print out the device IDs and names&lt;BR /&gt;for device in devices['devices']:&lt;BR /&gt;print(f"Device ID: {device['id']}, Device Name: {device['name']}")&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;I replaced&amp;nbsp;YOUR_CLIENT_ID, and&amp;nbsp;YOUR_CLIENT_SECRET with the id and secret provided in my app in spotify for developers but&lt;BR /&gt;&lt;BR /&gt;i'm recieving an "invalid_client" error suggesting that the client ID and/or client secret provided in the code are not valid.&lt;BR /&gt;I have checked many times and they are exactly the same.&lt;BR /&gt;&lt;BR /&gt;please help me i dont know what is wrong&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 08:14:10 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/invalid-client/m-p/5540744#M8829</guid>
      <dc:creator>quiteanonymous</dc:creator>
      <dc:date>2023-04-17T08:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: invalid client</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/invalid-client/m-p/5540808#M8830</link>
      <description>&lt;P&gt;You can't use&amp;nbsp;&lt;EM&gt;sp.devices()&lt;/EM&gt; with Client Credentials.&lt;/P&gt;&lt;P&gt;You should use the code &lt;A href="https://github.com/spotipy-dev/spotipy#with-user-authentication" target="_blank" rel="noopener"&gt;With user authentication&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The scope you should use is &lt;A href="https://developer.spotify.com/documentation/web-api/concepts/scopes#user-read-playback-state" target="_blank" rel="noopener"&gt;user-read-playback-state&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 11:08:39 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/invalid-client/m-p/5540808#M8830</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2023-04-17T11:08:39Z</dc:date>
    </item>
  </channel>
</rss>

