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 - connectToOpenSILEXWS(apiID="ws_1_public","guestphis@supagro.inra.fr","guestphis", url = "http://147.100.179.156:8080/phenomeapi/resources/") WS2 - connectToOpenSILEXWS(apiID="ws_private",username="guest@opensilex.org", password="guest", url = "http://www.opensilex.org/openSilexAPI/rest/")
1 | connectToOpenSILEXWS(username, password, url, reconnection = TRUE)
|
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.