尝试列出酒店时需要授权错误。

时间:2018-01-04 11:44:27

标签: httprequest basic-authentication http-status-code-401 booking.com-api

我是booking.com的附属公司,然后我想使用Booking API文档here

我正在使用的请求是:

GET https://distribution-xml.booking.com/2.0/json/hotels?hotel_ids=10004

我在请求标题中使用了基本身份验证

但是我收到了这个错误:

{
    "errors": [
        {
            "message": "Authorization Required",
            "code": 401,
            "ruid": "UmFuZG9tSVYkc2RlIyh9YVhcDYJlWOcAkxMZH+1jcquI5Z7fv6LDYaceuj3AdKd3VDgwdChn5akQBxBnXalRCXWo+sYnzuopS7/bBrZXsHI="
        }
    ]
}

0 个答案:

没有答案