Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

401 Unauthorized #32

Open
borisrev opened this issue Jun 13, 2017 · 2 comments
Open

401 Unauthorized #32

borisrev opened this issue Jun 13, 2017 · 2 comments

Comments

@borisrev
Copy link

borisrev commented Jun 13, 2017

Using the example Python snippet:

bibcodes="bibcode\n1907AN....174...59.\n1908PA.....16..445.\n1989LNP...334..242S"
r = requests.post('https://api.adsabs.harvard.edu/v1/search/bigquery', 
       params={'q':'*:*', 'wt':'json', 'fq':'{!bitset}', 'fl':'bibcode'}, 
       headers={'Authorization': 'Bearer: mytokenhere'},
       data=bibcodes)

I get a 401 unathorized response. I can do a curl request with the same token, and it works fine.

Thanks for all the great work and in advance for any help.

@ghost
Copy link

ghost commented Jun 13, 2017 via email

@borisrev
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant