automatic_setup: Automaticaly sets up authorization of Twitter API access

Description Usage Arguments Value Examples

View source: R/automatic_setup.R

Description

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

Usage

1
automatic_setup(cons_key, cons_secret, acc_token, acc_secret, app_name)

Arguments

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

Value

Connects to the API and stores your credentials in a variable "twitter_token" that you can use after to retrieve networks

Examples

 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)

epmrio/TwitterFollowersNetwork documentation built on March 23, 2020, 9:50 p.m.