## 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'])
```
```
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'])
```
Release files for instagram-oauth 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| instagram-oauth-0.1.1.tar.gz | 2.4 kB | Details |
Release files / instagram-oauth-0.1.1.tar.gz
| Download URL | instagram-oauth-0.1.1.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
37b6526b07ae1ce018ab3d8c8d13c461d185595ac65c88344fe927f847f382fe
|
|
BLAKE2b-256 checksum How to use checksums |
fc471af9ec7852317adb4337d7285a8d3fbe6cd33facd02ef3b82bc8d340e22f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |