You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This pr is to resolve issue #36
The provided curl example breaks out of the data argument string and needed to use double quotes inside the string instead of single quotes
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.
The text was updated successfully, but these errors were encountered: