Minimum Python Client Example
sistemicorp opened this issue · comments
sistemicorp commented
Nycholas Oliveira commented
Hi,
The ServiceProxy
was removed from the code base, you can copy from here and use it.
Or, you can use the requests for this. Follow the example with consume the method App.index
from this:
$ python
>>> import requests
>>> r = requests.post('http://localhost:5000/api', json={'id': '1', 'jsonrpc': '2.0', 'method': 'App.index'})
>>> r.json()
{'id': '1', 'jsonrpc': '2.0', 'result': 'Welcome to Flask JSON-RPC'}
Thank you.