set_bearer | R Documentation |
This function will set key and secret key as environment variables.
set_bearer(key, secret)
key |
Twitter API key is used to authenticate requests. |
secret |
Twitter API secret is used to authenticate requests. |
The key and secret
is always required, which is essentially the username and password for your API. To generate this key via https://developer.twitter.com/
If the key and secret are successfully set, the function will return TRUE; otherwise, it returns FALSE.
TRUE |
key and secret are successfully set |
FALSE |
key and secret are not successfully set |
Ao Tang
# key = 'YOUR-KEY-HERE' # secret = 'YOUR-SECRET-HERE' # result <- set_bearer(key, secret) # print(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.