Skip to content

Instantly share code, notes, and snippets.

@wehub
Last active June 19, 2017 21:46
Show Gist options
  • Select an option

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

Select an option

Save wehub/b810acd672c008ebf4140c9e7771a867 to your computer and use it in GitHub Desktop.
# WePay Python SDK - http://git.io/v7Y1jA
from wepay import WePay
# application settings
account_id = 123456789
access_token = '1a3b5c7d9'
production = False
# create a theme
theme = {
'name': 'My Sample Theme',
'primary_color': 'FFFFFF',
'secondary_color': '000000',
'background_color': '004C64',
'button_color': '0084A0'
}
# set production to True for live environments
wepay = WePay(production, access_token)
# modify your account
response = wepay.call('/account/modify', {
'account_id': account_id,
'theme_object': theme
})
# display the response
print response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment