Skip to content

Instantly share code, notes, and snippets.

View niconoe's full-sized avatar
🏠
Working from home

Nicolas Noé niconoe

🏠
Working from home
  • Niconoe.eu
  • Lillois, Belgium
View GitHub Profile
@kueda
kueda / inat-password.py
Created July 31, 2015 22:45
iNaturalist API Resource Owner Password Credentials Flow Example (Python)
import requests
site = "https://www.inaturalist.org"
app_id = 'YOUR APP ID'
app_secret = 'YOUR APP SECRET'
username = 'YOUR USERNAME'
password = 'YOUR PASSWORD'
# Send a POST request to /oauth/token with the username and password
payload = {