0
import requests

params = {
    'apiKey': 'hidden',
    'author_id': '36573126000'
}


def main():
    r = requests.get('https://api.elsevier.com/content/author', params=params)
    print(r.text)


main()

我无法与 API 通信,因为它返回以下错误:

<service-error><status><statusCode>AUTHORIZATION_ERROR</statusCode><statusText>The requestor is not authorized to access the requested view or fields of the resource</statusText></status></service-error>

什么是/是什么问题,我该如何解决?

4

0 回答 0