makeMAuthCall: makeMAuthCall

Description Usage Arguments Value Author(s) See Also Examples

Description

makeMAuthCall will make a call to MAuth v1 and return a response, which you must deal with on your own.

Usage

1
  makeMAuthCall(RMauthClientObject, method, base_url, route, body="")

Arguments

RMauthClientObject

Valid RMauthClient object.

method

either "GET", "POST", "PUT" or "DELETE"

base_url

base url of the service you are calling

route

the route of the service you want to get a response from

body

Body of the request, ie. for POST requests.

header_overrides

any additional headers or overrides (ie. Content-Type) in a named list

Value

Response (likely in json, depending on the service.)

Author(s)

Pramod Somashekar <[email protected]>

See Also

RMauthClient-package

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
  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",
                         "")

mdsol/RMauthClient documentation built on May 22, 2019, 4:24 p.m.