composeMAuthHeader: composeMAuthHeader

Description Usage Arguments Value Author(s) See Also Examples

View source: R/RMauthClient.R

Description

composeMAuthHeader will compose the elements of a header which can be used to call MAuth v1.

Usage

1
  composeMAuthHeader(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. (Optional)

Value

Number of values, which you can access for the different headers.

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)

  headers<-composeMAuthHeader(c, 
                              "GET",
                              "https://eureka-sandbox.imedidata.net",
                              "/v1/apis",
                              "")

mdsol/RMauthClient documentation built on Feb. 28, 2021, 2:47 p.m.