Skip to content

Commit

Permalink
NASA ADS: Generate token for new API
Browse files Browse the repository at this point in the history
ADS has a nice new API, but it requires a token to access. I
experimented with creating an account and writing a proxy, but I
realized that there's a much simpler way: we can just generate a
temporary token exactly as the site does when you generate a citation in
the browser, by calling the '/accounts/bootstrap' endpoint. Works great.

Updated old tests and added a new one. Everything now seems to be
working just as it was before the update.
  • Loading branch information
AbeJellinek committed Jun 15, 2021
1 parent ea18e9b commit 875dc98
Showing 1 changed file with 126 additions and 38 deletions.
Loading

0 comments on commit 875dc98

Please sign in to comment.