connectToPHISWS: connectToPHISWS

Description Usage Arguments

View source: R/ApiClient.r

Description

load name space and connexion parameters of the webservice. Execute only once at the beginning of the requests. In the case of a WebService change of address or a renaming of services, please edit this list. and execute the function. Demonstration instances :

WS1

connectToPHISWS(apiID="ws_1_public","guestphis@supagro.inra.fr","guestphis")

WS2

connectToPHISWS(apiID="ws_2_public","guest@opensilex.org","guest")

WS2

connectToPHISWS(apiID="ws_private",username="guest@opensilex.org",password="guest", url = "http://www.opensilex.org/openSilexAPI/rest/")

Usage

1
2
connectToPHISWS(apiID, username = NULL, password = NULL, url = NULL,
  reconnection = TRUE)

Arguments

apiID

character, a character name of an API ("ws_public" or "ws_private")

username

login of the user to create the token

password

password of the user to create the token

url

character, if apiID is private add the url of the chosen API, containing the IP, the full url with the protocol. e.g. 'http://www.opensilex.org/openSilexAPI/rest/'

reconnection

to force the client reconnection


OpenSILEX/phis-ws-client-r-tool documentation built on Sept. 10, 2020, 8:42 a.m.