Skip to content

Instantly share code, notes, and snippets.

@elainechan
Last active January 16, 2018 00:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elainechan/e9eead6db76504c6316262faf65a2b29 to your computer and use it in GitHub Desktop.
Save elainechan/e9eead6db76504c6316262faf65a2b29 to your computer and use it in GitHub Desktop.
Parameters for a Twitter API search call using the Node Twitter library.
var params = {
q: '%23donaldtrump', // Hashtag
geocode: '40.7127837,-74.0059413,10mi', // New York City (latitude, longitude, radius)
count: 10,
result_type: 'recent',
lang: 'en',
truncated: false // This does not guarantee you will receive complete tweets
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment