Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/287.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Booking.com API未采用城市ISO代码_Php - Fatal编程技术网

Php Booking.com API未采用城市ISO代码

Php Booking.com API未采用城市ISO代码,php,Php,我发现,对于booking.com API调用,它需要一个名为city_id的参数,该参数是负六位数(-xxxxxx)。有没有办法通过city ISO2或ISO3代码而不是city_ID调用这些API。您得到了什么错误?嗯,看来你做错了什么。请休耕的例子,你有如何调用(别忘了做认证) 响应示例 <countries> <country countrycode="AD" name="Andorra" /> <country countrycode="AE" n

我发现,对于booking.com API调用,它需要一个名为city_id的参数,该参数是负六位数(-xxxxxx)。有没有办法通过city ISO2或ISO3代码而不是city_ID调用这些API。

您得到了什么错误?嗯,看来你做错了什么。请休耕的例子,你有如何调用(别忘了做认证)

响应示例

<countries>
  <country countrycode="AD" name="Andorra" />
  <country countrycode="AE" name="United Arab Emirates" />
  <!-- example output. Use the API for a complete updated list -->
</countries>
<!-- RUID: [XXXXXXXXXXXXXXXXXXXXXXXXXXX==] -->


您正在调用booking.com api的哪个端点?请尽量把你的问题弄清楚;)