All of the services, with the exception of the interoperability services, require the use of a method and token. Only the scalardata, rawdata and archivefiles services support the responseType optional parameter.
Parameter | Type | Description | Example |
---|---|---|---|
Required | |||
method | string | Each Web Service has 1 or more methods outlined in the documentation. The method name is case sensitive. | method=get |
token | string | All Web Services require a token. This can be generated at https://data.oceannetworks.ca/Profile. Click on the "Web Services" tab and click "Generate Token" | token=YOUR-TOKEN |
Optional | |||
responseType | string | Valid values are "json" and "jsonp". Defaults to "json". ONLY AVAILABLE for scalardata, rawdata and archivefiles services | responseType =jsonp |
https://data.oceannetworks.ca/api/sample?method=methodName&token=[YOUR_TOKEN_HERE]
Examples
If you are planning to use our API with the Python programming language please have a look at open source library pyONC to get some ideas.