Skip to content

Instantly share code, notes, and snippets.

@mpj
Last active October 6, 2015 17:08
Show Gist options
  • Select an option

  • Save mpj/32d017d99ff485d68126 to your computer and use it in GitHub Desktop.

Select an option

Save mpj/32d017d99ff485d68126 to your computer and use it in GitHub Desktop.
var bridge = require('spotify-bridge-request');
bridge.request('cosmos_request_create', [
12871287128327,
{
"action": "GET",
"uri": "sp:\/\/core-collection\/unstable\/@\/list\/tracks\/all?decorate=false&sort=addTime DESC,discNumber,trackNumber&",
"headers": {
},
"body": "{\"policy\":{\"list\":{\"link\":true}}}"
}
], function(err, response) {
var obj = JSON.parse(response.body)
console.log("i am body", obj)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment