makeMAuthCall: makeMAuthCall

Description Usage Arguments Value Author(s) See Also Examples

View source: R/RMauthClient.R

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

queryString

optional query string value

retryAttempts

optional number of attempts to retry request before returning non-200 response

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 <psomashekar@mdsol.com>

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 Feb. 28, 2021, 2:47 p.m.