Skip to content

Commit

Permalink
Merge pull request #12 from jcsla/master
Browse files Browse the repository at this point in the history
modify soundcloud track id in README.md & change https to follow-directs
  • Loading branch information
jakemmarsh authored Sep 16, 2016
2 parents 3ba82de + 5773043 commit 4f820fd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ SC.init({
Once authorized (or if you're accessing unprotected endpoints), you may now make calls to the SoundCloud API [documented here](https://developers.soundcloud.com/docs/api/reference). An example could be as follows:

```javascript
SC.get('/tracks/164497989', function(err, track) {
SC.get('/tracks/276882056', function(err, track) {
if ( err ) {
throw err;
} else {
Expand Down
2 changes: 1 addition & 1 deletion lib/soundcloud.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

var https = require('https');
var https = require('follow-redirects').https;
var qs = require('querystring');
var hostApi = 'api.soundcloud.com';
var hostConnect = 'https://soundcloud.com/connect';
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
"node": ">=0.10.26"
},
"dependencies": {
"follow-redirects": "^0.2.0"
}
}

0 comments on commit 4f820fd

Please sign in to comment.