Skip to content

Instantly share code, notes, and snippets.

View jwagener's full-sized avatar

Johannes Wagener jwagener

View GitHub Profile
@jwagener
jwagener / ontimedcomments.js
Created April 7, 2012 02:44 — forked from leemartin/ontimedcomments.js
OnTimedComments Example
SC.initialize({
client_id: "YOUR_CLIENT_ID"
});
SC.whenStreamingReady(function() {
SC.stream(TRACK_ID, {
ontimedcomments: function(comments) {
var comment, _i, _len;
for (_i = 0, _len = comments.length; _i < _len; _i++) {
@jwagener
jwagener / ontimedcomments.js
Created April 7, 2012 02:43 — forked from leemartin/ontimedcomments.js
OnTimedComments Example
SC.initialize({
client_id: "YOUR_CLIENT_ID"
});
SC.whenStreamingReady(function() {
SC.stream(TRACK_ID, {
ontimedcomments: function(comments) {
var comment, _i, _len;
for (_i = 0, _len = comments.length; _i < _len; _i++) {
response.body = "public gist";
POST /tracks HTTP/1.1
Host: api.soundcloud.com
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Content-Type: multipart/form-data; boundary=---------------------------287032381131322
Content-Length: 582