Once everything is registered, the relevant variables can be loaded into R using options
:
options(sm_api_key = 'YourAPIKey')
options(sm_secret = 'YourAPISecret')
options(sm_client_id = 'YourMasheryDeveloperUsername')
Rmonkey uses these values inside smlogin
to initiate an OAuth2.0 login. Calling smlogin
, you will redirected to your web browser, where you will login with your regular Survey Monkey account information. smlogin
will then store a durable OAuth token in options('sm_oauth_token')
, which is automatically retrieved in subsequent Rmonkey operations. If you have trouble logging in, it is also possible to generate an OAuth token using the API Console, which can then be manually stored in options('sm_oauth_token')
.