Skip to content

Instantly share code, notes, and snippets.

@dsuch
Created September 29, 2013 21:16
Show Gist options
  • Select an option

  • Save dsuch/6756614 to your computer and use it in GitHub Desktop.

Select an option

Save dsuch/6756614 to your computer and use it in GitHub Desktop.
Using Python client
from zato.client import JSONClient
address = 'http://localhost:11223'
path = '/rates/get-rate'
client = JSONClient(address, path)
payload = {'code_from':'USD', 'code_to':'EUR'}
response = client.invoke(payload)
print(response.data)
# Prints {u'response': {u'rate': u'0.7395'}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment