dwolla-pythonDwolla Client API | |
Download |
dwolla-python Ranking & Summary
Advertisement
- License:
- MIT/X Consortium Lic...
- Price:
- FREE
- Publisher Name:
- Jordan Bouvier
- Publisher web site:
- http://open-source.analytemedia.com/
dwolla-python Tags
dwolla-python Description
dwolla-python is a simple Python wrapper for Dwolla's API's.UsageBasic Usage:from dwolla import DwollaClientAppclient = DwollaClientApp(APP_ID, APP_SECRET)#get some basic info on an accountclient.get_account_info("thomas.hansen@gmail.com")client.get_account_info("812-451-5647")#returns a list of nearby dwolla spotsclient.get_nearby_spots(lat='41.59', lon='-93.62')ExamplesYou can also check out the examples for more usage examples. To try flask-app just install flask, edit settings.cfg (or copy it to local file "settings.cfg.local") and run: python examples/flask-app/main.pyGetting OAuth TokensThe flask-app shows you how to get OAuth tokens and use them. The basic steps are as follows:from dwolla import DwollaClientAppclient = DwollaClientApp(APP_ID, APP_SECRET)#redirect your user to dwolla oauth urlauth_url = app.init_oauth_url(scope="AccountInfoFull")redirect(auth_url)Then when the user is redirected back to your page:code = request.args.get("code")access_token = dwolla_app.get_oauth_token(code)With a valid access token, you can do anything your scope allows:#create user object with access tokenuser = DwollaUser(access_token)#get account info, balance, etcinfo = user.get_account_info()balance = user.get_balance()#send some money to thomas :P specifying amount, receiverID and PINuser.send_funds(10.0, "812-647-0748", '1234')Product's homepage
dwolla-python Related Software