{"id":253,"date":"2010-10-26T19:19:33","date_gmt":"2010-10-26T17:19:33","guid":{"rendered":"http:\/\/dasflash.com\/?p=253"},"modified":"2010-10-26T19:19:33","modified_gmt":"2010-10-26T17:19:33","slug":"soundcloud-as3-api-small-update-and-new-url","status":"publish","type":"post","link":"https:\/\/dorianroy.com\/blog\/archives\/253","title":{"rendered":"SoundCloud-AS3-API: Small Update and new URL"},"content":{"rendered":"<p>This is just a quick note that I&#8217;ve uploaded some minor changes to the <a href=\"http:\/\/github.com\/dorianroy\/Soundcloud-AS3-API\">SoundCloud-AS3-API<\/a> on github. I finally added a method to retrieve a signed URLRequest for any API resource. This comes in handy when you want to access the stream of a private track. <!--more--><br \/>\nHere&#8217;s a simple example:<\/p>\n<div id=\"_mcePaste\" style=\"position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;\">\n<pre class=\"brush: as3; title: ; notranslate\" title=\"\">&lt;\/div&gt;\n&lt;div id=&quot;_mcePaste&quot; style=&quot;position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;&quot;&gt;var urlRequest:URLRequest = scClient.getSignedURLRequest(myTrack.stream_url);&lt;\/div&gt;\n&lt;div id=&quot;_mcePaste&quot; style=&quot;position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;&quot;&gt;var sound:Sound = new Sound(urlRequest);&lt;\/div&gt;\n&lt;div id=&quot;_mcePaste&quot; style=&quot;position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;&quot;&gt;sound.play();&lt;\/div&gt;\n&lt;div id=&quot;_mcePaste&quot; style=&quot;position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;&quot;&gt;<\/pre>\n<\/div>\n<pre class=\"brush: as3; title: ; notranslate\" title=\"\">\n\nvar urlRequest:URLRequest = scClient.getSignedURLRequest(somePrivateTrack.stream_url);\n\nvar sound:Sound = new Sound(urlRequest);\n\nsound.play();\n\n<\/pre>\n<p>I also fixed an\u00a0issue with GET parameters not being added. Thanks to Jesse for pointing this out \u00a0&#8211; check out his <a href=\"http:\/\/jessewarden.com\/2010\/10\/product-2-soundcloud-for-androidtm.html\">SoundCloud App for Android<\/a> built with the AS3-API!<\/p>\n<p>I&#8217;m trying to add support for SoundCloud&#8217;s new OAuth 2.0 API \u00a0in the next release. I&#8217;m not sure if this will bring any benefits but the guys at SoundCloud are asking every week for it \ud83d\ude09 However, they will continue to support the &#8220;old&#8221; API.<\/p>\n<p>Note that the project now has a new URL because I changed my github username to &#8220;dorianroy&#8221;:\u00a0<a href=\"http:\/\/github.com\/dorianroy\/Soundcloud-AS3-API\/\">http:\/\/github.com\/dorianroy\/Soundcloud-AS3-API<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is just a quick note that I&#8217;ve uploaded some minor changes to the SoundCloud-AS3-API on github. I finally added a method to retrieve a signed URLRequest for any API resource. This comes in handy when you want to access the stream of a private track.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-253","post","type-post","status-publish","format-standard","hentry","category-soundcloud"],"_links":{"self":[{"href":"https:\/\/dorianroy.com\/blog\/wp-json\/wp\/v2\/posts\/253","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dorianroy.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dorianroy.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dorianroy.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dorianroy.com\/blog\/wp-json\/wp\/v2\/comments?post=253"}],"version-history":[{"count":0,"href":"https:\/\/dorianroy.com\/blog\/wp-json\/wp\/v2\/posts\/253\/revisions"}],"wp:attachment":[{"href":"https:\/\/dorianroy.com\/blog\/wp-json\/wp\/v2\/media?parent=253"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dorianroy.com\/blog\/wp-json\/wp\/v2\/categories?post=253"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dorianroy.com\/blog\/wp-json\/wp\/v2\/tags?post=253"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}