Description Details Author(s) Examples
This simple library can enable you to post and get requests via MAuth v1 in R. It should return back to you a valid response after authorization, which you will have to interpret on your own.
Package: | RMauthClient |
Type: | Package |
Version: | 1.0 |
Date: | 2015-03-03 |
License: | MIT + file LICENSE |
Usage is really simple. Simply create an MAuthClient object, and then call makeMAuthCall with the appropriate parameters.
You will need a valid configuration for MAuth, passed in as the parameters when initializing RMauthClient.
The private key, must be a 2048 bit RSA key for which the public key already has been registered with a valid MAuth v1 service.
Pramod Somashekar <psomashekar@mdsol.com>
Maintainer: Pramod Somashekar <psomashekar@mdsol.com>
1 2 3 4 5 6 7 8 9 10 11 12 13 | library(httr)
library(jsonlite)
data(testKey)
c <- RMauthClient(app_uuid="aaabbbcc-dddd-abcd-abcd-eff6b4b0b637",
mauth_base_url="https://mauth-sandbox.imedidata.net",
private_key=testKey)
response <- makeMAuthCall(c,
"GET",
"https://eureka-sandbox.imedidata.net",
"/v1/apis",
"")
f <- fromJSON(content(response, "text")) #f is now a valid frame.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.