Skip to content

Instantly share code, notes, and snippets.

@wehub
Last active September 5, 2019 23:49
Show Gist options
  • Select an option

  • Save wehub/a56ba4c6ee05b796aa5b05b48effc207 to your computer and use it in GitHub Desktop.

Select an option

Save wehub/a56ba4c6ee05b796aa5b05b48effc207 to your computer and use it in GitHub Desktop.
# WePay Python SDK - http://git.io/v7Y1jA
from wepay import WePay
# application settings
cient_id = 123456789 # your WePay application's cient ID
client_secret = '1a3b5c7d9' # your Wepay application's client secret
access_token = 'STAGE_8a19aff55b85a436dad5cd1386db1999437facb5914b494f4da5f206a56a5d20' # the user's access token
production = False
# set production to True for live environments
wepay = WePay(production, access_token)
# create an account for a user
response = wepay.call('/account/create', {
'name': 'Account Name',
'description': 'A description for your account.'
})
# display the response
print response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment