mmohades / Venmo

Venmo API client for Python
GNU General Public License v3.0
145 stars 43 forks source link

Venmo getting a user ID? #22

Closed negentropic closed 3 years ago

negentropic commented 3 years ago

This is probably a dumb question but where do I get the user id or user When using:

Screen Shot 2020-10-24 at 3 24 11 PM

target_user='@name-user' or target_user_id='@name-name'

I'm getting errors inputting strings. I'm doing something wrong. I also do not see numeric IDs with usernames

negentropic commented 3 years ago

I think i just solved this with

name_id = venmo.user.get_user('username')

mmohades commented 3 years ago

For the get_user method, you must pass a userId to it to get the User information. A userId is the uniqeue identification made by Venmo for query purposes. If you have a username, and want to get the userId/User object for it, refer to #21.