Skip to content

About

Example scripts for interacting with the Observation Portal API

Resources

Stars

1 star

Watchers

2 watching

Forks

Latest commit

 

History

34 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Observation Portal API Examples

This repository contains python scripts demonstrating how to use the Observation Portal API. They can be used as a starting point for writing custom scripts to submit/query observation requests programatically.

All scripts assume the requests library is installed.

Full Documentation

The example scripts included here are basic. To view the full API documentation, please see the Developers Docs. Check the Observations section for a description of terminology used in this repository.

Authentication

Most (if not all) of the examples require an authentication token. This token is like a password in that it is used to authenticate you with the API and make sure you have permission to perform specific actions. This token must be placed in the HTTP Authorization header and is valid forever (or until you revoke it).

You can obtain your authentication token from your profile page.

If for some reason you are unable to access your profile page (on a server without a graphical interface, for example) you can obtain your token via API. The obtain_auth_token.py example does just that.

Examples

About

Example scripts for interacting with the Observation Portal API

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages