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