Skip to content

Commit

Permalink
Add some shortcuts for Google, Facebook, Instagram
Browse files Browse the repository at this point in the history
  • Loading branch information
rollcat committed Feb 25, 2018
1 parent 7eb926b commit a388af5
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions requests_oauth2/services.py
@@ -0,0 +1,22 @@
from requests_oauth2 import OAuth2


class GoogleClient(OAuth2):
site = "https://accounts.google.com"
authorization_url = "/o/oauth2/auth"
token_url = "/o/oauth2/token"
scope_sep = " "


class FacebookClient(OAuth2):
site = "https://www.facebook.com/"
authorization_url = "/dialog/oauth"
token_url = "/oauth/access_token"
scope_sep = " "


class InstagramClient(OAuth2):
site = "https://api.instagram.com"
authorization_url = "/oauth/authorize"
token_url = "/oauth/access_token"
scope_sep = " "

0 comments on commit a388af5

Please sign in to comment.