From c8999f0369c64dfb4b048c6d9acad9d4178c1f45 Mon Sep 17 00:00:00 2001 From: Shivam Pandey Date: Thu, 24 Jun 2021 11:32:09 +0530 Subject: [PATCH] Update README.md --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 ```