Skip to content

Instantly share code, notes, and snippets.

@leemartin
Created April 12, 2012 13:58
Show Gist options
  • Save leemartin/2367483 to your computer and use it in GitHub Desktop.
Save leemartin/2367483 to your computer and use it in GitHub Desktop.
TopSpin Purchase on SoundCloud
// Initialize JS SDK
SC.initialize({
client_id: "YOUR_CLIENT_ID",
redirect_uri: "http://example.com/callback.html",
});
// Connect to SoundCloud
SC.connect(function(){
// Update one of the user's tracks' purchase url
SC.put("/tracks/293", { purchase_url: "http://topspin.com" }, function(track){
// all done ...
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment