A simple Python wrapper for the Venmo API
Project description
Venmo API
Introduction
This is a wrapper for the Venmo API. This library provides a Python interface for the Venmo API. It's compatible with Python versions 3.6+.
Installing
You can install or upgrade venmo-api with:
$ pip3 install venmo-api --upgrade
Or you can install it from the source:
$ git clone https://github.com/mmohades/Venmo.git --recursive
$ cd python-telegram-bot
$ python setup.py install
Getting Started
Usage
In short, you can send money, request for money, get a user's public transactions, get a user's public profile info, etc. The following is an example of initializing and working with it.
from venmo_api import Client
# Get your access token. You will need to complete the 2FA process
access_token = Client.get_access_token(username='myemail@random.com',
password='your password')
venmo = Client(access_token=access_token)
# Search for users. You get 50 results per page.
users = venmo.user.search_for_users(query="Peter",
page=2)
for user in users:
print(user.username)
# Or, you can pass a callback to make it multi-threaded
def callback(users):
for user in users:
print(user.username)
venmo.user.search_for_users(query="peter",
callback=callback,
page=2,
count=10)
Just keep this in mind that your access token almost never expires! You will need to revoke it by yoursef.
venmo.log_out("Bearer a40fsdfhsfhdsfjhdkgljsdglkdsfj3j3i4349t34j7d")
# Request money
users = venmoash.payment.request_money(32.5, "house expenses", "1122334455667")
Getting a user's public transactions
def callback(transactions_list):
for transaction in transactions_list:
print(transaction)
# callback is optional
venmo_api.user.get_user_transactions(user_id='0000000000000',
callback=callback)
Documentation
venmo-api
's documentation lives at readthedocs.io.
Contributing
Contributions of all sizes are welcome. You can help with the wrapper documentation located in /docs. You can also help by reporting bugs. You can add more routes to both Venmo Unofficial API Documentation and the venmo-api
wrapper.
Venmo Unofficial API Documentation
You can find and contribute to the Venmo Unofficial API Documentation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for venmo_api-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 754110bbfae65126308febe366f0f29c60562dfc379b4ba7cadd58f4129c7477 |
|
MD5 | 7a814c815a949c3a40063ce0d0598ac2 |
|
BLAKE2b-256 | 91bfe4d6cf269f7edd34ae349f7910c4a9ee2bccf1180382942347c601d187b2 |