Skip to content

Commit

Permalink
Include consumer key/secret in example YAML (#29)
Browse files Browse the repository at this point in the history
For users who have haven't already created a bearer token for their
Premium API usage, the library will already create one on their behalf
if given the consumer key and secret. This PR adds those lines (and a
brief explanation) to the example YAML file for expedited setup.
  • Loading branch information
jrmontag authored and Aaron Gonzales committed Apr 13, 2018
1 parent 3a6068f commit a2d2758
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/search_tweets_creds_example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@ search_tweets_ent_example:
search_tweets_premium_example:
account_type: premium
endpoint: https://api.twitter.com/1.1/tweets/search/30day/dev.json
# if you have a bearer token, you can use it below. otherwise, swap the comment marks and use
# your app's consumer key/secret - the library will generate and use a bearer token for you.
bearer_token: <A_VERY_LONG_MAGIC_STRING>
#consumer_key: <ANOTHER_MAGIC_STRING>
#consumer_secret: <STILL_ANOTHER_MAGIC_STRING>

0 comments on commit a2d2758

Please sign in to comment.