Skip to content
Snippets Groups Projects
Commit 0189672f authored by Caner Candan's avatar Caner Candan
Browse files

* README.md: minor

parent 493b34f2
No related branches found
No related tags found
No related merge requests found
......@@ -15,8 +15,26 @@ $ export PYTHONPATH="$HOME/ucoin-python-api:$PYTHONPATH"
Thus you are ready to use it with your own python program. Here is an example illustrating how to use it thanks to the python shell:
```python
import ucoin
ucoin.ucg.Peering().get()
In [1]: import ucoin
In [2]: ucoin.ucg.Peering().get()
Out[2]:
{'contract': {'currentNumber': '5',
'hash': 'FB710AE30F843BF505ABF9DE8CF404B7F35D238A'},
'currency': 'mycurrency',
'key': '6282C3F765E560992113137AD149AFF1B07FF751',
'merkles': {'hdc/amendments/current/votes': {'depth': 1,
'leavesCount': 2,
'nodesCount': 1,
'root': '2CEC90DEBBB89C10B6AB5EAEF17FF1D0BA8B4346'},
'pks/all': {'depth': 2,
'leavesCount': 4,
'nodesCount': 3,
'root': '944D0A3A0593C4B627BA41F0454BB4A705918CE9'}},
'remote': {'host': 'mycurrency.candan.fr',
'ipv4': '62.210.131.202',
'ipv6': '',
'port': 8081}}
```
Please take a look at the document [HTTP API](https://github.com/c-geek/ucoin/blob/master/doc/HTTP_API.md) to learn about the API.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment