Created
October 26, 2014 10:03
-
-
Save octatone/7853fec580c12754969e to your computer and use it in GitHub Desktop.
Fetch 6w tweets using a generator
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
function *get6wTweets () { | |
let options = { | |
'auth': { | |
'bearer': yield getToken | |
} | |
}, | |
response = yield get(searchUrl, options); | |
return parse(response.body).statuses; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment