Skip to content

SeaMon.models

Description

Lists the available forecast models served by the SeaMon-API

Function

Returns a JavaScript promise for handling response and exceptions.

SeaMon.models(opts={server="https://api.seamon.io",
                    token=""})

Query parameters

Parameter Value Description
token string Unique access key, see authorization api.
server string Sets SeaMon-API server if other than default
token string Unique access key, see authorization api.

Example

SeaMon.models()
  .then(data => {
    doSomething(data);
  }) 
  .catch(err => {
    console.error('caught exception:', err);
  });