获得 401 "The access token provided in the Authorization header is invalid"



不确定我错过了什么,我在下面的 curl 命令(虚拟 API 密钥(的身份验证标头中收到无效令牌的 401。任何帮助不胜感激,谢谢!

curl -H 'Authorization: xxx12345678865556' 'https://test.api.amadeus.com/v1/shopping/flight-offers/?origin=PAR&destination=JFK&departureDate=2018-09-25&returnDate=2018-09-28&adults=1&travelClass=BUSINESS&nonStop=true&max=2'

我尝试过"accessToken"并包括"持有者",仍然得到401。

谢谢

这是带有正确标题的卷曲,请将access_token替换为您的令牌。

curl -X GET \ "https://test.api.amadeus.com/v2/reference-data/urls/checkin-links?airline=1X" \ -H "授权:不记名access_token">

您将在此处找到帮助您的指南。

请注意,令牌的有效期为 30 分钟。

相关内容

最新更新