<?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 Please help with ESP32 api problems in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Please-help-with-ESP32-api-problems/m-p/7052596#M18441</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Premium&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;America&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;(ESP32)&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;windows(to code it in)&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I have an ESP32 that i wanted to use to control my spotify. However, due to the spotify API changes that dont let me use HTTP anymore, I cannot sign in to the arduino and i have so many problems and everything is falling apart. Here is my code&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;#include &amp;lt;WiFi.h&amp;gt;
#include &amp;lt;SpotifyEsp32.h&amp;gt;
char* ssid = "&amp;lt;snip - Moderator Edit&amp;gt;";
const char* password = "&amp;lt;snip - Moderator Edit&amp;gt;";
char* client_id = "&amp;lt;snip - Moderator Edit&amp;gt;";
char* client_secret = "&amp;lt;snip - Moderator Edit&amp;gt;";
char* refresh_token = "&amp;lt;snip - Moderator Edit&amp;gt;";

Spotify sp(client_id, client_secret, refresh_token);
void setup() {
  Serial.begin(115200);
  connect_to_wifi();
  sp.begin();
  while(!sp.is_auth()){
    sp.handle_client();
  }
  Serial.println("Authenticated");
  Serial.println(sp.current_artist_names());

}

void loop() {
  // put your main code here, to run repeatedly:

}
void connect_to_wifi(){
  WiFi.begin(ssid, password);
  Serial.print("Connecting to Wifi...");
  while (WiFi.status() != WL_CONNECTED) {
    delay(1000);
    Serial.print(".");
  }
  Serial.print("\nConnected to Wifi!!!\n");
}&lt;/LI-CODE&gt;
&lt;P&gt;I used a tutorial to get it but this is the output when i run the code&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;...&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;DIV&gt;
&lt;PRE&gt;Connected to Wifi!!!&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;DIV&gt;
&lt;PRE&gt;Authenticated&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;DIV&gt;
&lt;PRE&gt;Something went wrong&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt;I really want to fix it but i dont know how and i would love if someone could help me otherwise i may give up on the project&lt;/P&gt;</description>
    <pubDate>Wed, 16 Jul 2025 06:34:02 GMT</pubDate>
    <dc:creator>FoxyOnFire</dc:creator>
    <dc:date>2025-07-16T06:34:02Z</dc:date>
    <item>
      <title>Please help with ESP32 api problems</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Please-help-with-ESP32-api-problems/m-p/7052596#M18441</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Premium&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;America&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;(ESP32)&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;windows(to code it in)&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I have an ESP32 that i wanted to use to control my spotify. However, due to the spotify API changes that dont let me use HTTP anymore, I cannot sign in to the arduino and i have so many problems and everything is falling apart. Here is my code&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;#include &amp;lt;WiFi.h&amp;gt;
#include &amp;lt;SpotifyEsp32.h&amp;gt;
char* ssid = "&amp;lt;snip - Moderator Edit&amp;gt;";
const char* password = "&amp;lt;snip - Moderator Edit&amp;gt;";
char* client_id = "&amp;lt;snip - Moderator Edit&amp;gt;";
char* client_secret = "&amp;lt;snip - Moderator Edit&amp;gt;";
char* refresh_token = "&amp;lt;snip - Moderator Edit&amp;gt;";

Spotify sp(client_id, client_secret, refresh_token);
void setup() {
  Serial.begin(115200);
  connect_to_wifi();
  sp.begin();
  while(!sp.is_auth()){
    sp.handle_client();
  }
  Serial.println("Authenticated");
  Serial.println(sp.current_artist_names());

}

void loop() {
  // put your main code here, to run repeatedly:

}
void connect_to_wifi(){
  WiFi.begin(ssid, password);
  Serial.print("Connecting to Wifi...");
  while (WiFi.status() != WL_CONNECTED) {
    delay(1000);
    Serial.print(".");
  }
  Serial.print("\nConnected to Wifi!!!\n");
}&lt;/LI-CODE&gt;
&lt;P&gt;I used a tutorial to get it but this is the output when i run the code&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;...&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;DIV&gt;
&lt;PRE&gt;Connected to Wifi!!!&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;DIV&gt;
&lt;PRE&gt;Authenticated&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;DIV&gt;
&lt;PRE&gt;Something went wrong&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt;I really want to fix it but i dont know how and i would love if someone could help me otherwise i may give up on the project&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2025 06:34:02 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Please-help-with-ESP32-api-problems/m-p/7052596#M18441</guid>
      <dc:creator>FoxyOnFire</dc:creator>
      <dc:date>2025-07-16T06:34:02Z</dc:date>
    </item>
  </channel>
</rss>

