tw_gen_token: Generate twitter tokens

Description Usage Arguments Details Value See Also Examples

View source: R/twitter_api.R

Description

Generate twitter tokens

Usage

1
tw_gen_token(appname, key, secret = NULL)

Arguments

appname

Character scalar. The name of your twitter app.

key

Character scalar. Your API key provided by twitter.

secret

Character scalar. Your API secret provided by twitter.

Details

This function is a wrapper of httr::oauth_app(). To be able to use most of twitter's API service you need to sign-in with your twitter account at https://apps.twitter.com/]

Value

A Token1.0 reference class (RC) object.

See Also

Other API functions: tw_api_get_followers_ids, tw_api_get_followers_list, tw_api_get_friends_ids, tw_api_get_search_tweets, tw_api_get_statuses_sample, tw_api_get_statuses_user_timeline, tw_api_get_trends_place, tw_api_get_users_search, tw_api_get_users_show, tw_api_trends_available

Examples

1
2
3
4
5
## Not run: 
  tokens <- tw_gen_token('mytwitterapp','xxxxxxxx','yyyyyyyy')
  tw_api_get_usr_profile('gvegayon',tokens)

## End(Not run)

gvegayon/twitterreport documentation built on Nov. 29, 2017, 3:16 p.m.