diff --git a/blockstack_search/search/onename_api_website/clients/python_client.py b/blockstack_search/search/onename_api_website/clients/python_client.py new file mode 100644 index 000000000..43f86290d --- /dev/null +++ b/blockstack_search/search/onename_api_website/clients/python_client.py @@ -0,0 +1,18 @@ +import json +import requests + +PROFILE_URL = 'http://localhost:5003/v1/people/' +SEARCH_URL = 'http://localhost:5003/v1/people-search/' +ACCESS_TOKEN = '' + +#Profile API +query = 'muneeb' +url = PROFILE_URL + "id=" + query +resp = requests.get(url) +print resp.text + +#SEARCH API +query = 'john ' +url = SEARCH_URL + ACCESS_TOKEN + "?keywords=" + query +resp = requests.get(url) +print resp.text \ No newline at end of file