pybliometrics-dev / pybliometrics

Python-based API-Wrapper to access Scopus
https://pybliometrics.readthedocs.io/en/stable/
Other
407 stars 127 forks source link

Pair InstToken and APIKey #246

Closed Michael-E-Rose closed 2 years ago

Michael-E-Rose commented 2 years ago

InstTokens belong to one APIKey only. The current setup does not respect that.

Need to get an InstToken from Scopus Integration Support though.

Following up on #192

Michael-E-Rose commented 2 years ago

The relationship is not necessarily 1:1, an InstToken might cover multiple keys. This makes a programmatic solution difficult.

Michael-E-Rose commented 2 years ago

The programmatic workaround solution is to provide APIKey and corresponding InstToken when initiating a class: AuthorRetrieval(...., APIKey="XXX", InstToken="ZZZ"). This will always override the key and token selected from the configuration file.

Implemented in 1211a590064dee997b761af6d9ed8f407236eb14.