Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Response

Example for request http://data.oceannetworks.ca/api/dataProducts?method=get&token=[YOUR_TOKEN_HERE]&deviceCategoryCode=CTD&locationCode=BACAX

Success (HTTP 200)

Returns a list of data product extensions with values for Data Product Code, Data Product Name, Extension and Help Document URL, ordered by Data Product Code

...

  • Return a list of All of the Data Product Extensions (no filters)

http://data.oceannetworks.ca/api/dataProducts?method=get&token=[YOUR_TOKEN_HERE]

 

  • Return a list of all of the Data Product Extensions available for a Data Product Code of 'TSSD' (Time Series Scalar Data)

http://data.oceannetworks.ca/api/dataProducts?method=get&token=[YOUR_TOKEN_HERE]&dataProductCode=TSSD

 

  • Return a list of all of the Data Products Extensions available for an Extension of 'pdf'

http://data.oceannetworks.ca/api/dataProducts?method=get&token=[YOUR_TOKEN_HERE]&extension=pdf

 

  • Return a list of all of the Data Products Extensions available for a Data Product Code of 'TSSD' (Time Series Scalar Data) and an Extension of 'csv'

http://data.oceannetworks.ca/api/dataProducts?method=get&token=[YOUR_TOKEN_HERE]&dataProductCode=TSSD&extension=csv

 

  • Return a list of all of the Data Product Extension that have a Data Product Name which contains 'scalar'

http://data.oceannetworks.ca/api/dataProducts?method=get&token=[YOUR_TOKEN_HERE]&dataProductName=scalar

 

  • Return a list of all of the Data Product Extensions that are available for instruments at a location with a Location Code of 'BACAX' ('Barkely Canyon Axis (POD1)')

http://data.oceannetworks.ca/api/dataProducts?method=get&token=[YOUR_TOKEN_HERE]&locationCode=BACAX

 

  • Return a list of all of the Data Products with an Extension of 'mat' that are available for instruments at a location with a Location Code of 'BACAX' ('Barkely Canyon Axis (POD1)')

http://data.oceannetworks.ca/api/dataProducts?method=get&token=[YOUR_TOKEN_HERE]&extension=mat&locationCode=BACAX

 

  • Return a list of all of the Data Product Extensions that are available for a device with a Device Code of 'NORTEKAQDPRO8398'

http://data.oceannetworks.ca/api/dataProducts?method=get&token=[YOUR_TOKEN_HERE]&deviceCode=NORTEKAQDPRO8398

 

  • Return a list of all of the Data Product Extensions that are available for instruments with a Device Category of 'ADCP2MHZ'

http://data.oceannetworks.ca/api/dataProducts?method=get&token=[YOUR_TOKEN_HERE]&deviceCategoryCode=ADCP2MHZ

 

  • Return the Data Products Extensions available for a Property Code of 'seawatertemperature'

http://data.oceannetworks.ca/api/dataProducts?method=get&token=[YOUR_TOKEN_HERE]&propertyCode=seawatertemperature

 

*NOTE: The http://dmasdata.uvicoceannetworks.ca/apiproxy/dataProducts url used in the above examples can be used in a browser for sharing or testing purposes; however, it can not be used from code, as it redirects to a login screen to capture your user id. In order to use the dataProducts endpoint from code, you must use the http://data.oceannetworks.ca/api/dataProducts url along with a valid token. Attempting to use the apiproxy url from code will result html returned in the payload which may cause errors or unexpected behavior.

 

Code Examples

Content Report Table
blueprintModuleCompleteKeycom.atlassian.confluence.plugins.confluence-knowledge-base:kb-how-to-article-blueprint
contentBlueprintId5fdbc098-f47d-4b1d-bd32-eb876051b73b
analyticsKeykb-how-to-article
blankDescriptionProvide step-by-step guidance for completing a task.
blankTitleHow-to article
spacesO2A
createButtonLabelAdd how-to article
labelssample-code-data-products