Update README.md

This commit is contained in:
Shivam Pandey 2021-06-24 11:32:09 +05:30 committed by GitHub
parent b372d10f69
commit c8999f0369
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -176,7 +176,22 @@ Output:
"result": "ok"
}
```
Python example code
```
response = requests.get('https://ranchimallflo.duckdns.org/api/v1.0/getTokenBalances?token=rmt')
if response.status_code == 200:
json_response = response.json()
elif response.status_code == 404:
print('Not Found.')
```
Javascript example code
```
fetch('https://ranchimallflo.duckdns.org/api/v1.0/getTokenBalances?token=rmt'){
.then(response => response.json())
.then(data => console.log(data));
}
```
### Information about a FLO address
Get information about a FLO address
```