Jan-15-2019, 01:41 PM
(Jan-15-2019, 11:50 AM)manhsv Wrote: I've checked, the service of this API doesn't work.But this case is POST function. I've tried another API. May you do an example for this? API's documentation is here(my api_key is on the previous post). Thank in advance
Example:
import requests name = "Nguyễn Văn Tuấn" headers={ "Cache-Control": "no-cache", "api_key": "5268c1bfd9da46c996d50649b23b59f5" } r = requests.post('http://api.openfpt.vn/name2gender/json', headers=header, data = name.encode('utf-8'))