sm_login: OAuth Login

Description Usage Arguments Details Value Author(s) Examples

Description

Login into Survey Monkey to generate an OAuth 2.0 token

Usage

1
2
3
4
5
smlogin(client_id = getOption('sm_client_id'),
        api_key = getOption('sm_api_key'),
        secret = getOption('sm_secret'),
        redirect_uri = 'http://localhost:1410',
        response_type='code')

Arguments

client_id

Your Mashery developer account username. By default, retrieved from getOption('sm_client_id').

api_key

Your API key. By default, retrieved from getOption('sm_api_key').

secret

Your API secret key. By default, retrieved from getOption('sm_secret').

redirect_uri

Default value is http://localhost:1410. No other value is allowed. This must be the redirect URL registered for your application in your Survey Monkey developer account.

response_type

Default value is “code”. No other values are allowed.

...

Other arguments passed to POST.

Details

Initiate an interactive OAuth 2.0 authentication process by logging into Survey Monkey via a web browser.

Value

An OAuth 2.0 token object as returned by oauth2.0_token.

Author(s)

Thomas J. Leeper

Examples

1
## Not run: smlogin()

cloudyr/Rmonkey documentation built on May 13, 2019, 8:17 p.m.