From d38f38fd5f7f382c12f0a6ec845515729bca1200 Mon Sep 17 00:00:00 2001 From: Shivam Pandey Date: Thu, 24 Jun 2021 11:34:32 +0530 Subject: [PATCH] Update README.md --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 1eceb89..addec1d 100644 --- a/README.md +++ b/README.md @@ -211,7 +211,22 @@ Output: "result": "ok" } ``` +Python example code +``` +response = requests.get('https://ranchimallflo.duckdns.org/api/v1.0/getFloAddressDetails?floAddress=F6WPx2WFdmVQ6AMutZ2FJzpyiwdxqLyd2z') +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/getFloAddressDetails?floAddress=F6WPx2WFdmVQ6AMutZ2FJzpyiwdxqLyd2z'){ + .then(response => response.json()) + .then(data => console.log(data)); +} +``` ### Information about a FLO address of a particular token Get information about a FLO address of a particular token ```