inOAuth: Create OAuth token to LinkedIn R session

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

View source: R/inOAuth.R

Description

inOAuth creates a long-lived OAuth access token that enables R to make authenticated calls to the LinkedIn API. This function relies on the httr package to create the OAuth token.

Usage

1
2
inOAuth(application_name = NULL, consumer_key = NULL,
  consumer_secret = NULL)

Arguments

application_name

Name of your application.

consumer_key

Consumer API Key of your application.

consumer_secret

Consumer Secret Key of your application.

Details

There are two ways to create an authenticated connection. One is to use the default credentials supplied in the package. The second is to obtain your own credentials and using them as inputs into the function. Examples of both are shown below.

Create your own application here: https://developer.linkedin.com/

Value

Authorization token to be used in other functions.

Author(s)

Michael Piccirilli [email protected]

See Also

getProfile, getMyConnections

Examples

1
2
3
4
5
6
7
8
9
## Not run: 

## Default Consumer and Secret Key for the Rlinkedin package:
in.auth <- inOAuth()

## Use your own Consumer and Secret Key:
in.auth <- inOAuth("your_app_name", "your_consumer_key", "your_consumer_secret")

## End(Not run)

Rlinkedin documentation built on May 29, 2017, 3:06 p.m.