<?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 Re: Help with state change in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Help-with-state-change/m-p/6279396#M14835</link>
    <description>&lt;P&gt;Oh for tasker, I'm all set. Thanks!&lt;BR /&gt;&lt;BR /&gt;Do you know how to set up the autoweb API to pull the repeat or shuffle state?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Aug 2024 14:15:05 GMT</pubDate>
    <dc:creator>spookiekabuki</dc:creator>
    <dc:date>2024-08-21T14:15:05Z</dc:date>
    <item>
      <title>Help with state change</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Help-with-state-change/m-p/6275417#M14812</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;BR /&gt;US&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;pixel 7 pro&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Android 14&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am trying to create an API using either Autoweb, or an https put, to change the state to Repeat All. I have been unable to get it to work and I am hoping someone can help me.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 19:55:28 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Help-with-state-change/m-p/6275417#M14812</guid>
      <dc:creator>spookiekabuki</dc:creator>
      <dc:date>2024-08-19T19:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help with state change</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Help-with-state-change/m-p/6276804#M14819</link>
      <description>&lt;P&gt;Hi spookiekabuki,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It sounds like you're working on creating an API with either AutoWeb or an HTTPS PUT request to change the repeat mode. Could you share what you’ve tried so far? I’d love to help you figure out what’s going wrong and get it working smoothly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To change the repeat mode for a user's playback, you can use the Set Repeat Mode endpoint. Just a heads-up—this API is available only for Spotify Premium users.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's how the different repeat modes work:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;track: Repeats the current track, perfect for when you just can’t get enough of that one song.&lt;/LI&gt;&lt;LI&gt;context: Repeats the entire playlist or album, great for when you want to keep the vibe going.&lt;/LI&gt;&lt;LI&gt;off: Turns repeat off, so the music flows without looping.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know where you’re at with your setup, and we’ll work through it together to get your repeat mode set just the way you want it.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 12:00:48 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Help-with-state-change/m-p/6276804#M14819</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2024-08-20T12:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help with state change</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Help-with-state-change/m-p/6277143#M14820</link>
      <description>&lt;P&gt;Full disclosure, I do not know what I'm doing. How familiar with Autoweb are you? I can send a set-up screenshot or I can try to tack state onto an existing call like a get info call, but I do not know what components I need to make it work.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;HTTPS PUT might just be easier if all I need to do is craft the proper URL?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 14:45:14 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Help-with-state-change/m-p/6277143#M14820</guid>
      <dc:creator>spookiekabuki</dc:creator>
      <dc:date>2024-08-20T14:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help with state change</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Help-with-state-change/m-p/6277259#M14821</link>
      <description>&lt;P&gt;Hi&amp;nbsp;spookiekabuki,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the Brows Web Services function to add the Spotify API.&lt;/P&gt;&lt;P&gt;After that, I went to Your Web Services → Spotify → the + next to API Actions.&lt;/P&gt;&lt;P&gt;I choose for the offered help, and filled in &lt;EM&gt;&lt;A href="https://api.spotify.com/v1/me/player/repeat?state=context" target="_blank"&gt;https://api.spotify.com/v1/me/player/repeat?state=context&lt;/A&gt;&lt;/EM&gt; as the URL. Then I said&amp;nbsp;yes to the question if&amp;nbsp;&lt;EM&gt;state&lt;/EM&gt; was a variable, and if&amp;nbsp;&lt;EM&gt;context&lt;/EM&gt; was a value. Lastly, I choose for PUT. (I've condensed the steps a bit to keep this brief.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;This worked for me anyway.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know where you're getting stuck!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 15:50:01 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Help-with-state-change/m-p/6277259#M14821</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2024-08-20T15:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Help with state change</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Help-with-state-change/m-p/6277625#M14823</link>
      <description>&lt;P&gt;Ok this is getting me close. I followed your steps and it was identical except for the following:&lt;BR /&gt;Went to Spotify&amp;gt; + &amp;gt; Yes for help &amp;gt; Pasted that URL &amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The the variable questions&lt;BR /&gt;v1? &amp;gt; no&lt;BR /&gt;me &amp;gt; no&lt;BR /&gt;player &amp;gt; no&lt;/P&gt;&lt;P&gt;repeat &amp;gt; no&lt;BR /&gt;state &amp;gt; yes &amp;gt; default value = context&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Then on to the rest: Name = 'State=context'&lt;BR /&gt;Desc = "Change state to context'&lt;BR /&gt;Type &amp;gt; PUT&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Test and generate output &amp;gt; Yes&lt;BR /&gt;Press check mark&lt;BR /&gt;&lt;BR /&gt;I get the attached screen with a small toast error at the bottom and ion the list of APIs, State is listed as "Not yet tested..."&lt;/P&gt;&lt;P&gt;Ive also attached what happens when I try to run it the AutoWeb API in Tasker. It's the same/similar error as in the toast.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 18:46:09 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Help-with-state-change/m-p/6277625#M14823</guid>
      <dc:creator>spookiekabuki</dc:creator>
      <dc:date>2024-08-20T18:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Help with state change</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Help-with-state-change/m-p/6277633#M14824</link>
      <description>&lt;P&gt;Oh hmm second update: I think it's changing the state, and it might just be the outputs that are throwing an error.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 18:49:12 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Help-with-state-change/m-p/6277633#M14824</guid>
      <dc:creator>spookiekabuki</dc:creator>
      <dc:date>2024-08-20T18:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Help with state change</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Help-with-state-change/m-p/6277672#M14825</link>
      <description>&lt;P&gt;Yes, at my first try, it also gave me an error. Good to see it works for you also &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 19:07:03 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Help-with-state-change/m-p/6277672#M14825</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2024-08-20T19:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help with state change</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Help-with-state-change/m-p/6277699#M14826</link>
      <description>&lt;P&gt;Do you know what's causing the error?&lt;BR /&gt;&lt;BR /&gt;Also, Can you help me walk through how to GET state. The ideal workflow is to pull state and if &amp;lt;&amp;gt; context, change it. I would run this during specific scenarios, where Player=Spotify and Headphones=Connected. The scenario isn't important though, just the GET api&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 19:23:29 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Help-with-state-change/m-p/6277699#M14826</guid>
      <dc:creator>spookiekabuki</dc:creator>
      <dc:date>2024-08-20T19:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help with state change</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Help-with-state-change/m-p/6279343#M14833</link>
      <description>&lt;P&gt;I think the error is caused by the API isn't detecting that a player is active.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know how to detect if the player is Spotify, but I have found out how you can detect which bluetooth device is connected:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Connect your bluetooth device&lt;/LI&gt;&lt;LI&gt;In Tasker, go to the "Profiles" tab&lt;/LI&gt;&lt;LI&gt;Choose for "State"&lt;/LI&gt;&lt;LI&gt;Filter on "BT Connected" and tap it&lt;/LI&gt;&lt;LI&gt;Next to "Address" tap the magnifying &lt;span class="lia-unicode-emoji" title=":magnifying_glass_tilted_left:"&gt;🔍&lt;/span&gt; glass&lt;/LI&gt;&lt;LI&gt;Select your BT device&lt;/LI&gt;&lt;LI&gt;Hit the back arrow at the top&lt;/LI&gt;&lt;LI&gt;Make a new task, or connect a already made one&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I hope this helps you further.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 13:51:47 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Help-with-state-change/m-p/6279343#M14833</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2024-08-21T13:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help with state change</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Help-with-state-change/m-p/6279396#M14835</link>
      <description>&lt;P&gt;Oh for tasker, I'm all set. Thanks!&lt;BR /&gt;&lt;BR /&gt;Do you know how to set up the autoweb API to pull the repeat or shuffle state?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 14:15:05 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Help-with-state-change/m-p/6279396#M14835</guid>
      <dc:creator>spookiekabuki</dc:creator>
      <dc:date>2024-08-21T14:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help with state change</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Help-with-state-change/m-p/6279567#M14838</link>
      <description>&lt;P&gt;It's documented at this page: &lt;A href="https://developer.spotify.com/documentation/web-api/reference/get-information-about-the-users-current-playback" target="_blank" rel="noopener"&gt;Get Playback State&lt;/A&gt;&lt;/P&gt;&lt;P&gt;So, with a GET request to&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;https://api.spotify.com/v1/me/player?market=US&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;(You have to change the market to your own at the last step of the setup proces or afterwards. Changing it in the URL directly doesn't work.)&lt;/P&gt;&lt;P&gt;After you've set up the API action for that endpoint, you'll can add an API Output.&lt;/P&gt;&lt;P&gt;Here are my inputs:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Tasker Variable:&amp;nbsp;&lt;SPAN&gt;shuffle_state_spotify&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Name: Shuffle State Spotify&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Result Type: body&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;JSON path:&amp;nbsp;shuffle_state&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;You can add another API Output for repeat_state.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 17:15:42 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Help-with-state-change/m-p/6279567#M14838</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2024-08-21T17:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Help with state change</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Help-with-state-change/m-p/6280088#M14839</link>
      <description>Thanks. IDK what I'm doing wrong but I didn't get it to return true or&lt;BR /&gt;false for shuffle state, and it didn't error either&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Aug 2024 18:42:04 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Help-with-state-change/m-p/6280088#M14839</guid>
      <dc:creator>spookiekabuki</dc:creator>
      <dc:date>2024-08-21T18:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help with state change</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Help-with-state-change/m-p/6280129#M14840</link>
      <description>&lt;P&gt;As an alternative, you can long press the Spotify Playback State API Action, then select Generate Output. Then tap the checkmark at the top. Deselect any values you don't need, and tap OK.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 18:58:15 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Help-with-state-change/m-p/6280129#M14840</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2024-08-21T18:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Help with state change</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Help-with-state-change/m-p/6280225#M14841</link>
      <description>I still can't get the one output I care about, which in this test if the&lt;BR /&gt;shuffle state&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Aug 2024 19:38:04 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Help-with-state-change/m-p/6280225#M14841</guid>
      <dc:creator>spookiekabuki</dc:creator>
      <dc:date>2024-08-21T19:38:04Z</dc:date>
    </item>
  </channel>
</rss>

