From a3494c13f7305f606bb42687274638015509a6f1 Mon Sep 17 00:00:00 2001 From: joestox Date: Sun, 8 Nov 2015 21:59:41 -0500 Subject: [PATCH] changed urls to reflect updated API urls --- main.py | 2 +- templates/oauth_login.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index e3b6425..3cf9ead 100644 --- a/main.py +++ b/main.py @@ -103,7 +103,7 @@ def oauth_authorized(): "client_secret":CONSUMER_SECRET, "code":AUTHORIZATION_CODE } - url = "https://api.venmo.com/oauth/access_token" + url = "https://api.venmo.com/v1/oauth/access_token" response = requests.post(url, data) response_dict = response.json() access_token = response_dict.get('access_token') diff --git a/templates/oauth_login.html b/templates/oauth_login.html index adcb3fc..e535d5e 100644 --- a/templates/oauth_login.html +++ b/templates/oauth_login.html @@ -5,7 +5,7 @@

Venmo API Integration Example!

To get started with our OAuth integration, you have to make a Venmo app first. Check out the README for information on how to get our OAuth example up and running with Venmo!

{% elif not data.signed_in %}

Clicking this button will redirect you to the Venmo OAuth login page. Once the user logs in, they will be redirected back to your app, with their access_token in the redirect url. Your app can then grab that token using the flask request module.

- + {% else %}

You are signed in as {{data.name}}.