Typo in document
Opened this issue · 1 comments
acscott commented
Hi,
for the example to get specific metrics (https://github.com/adsabs/adsabs-dev-api/blob/master/metrics.md) I tried using "types" delimited by single apostrophe but the server didn't like it:
curl -H "Authorization: Bearer " -H "Content-Type: application/json" -X POST -d '{"bibcodes":["1980ApJS...44..137K","1980ApJS...44..489B"],'types':['basic']}' https://api.adsabs.harvard.edu/v1/metrics
So I changed it to be consistent with the bibcodes and use double-quotes and it worked.
Hope this helps someone.
taylorshaulis commented
Thank you for reporting this @acscott
I can confirm this issue
The example documented breaks out of the data (-d) argument string which is enclosed in single quotes