justcode.ikeepstudying.com
python: 获得PayPal余额(GetBalance API), python paypal nvp - Just Code
安装 python 的paypal的库: https://github.com/paypal/PayPal-Python-SDK 要求: Python 2.6 or 2.7 + 安装: pip install paypal ## or easy_install: # easy_install paypal ## or download the source, un-tar/un-zip it, cd into paypal-python, and: # python setup.py install 申请 NVP/SOAP 开发账户 打开链接:https://developer.paypal.com/developer/accounts/ 登录后,可以看到你的 Sandbox Accounts 点击 profile 记录下你的 username, password 和 signature 然后创建文件 paypal_nvp.py #!/usr/bin/env python # coding=utf-8 …