Closed chrishpowell closed 5 years ago
I use:
curl --header 'Authorization: Bearer [...mytoken...]' http://api.astronomyapi.org/positions? lon=42.4304&lat=19.2593&from_year=2018&from_month=04&from_day=20&to_year=2018&to_month=04&to_day=21 OR: curl --header 'Authorization: Bearer [...mytoken...]' http://api.astronomyapi.org/positions? lon='42.4304'&lat='19.2593'&from_year=2018&from_month=04&from_day=20&to_year=2018&to_month=04&to_day=21
Both return: { "error": "float() argument must be a string or a number" }
What do I do to get positions?
Hey, try double quoting the request url
I use:
curl --header 'Authorization: Bearer [...mytoken...]' http://api.astronomyapi.org/positions? lon=42.4304&lat=19.2593&from_year=2018&from_month=04&from_day=20&to_year=2018&to_month=04&to_day=21 OR: curl --header 'Authorization: Bearer [...mytoken...]' http://api.astronomyapi.org/positions? lon='42.4304'&lat='19.2593'&from_year=2018&from_month=04&from_day=20&to_year=2018&to_month=04&to_day=21
Both return: { "error": "float() argument must be a string or a number" }
What do I do to get positions?