use_oauth_token: Sets up the OAuth credentials for a twitteR session from an...

Description Usage Arguments Details Value Author(s) See Also Examples

Description

This function uses an existing httr OAuth Token in the Twitter session

Usage

1
use_oauth_token(twitter_token)

Arguments

twitter_token

An httr Token object

Details

This function is an escape hatch for nonstandard OAuth scenarios. Use setup_twitter_token unless it doesn't work for your use case.

Value

This is called for its side effect

Author(s)

Anand Patil

See Also

Token

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
 ## Not run: 
    library(httr)
    library(twitteR)
    token <- Token2.0$new(
      params = list(as_header=TRUE),
      app = oauth_app("fun.with.twitter", "no.key", "no.secret"),
      endpoint = oauth_endpoints("twitter"),
      credentials = list(access_token = "AAAAAAAAAAAAAAAAAAA%3DAAAAAAAAAAAAAA"),
      cache = FALSE
    )

    use_oauth_token(token)
  
## End(Not run)

ashoksiri/twitteR documentation built on May 8, 2019, 5:57 p.m.