<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>VoiceBot RSS: SCRIPT: Spotify listen to Track or Playlist</title>
<atom:link href="https://www.voicebot.net/Discussions/RSS/?TopicID=578ba091-608d-4310-b6f5-85d04a8b4369" rel="self" type="application/rss+xml" />
<link>https://www.voicebot.net/Discussions/RSS/?TopicID=578ba091-608d-4310-b6f5-85d04a8b4369</link>
<description>VoiceBot RSS: SCRIPT: Spotify listen to Track or Playlist</description>
<lastBuildDate>Thu, 30 Apr 2026 11:32:59 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.voicebot.net/Discussions/RSS/?TopicID=578ba091-608d-4310-b6f5-85d04a8b4369</generator>
<item>
<title>RE: SCRIPT: Spotify listen to Track or Playlist</title>
<link>https://www.voicebot.net/Discussions/View/script-spotify-listen-to-track-or-playlist/?ID=578ba091-608d-4310-b6f5-85d04a8b4369#5</link>
<pubDate>Mon, 13 Mar 2017 10:24:34 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/script-spotify-listen-to-track-or-playlist/?ID=578ba091-608d-4310-b6f5-85d04a8b4369#5</guid>
<category>VoiceBot</category>
<description><![CDATA[UPDATE: If you are getting a fake token, please add User-Agent field before getting OAuth token.
Code
Copy
Select All
web.Headers.Set("User-Agent", "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36");]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
<b>UPDATE:</b> If you are getting a <b>fake token</b>, please <b>add User-Agent field before</b> getting OAuth token.<br/>
<div class="col-md-12 BoxWrap"><div class="Box table-responsive"><a name="code" style="width:0; height:0;"></a><h2 class="TableTitle" style="border:0"><div class="TableTitleText">Code</div><div class="TitleButtons"><div class="TableTitleButton"><a href="#" onclick="return false;" data-clipboard-target="#code019dde29deba75ccadc7b408a3001765" class="ClipboardCopyControl"><img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019dde29deba75ccadc7b408a3001765Js'); return false;"><img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Select All</span></a></div></div></h2><div class="TableTitleContent table-responsive"><div class="AceEditorWrapper" style="border-top:solid 1px var(--color-default-border);padding:0"><pre id="code019dde29deba75ccadc7b408a3001765Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">web.Headers.Set("User-Agent", "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36");</pre><textarea id="code019dde29deba75ccadc7b408a3001765" name="code019dde29deba75ccadc7b408a3001765" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div>
</div>
]]></content:encoded>
</item>
<item>
<title>RE: SCRIPT: Spotify listen to Track or Playlist</title>
<link>https://www.voicebot.net/Discussions/View/script-spotify-listen-to-track-or-playlist/?ID=578ba091-608d-4310-b6f5-85d04a8b4369#4</link>
<pubDate>Sat, 04 Mar 2017 17:30:43 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/script-spotify-listen-to-track-or-playlist/?ID=578ba091-608d-4310-b6f5-85d04a8b4369#4</guid>
<category>VoiceBot</category>
<description><![CDATA[Yes, you missing a using directive System.Net
The entire script will look like this:Code
Copy
Select All
using System;
using System.Drawing;
using System.Net;
public static class VoiceBotScript
{
public static void Run(IntPtr windowHandle)
{
string spotiuri = "spotify:user:spotify:play...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Yes, you missing a using directive System.Net<br/>
The entire script will look like this:<div class="col-md-12 BoxWrap"><div class="Box table-responsive"><a name="code" style="width:0; height:0;"></a><h2 class="TableTitle" style="border:0"><div class="TableTitleText">Code</div><div class="TitleButtons"><div class="TableTitleButton"><a href="#" onclick="return false;" data-clipboard-target="#code019dde29dec5741bb2bc99fb7f41aebc" class="ClipboardCopyControl"><img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019dde29dec5741bb2bc99fb7f41aebcJs'); return false;"><img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Select All</span></a></div></div></h2><div class="TableTitleContent table-responsive"><div class="AceEditorWrapper" style="border-top:solid 1px var(--color-default-border);padding:0"><pre id="code019dde29dec5741bb2bc99fb7f41aebcJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">using System;
using System.Drawing;
using System.Net;

public static class VoiceBotScript
{
public static void Run(IntPtr windowHandle)
{
            string spotiuri = "spotify:user:spotify:playlist:5O2ERf8kAYARVVdfCKZ9G7";
            string spotibase = "https://abcdefghij.spotilocal.com:4370/";

            WebClient web = new WebClient();
            web.Headers.Add("Origin", "https://open.spotify.com");

            string csrf = web.DownloadString(spotibase + "simplecsrf/token.json");
            csrf = csrf.Substring(12);
            csrf = csrf.Substring(0, 32);

            string oauth = web.DownloadString("https://open.spotify.com/token");
            oauth = oauth.Substring(6);
            oauth = oauth.Substring(0, oauth.Length - 2);

            web.DownloadString(spotibase + "remote/play.json?oauth=" + oauth + "&csrf=" + csrf + "&uri=" + spotiuri + "&context=" + spotiuri);
}
}</pre><textarea id="code019dde29dec5741bb2bc99fb7f41aebc" name="code019dde29dec5741bb2bc99fb7f41aebc" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div>
</div>
]]></content:encoded>
</item>
<item>
<title>RE: SCRIPT: Spotify listen to Track or Playlist</title>
<link>https://www.voicebot.net/Discussions/View/script-spotify-listen-to-track-or-playlist/?ID=578ba091-608d-4310-b6f5-85d04a8b4369#3</link>
<pubDate>Sat, 04 Mar 2017 15:57:27 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/script-spotify-listen-to-track-or-playlist/?ID=578ba091-608d-4310-b6f5-85d04a8b4369#3</guid>
<category>VoiceBot</category>
<description><![CDATA[This one does not work. Am I missing someting? I added the code to an empty makro-code window and selected C#.
It says errors in Line 4 & 7]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
This one does not work. Am I missing someting? I added the code to an empty makro-code window and selected C#.<br/>
<br/>
It says errors in Line 4 & 7
</div>
]]></content:encoded>
</item>
<item>
<title>RE: SCRIPT: Spotify listen to Track or Playlist</title>
<link>https://www.voicebot.net/Discussions/View/script-spotify-listen-to-track-or-playlist/?ID=578ba091-608d-4310-b6f5-85d04a8b4369#2</link>
<pubDate>Tue, 28 Feb 2017 21:15:34 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/script-spotify-listen-to-track-or-playlist/?ID=578ba091-608d-4310-b6f5-85d04a8b4369#2</guid>
<category>VoiceBot</category>
<description><![CDATA[Thanks for sending this over! We'll add it to the repository]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Thanks for sending this over! We'll add it to the repository <img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/face-smile.light.svg" alt=":)" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:16px;height:16px;" HelpButtonData=":)" HelpButtonDataAlign="BelowMiddle" />
</div>
]]></content:encoded>
</item>
<item>
<title>SCRIPT: Spotify listen to Track or Playlist</title>
<link>https://www.voicebot.net/Discussions/View/script-spotify-listen-to-track-or-playlist/?ID=578ba091-608d-4310-b6f5-85d04a8b4369</link>
<pubDate>Sun, 26 Feb 2017 00:04:47 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/script-spotify-listen-to-track-or-playlist/?ID=578ba091-608d-4310-b6f5-85d04a8b4369</guid>
<category>VoiceBot</category>
<description><![CDATA[Replace spotiuri with your Spotify URI track or Playlist.
Code
Copy
Select All
// using System.Net; // at beginning of code.
String spotiuri = "spotify:user:spotify:playlist:5O2ERf8kAYARVVdfCKZ9G7";
String spotibase = "https://abcdefghij.spotilocal.com:4370/";
WebClient web = new WebClient...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Replace <b>spotiuri</b> with your Spotify URI track or Playlist.<br/>
<br/>
<div class="col-md-12 BoxWrap"><div class="Box table-responsive"><a name="code" style="width:0; height:0;"></a><h2 class="TableTitle" style="border:0"><div class="TableTitleText">Code</div><div class="TitleButtons"><div class="TableTitleButton"><a href="#" onclick="return false;" data-clipboard-target="#code019dde29ded3700da27ce62457101d29" class="ClipboardCopyControl"><img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019dde29ded3700da27ce62457101d29Js'); return false;"><img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Select All</span></a></div></div></h2><div class="TableTitleContent table-responsive"><div class="AceEditorWrapper" style="border-top:solid 1px var(--color-default-border);padding:0"><pre id="code019dde29ded3700da27ce62457101d29Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">// using System.Net; // at beginning of code.

String spotiuri = "spotify:user:spotify:playlist:5O2ERf8kAYARVVdfCKZ9G7";
String spotibase = "https://abcdefghij.spotilocal.com:4370/";

WebClient web = new WebClient();
web.Headers.Add("Origin", "https://open.spotify.com");

String csrf = web.DownloadString(spotibase + "simplecsrf/token.json");
csrf = csrf.Substring(12);
csrf = csrf.Substring(0, 32);

String oauth = web.DownloadString("https://open.spotify.com/token");
oauth = oauth.Substring(6);
oauth = oauth.Substring(0, oauth.Length - 2);

web.DownloadString(spotibase + "remote/play.json?oauth=" + oauth + "&csrf=" + csrf + "&uri=" + spotiuri + "&context=" + spotiuri);</pre><textarea id="code019dde29ded3700da27ce62457101d29" name="code019dde29ded3700da27ce62457101d29" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div>
</div>
]]></content:encoded>
</item>
</channel>
</rss>