AstronomyAPI / Samples

Examples for Astronomy API
https://astronomyapi.com
MIT License
31 stars 3 forks source link

Can't get positions #1

Closed chrishpowell closed 5 years ago

chrishpowell commented 6 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?

astroanu commented 6 years ago

Hey, try double quoting the request url