Skip to content

Commit a2d2758

Browse files
jrmontagAaron Gonzales
authored andcommitted
Include consumer key/secret in example YAML (#29)
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.
1 parent 3a6068f commit a2d2758

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/search_tweets_creds_example.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,9 @@ search_tweets_ent_example:
77
search_tweets_premium_example:
88
account_type: premium
99
endpoint: https://api.twitter.com/1.1/tweets/search/30day/dev.json
10+
# if you have a bearer token, you can use it below. otherwise, swap the comment marks and use
11+
# your app's consumer key/secret - the library will generate and use a bearer token for you.
1012
bearer_token: <A_VERY_LONG_MAGIC_STRING>
13+
#consumer_key: <ANOTHER_MAGIC_STRING>
14+
#consumer_secret: <STILL_ANOTHER_MAGIC_STRING>
1115

0 commit comments

Comments
 (0)