0
我正在构建一个程序,该程序将列出来自我的Amazon Cloud Drive的相册/文件夹和图像。我可以通过在amazon public apis上按照说明here进行身份验证并获得令牌。亚马逊云端硬盘REST api端点
我在下次拨打电话时遇到了问题,请求在帐户API下的端点here。
使用得到
GET : {{metadataUrl}}/account/endpoint Gets the customer end-point against
which REST queries will be executed.
所以我的要求看起来就像这提琴手和我的网站上,就像它是在亚马逊网站here下获取端点描述。唯一的区别是显而易见的原因。
Sample Request:
GET /drive/v1/account/endpoint HTTP/1.1
Host: drive.amazonaws.com
Authorization: Bearer
Atza|IQEBLjAsAhQ5zx7pKp9PCgCy6T1JkQjHHOEzpwIUQM
我的回答是:
{
"message":"Authorization header requires 'Credential' parameter.
Authorization header requires 'Signature' parameter.
Authorization header requires 'SignedHeaders' parameter.
Authorization header requires existence of either a 'X-Amz-Date'
or a 'Date' header. Authorization=Bearer"
}
我所期待:
{
"customerExists": true,
"contentUrl": "https://content-na.drive.amazonaws.com/cdproxy/",
"metadataUrl": "https://cdws.us-east-1.amazonaws.com/drive/v1/"
}
我没有找到然而建设对象从亚马逊我的回应,一些信息,它不是上市在亚马逊开发者网站上的文档中。这是新的东西,没有在文档中更新或我做错了什么?