Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Instagram API oauth authentication helper

Project description

## Usage

```
from instagram_oauth import InstagramOauthAPI

client = InstagramOauthAPI(
client_id=<client id>,
client_secret=<client secret>
redirect_uri=<redirect uri>
)

# Build the authorization url.
url = client.auth_url()

# Forward the user to the url above and then check for a callback
# from Instagram to your server.
code = <code received>

# Grab the access token.
result = client.exchange_code_for_accesstoken(code)
print(result['access_token'])
print(result['user'])
```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for instagram-oauth, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size instagram-oauth-0.1.1.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page