Description Usage Arguments Value Examples
View source: R/automatic_setup.R
Use this function prior to get_followers_network to connect to the API. You will need yours API keys and the name of your APP
1 | automatic_setup(cons_key, cons_secret, acc_token, acc_secret, app_name)
|
cons_key |
Your consumer key |
cons_secret |
Your consumer secret key |
acc_token |
Your consumer access token |
acc_secret |
Your consumer access secret token |
app_name |
The name of your application |
Connects to the API and stores your credentials in a variable "twitter_token" that you can use after to retrieve networks
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
## To activate the API with your credentials
# Save your different keys in variables
cons_key = "..."
cons_secret = "..."
acc_token = "..."
acc_secret = "..."
application_name = "..."
# Use the function to activate the API
automatic_setup(cons_key, cons_secret, acc_token, acc_secret, app_name)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.