Skip to content

Some basic notebooks on using the OOI machine-to-machine data API.

Notifications You must be signed in to change notification settings

friedrichknuth/ooi_m2m_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 

Repository files navigation

OOI Machine to Machine (M2M) Demo

Basic instructions for using the OOI M2M Web Services. See ipython notebooks for examples using python's requests module.

Getting Started

  • Create a user account on ooinet.oceanobservatories.org or use the CILogon button with an academic or Google account.
  • Log in
  • Navigate to the drop down menu screen in the top-right corner menu
  • Click on the "User Profile" element of the drop down.
  • Copy and save the following data from the user profile: API Username and API Token. The API Username is similar to “OOIAPI-QTULEV9STCAS55”. The API Token is similar to “YXP2Q2W4SOP”.

Tools to access OOI M2M Web Services

python requests

requests.get('https://ooinet.oceanobservatories.org/api/m2m/...', auth=(API USERNAME, API TOKEN))

curl

curl –k https://API USERNAME:API [email protected]/api/m2m/...

httpie

http --auth API USERNAME:API TOKEN https://ooinet.oceanobservatories.org/api/m2m/...

Additional Resources

Example Applications Built on Top of M2M Web Services

About

Some basic notebooks on using the OOI machine-to-machine data API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published