我正在尝试使用您的 Scopus API 来检索某个作者拥有的出版物,但我在浏览器控制台中遇到了 401 错误消息:
GET https://api.elsevier.com/content/author/author_id/57196038163?apiKey=7f59af901d2d86f78a1fd60c1bf9426a&httpAccept=application/json 401
statusCode: "AUTHORIZATION_ERROR"
statusText: "The requestor is not authorized to access the requested view or fields of the resource"
API 密钥附在我的网站 URL 中
请检查以下产生错误的页面:
https ://evo-ml.com/raneem/scopus2.html
代码:
<script>
fetch('https://api.elsevier.com/content/author/author_id/57196038163?apiKey=7f59af901d2d86f78a1fd60c1bf9426a&httpAccept=application/json')
.then(response => response.json())
.then(data => console.log(data))
.catch((error) => {console.error('Error:', error);});
</script>
我还尝试通过 URL 对其进行测试:https ://dev.elsevier.com/retrieval.html但似乎那里也存在问题。
注意:我正在通过从网站获得的 API 密钥进行测试(我不能在这里分享)。我提供的是网站上的测试 API 密钥。