Skip to content
This repository was archived by the owner on Mar 16, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion templates/oauth_login.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ <h2>Venmo API Integration Example!</h2>
<p>To get started with our OAuth integration, you have to make a Venmo app first. Check out the <a href-"https://github.com/venmo/flaskeleton">README</a> for information on how to get our OAuth example up and running with Venmo!</p>
{% elif not data.signed_in %}
<p>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.</p>
<button class="btn btn-primary" ><a style="color:#fff" href="https://api.venmo.com/oauth/authorize?client_id={{data.consumer_id}}&scope=make_payments,access_profile&response_type=code">Click here to authenticate with Venmo using OAuth</a></button>
<button class="btn btn-primary" ><a style="color:#fff" href="https://api.venmo.com/v1/oauth/authorize?client_id={{data.consumer_id}}&scope=make_payments,access_profile&response_type=code">Click here to authenticate with Venmo using OAuth</a></button>
{% else %}
<p>You are signed in as {{data.name}}.</p>
<button class="btn btn-warning" ><a style="color:#fff" href="logout">Logout!</a></button>
Expand Down