All Projects → mmohades → Venmo

mmohades / Venmo

Licence: gpl-3.0
Venmo API client for Python

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Venmo

Python Poloniex
Poloniex API wrapper for Python 2.7 & 3
Stars: ✭ 557 (+1405.41%)
Mutual labels:  api-wrapper
Aiomixcloud
Mixcloud API wrapper for Python and Async IO
Stars: ✭ 23 (-37.84%)
Mutual labels:  api-wrapper
Apipie
Transform api declaration to js object for frontend. Inspired by VueRouter, koa-middleware and axios.
Stars: ✭ 29 (-21.62%)
Mutual labels:  api-wrapper
Api
Native PHP Wrapper for Telegram BOT API
Stars: ✭ 714 (+1829.73%)
Mutual labels:  api-wrapper
Slack
🎉✨ Slack API client for Node and browsers.
Stars: ✭ 903 (+2340.54%)
Mutual labels:  api-wrapper
Steamapi
A PHP wrapper for interacting with Valve's Steam Community.
Stars: ✭ 25 (-32.43%)
Mutual labels:  api-wrapper
Youtubekit
YoutubeKit is a video player that fully supports Youtube IFrame API and YoutubeDataAPI for easily create a Youtube app
Stars: ✭ 484 (+1208.11%)
Mutual labels:  api-wrapper
Nem Php
NEM Blockchain NIS API Wrapper and Software Development Kit for PHP
Stars: ✭ 32 (-13.51%)
Mutual labels:  api-wrapper
Groovehq
Ruby gem for GrooveHQ api
Stars: ✭ 22 (-40.54%)
Mutual labels:  api-wrapper
Stashapicsharp
[Atlassian] Bitbucket Server/Stash API wrapper built in C#
Stars: ✭ 28 (-24.32%)
Mutual labels:  api-wrapper
Pizzly
The simplest, fastest way to integrate your app with an OAuth API 😋
Stars: ✭ 796 (+2051.35%)
Mutual labels:  api-wrapper
Rscorecard
R wrapper for U.S. Department of Education College Scorecard Data API
Stars: ✭ 17 (-54.05%)
Mutual labels:  api-wrapper
Bitskinsapi
A wrapper for the BitSkins API, build on .NET Standard 2.0
Stars: ✭ 13 (-64.86%)
Mutual labels:  api-wrapper
Rapid.js
An ORM-like Interface and a Router For Your API Requests
Stars: ✭ 700 (+1791.89%)
Mutual labels:  api-wrapper
Plyer
Plyer is a platform-independent Python wrapper for platform-dependent APIs
Stars: ✭ 949 (+2464.86%)
Mutual labels:  api-wrapper
V8 Archive
Directus Database API — Wraps Custom SQL Databases with a REST/GraphQL API
Stars: ✭ 486 (+1213.51%)
Mutual labels:  api-wrapper
Goodshirt
R client to the Good Place Quotes API
Stars: ✭ 24 (-35.14%)
Mutual labels:  api-wrapper
Golang Tmdb
This is a Golang wrapper for working with TMDb API. It aims to support version 3.
Stars: ✭ 36 (-2.7%)
Mutual labels:  api-wrapper
Thingspeak
Client library for the thingspeak.com API
Stars: ✭ 30 (-18.92%)
Mutual labels:  api-wrapper
Java Ovh
Thin wrapper around OVH's APIs. Handles all the hard work including credential creation and requests signing
Stars: ✭ 15 (-59.46%)
Mutual labels:  api-wrapper

Venmo API

Disclaimer: This is an individual effort and is not PayPal/Venmo sponsored or maintained.

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 Venmo
$ python3 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='[email protected]',
                                       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)

Keep this in mind that your access token never expires! You will need to revoke it by yoursef.

venmo.log_out("Bearer a40fsdfhsfhdsfjhdkgljsdglkdsfj3j3i4349t34j7d")
# Request money
venmo.payment.request_money(32.5, "house expenses", "1122334455667")
# Send money
venmo.payment.send_money(13.68, "thanks for the 🍔", "1122334455667")

Getting a user's transactions (public, friends and privates that happen between your account and user_id account)

def callback(transactions_list):
    for transaction in transactions_list:
        print(transaction)

# callback is optional. Max number of transactions per request is 50.
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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].