Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you get the UserID of a venmo user? #7

Closed
xxCleef opened this issue Jun 26, 2020 · 2 comments
Closed

How do you get the UserID of a venmo user? #7

xxCleef opened this issue Jun 26, 2020 · 2 comments
Labels
question Further information is requested

Comments

@xxCleef
Copy link

xxCleef commented Jun 26, 2020

Can someone let me know how i'd do this

@mmohades
Copy link
Owner

user.id would give you the user's id. If you meant their username, that's user.username

@mmohades mmohades added the question Further information is requested label Jun 26, 2020
@xxCleef xxCleef closed this as completed Jun 27, 2020
@bumble-bee-chuna
Copy link

Hello! I'm not sure if this is helpful (and please feel free to give me feedback on how to structure the code a little more cleanly 😺 )

This has been my little snippet of code to get the user id.

from venmo_api import Client, UserApi

access_token = Client.get_access_token(username='<your-username>',
                                        password='<your-password>')

client = Client(access_token=access_token)
user = client.user.get_my_profile()

# Here's your user id :) 
print(user.id)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants