Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (11 sloc) 394 Bytes
sc = require './soundcloud'
client_id = 'YOUR_CLIENT_ID'
client = new sc.Client(client_id)
client.users 6801504, (err, user) ->
console.log user.username
client.users_tracks 6801504, (err, user) ->
console.log user.username
client.users {q: 'skrillex'}, (err, users) ->
console.log users[0].username
client.tracks {q: 'A new world'}, (err, tracks) ->
console.log tracks[0].permalink
Something went wrong with that request. Please try again.