diff --git a/README.md b/README.md index e351540..1eceb89 100644 --- a/README.md +++ b/README.md @@ -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 ```