sofarocean / sofar-api-client-python

Python Client for Wavefleet
Apache License 2.0
7 stars 5 forks source link

Curl error when accessing history data #19

Closed slowtoaccept closed 2 years ago

slowtoaccept commented 2 years ago

curl -o spot-0222-hist.json https://api.sofarocean.com/api/wave-data?spotterId=SPOT-0222&limit=20 -H "token: **3665" yields the following response:

'limit' is not recognized as an internal or external command, operable program or batch file.

tcj commented 2 years ago

Hello! This will likely be addressed by enclosing the URL in single- or double-quotes, like this:

"https://api.sofarocean.com/api/wave-data?spotterId=SPOT-0222&limit=20"

Without the quotes, your computer's shell is attempting to interpret the ampersand, instead of passing it along to curl.

slowtoaccept commented 2 years ago

thx. wks.