UNPKG

gupshup-oauth

Version:

This is a sample oauth implementation for the bots platform on gupshup.io devtools

27 lines (26 loc) 1.1 kB
{ "oauth_creds": { "botname": "<yourbotname>", "apikey": "<gupshup apikey>", "channels": { "github": { "callbackURL": "https://www.gupshup.io/developer/bot/<yourbotname>/gupshup-oauth/github/callback", "baseUrl": "https://github.com/", "authUrl": "login/oauth/authorize", "accessTokenUrl": "login/oauth/access_token", "clientSecret": "<client secret key>", "clientID": "<client id>", "scope": "first_name,last_name,email" }, "facebook": { "callbackURL": "https://www.gupshup.io/developer/bot/<yourbotname>/gupshup-oauth/facebook/callback", "baseUrl": "", "authUrl": "https://www.facebook.com/v2.8/dialog/oauth", "accessTokenUrl": "https://graph.facebook.com/oauth/access_token", "clientSecret": "<client secret key>", "clientID": "<client id>", "scope": "public_profile email" } } } }