gpt4 book ai didi

php - Expedia API book.api.ean.com 空白

转载 作者:数据小太阳 更新时间:2023-10-29 02:36:54 26 4
gpt4 key购买 nike

我想用 expedia api 预订酒店

https://book.api.ean.com/

但是url总是空白,

此处使用 rest/json 的详细信息

http://developer.ean.com/docs/hotels/version_3/book_reservation/

我见过几个人遇到同样的问题,想知道是否有人知道这是什么

https://book.api.ean.com/ean-services/rs/hotel/v3/res?cid=55505&apiKey=xxx&locale=en_US&currencyCode=美元&customerUserAgent=Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.83 Safari/535.11&customerIpAddress=127.0.0.1&room1=1,3&room1FirstName=测试预订&room1LastName=测试预订&room1BedTypeId=13&room1SmokingPreference=NS&room2=1,5&room2FirstName=测试预订&room2LastName=测试预订&room2BedTypeId=13&room2SmokingPreference=NS&email=xxx&firstName=测试预订&lastName=测试预订&homePhone=测试预订&workPhone=测试预订&creditCardType=CA&creditCardNumber=5401999999999999&creditCardIdentifier=123&creditCardExpirationMonth=11&creditCardExpirationYear=2012&address1=travelnow&city=贝尔维尤&stateProvinceCode=华盛顿州&countryCode=美国& zip =98004&customerSessionId=0ABAA871-3127-A913-6642-A1F86D902E2B&hotelId=211540&arrivalDate=12/10/2012&出发日期=12/12/2012&供应商类型=E&rateKey=d03a8d29-1df2-4436-81d6-6b37eb4dcb78&roomTypeCode=352749&rateCode=1279169&chargeableRate=803.04

包含或排除 minorrev 似乎没有太大区别

最佳答案

尝试对每个查询字符串参数进行 urlencoding:

customerUserAgent=Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.83 Safari/535.11

arrivalDate=12/10/2012

customerUserAgent url 参数应该是 url 编码的:

customerUserAgent=Mozilla%2F5.0%20(Windows%20NT%206.1)%20AppleWebKit%2F535.11%20(KHTML%2C%20like%20Gecko)%20Chrome%2F17.0.963.83%20Safari%2F535.11

arrivalDate=12%2F10%2F2012

看看 PHP 的 urlencode想要查询更多的信息。

此外,请务必删除每个查询字符串参数之间的空格,不确定是否是复制/粘贴问题。

关于php - Expedia API book.api.ean.com 空白,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9948762/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com