github_flask_oauth2.py

1
2
from requests_oauthlib import OAuth2Session
from flask import Flask, request, redirect, session, url_for
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Example of how to use Flask with requests-oauthlib to fetch a GitHub user profile using an OAuth 2 token.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.