getTokenResponseWS2: getTokenResponseWS2

Description Usage Arguments Details Value See Also

View source: R/getToken.R

Description

Create a token to call the webservice for authentication and returns a formatted response of WSResponse class.

Usage

1
getTokenResponseWS2(resource, attributes, type = "application/json")

Arguments

resource

character, an resource from the web service api

attributes

a list containing a login and a password

Details

This function is OK for the second version of the web service (a POST call with an invisible request using a correct JSON list in a body)

Value

responseObject an object HTTP httr

See Also

https://brapi.docs.apiary.io/#introduction/structure-of-the-response-object


niio972/opensilex-ws-client-r documentation built on Nov. 4, 2019, 10:06 p.m.