authorizeWebApi | R Documentation |
Authorize ROhdsiWebApi to access a protected instance of WebAPI Authorize the ROhdsiWebApi package to access WebApi on behalf of the user. This can be done with any of the auth methods described below. authorizeWebApi will use attempt to retrieve, cache, and update a token which will grant access to webAPI by all subsequent requests made by the package.
authorizeWebApi( baseUrl, authMethod, webApiUsername = NULL, webApiPassword = NULL )
baseUrl |
The base URL for the WebApi instance, for example: "http://server.org:80/WebAPI". |
authMethod |
The method used for authentication to WebAPI. Options are
The auth method must be enabled in the instance of WebAPI pointed to by baseUrl. |
webApiUsername |
A character string containing the WebApi username passed on to authentication methods |
webApiPassword |
An character string containing a WebApi password passed on to authentication methods. By default the user will be prompted for their password when needed. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.