Created
April 12, 2012 13:58
-
-
Save leemartin/2367483 to your computer and use it in GitHub Desktop.
TopSpin Purchase on SoundCloud
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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