Skip to content
This repository has been archived by the owner on Aug 28, 2020. It is now read-only.

LCOGT/request_service_examples

Repository files navigation

Observation API Examples

THIS PROJECT IS DEPRECATED It has been replaced with observation-portal-api-examples

This repository contains python scripts demonstrating the use of the LCO Request API. They may be used as a starting point for writing custom scripts for submitting/querying observations on the LCO network 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 LCO Developers Page.

Authentication

Most (if not all) examples require the use of an authentication token. This token is similar to a password: it is used to authenticate you with the API and make sure you have permission to perform specific actions. This token is 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 on the observation portal.

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

Examples

About

Example scripts for querying the LCO Request service https://developers.lco.global

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages