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/e4f72aa87968c27ce00148dbb2dfefcd to your computer and use it in GitHub Desktop.
Save elainechan/e4f72aa87968c27ce00148dbb2dfefcd to your computer and use it in GitHub Desktop.
Parameters for Twitter API search call that returns complete, non-truncated tweets, 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,
tweet_mode: 'extended', // Get tweets in extended mode
retweeted_status: // Get untruncated version of retweeted statuses
{
truncated: false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment