getTokenResponse: getTokenResponse

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
getTokenResponse(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


OpenSILEX/opensilex-ws-client-R documentation built on June 2, 2021, 10:24 p.m.