如何从一个站点搜索酒店并从另一个站点预订? [英] How to search hotel from one site and book from another site?

查看:113
本文介绍了如何从一个站点搜索酒店并从另一个站点预订?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须从一个站点(即TripAdvisor)获取酒店的详细信息。从搜索结果列表中,我必须使用其他网站的预订服务(即booking.com)预订酒店。我在互联网上搜索并得出结论,booking.com不提供API服务。他们提供联盟模块。但使用它的联盟服务迫使我



如果我想在浏览器地址栏中显示我的域名



1.使用他们的服务从inspirock.com获取酒店列表(我希望来自TripAdvisor的服务)



2.使用他们的页面布局





如果我想从TripAdvisor搜索结果



1.在浏览器地址栏中的booking.com打开他们的网站进行预订。





我想要的是(这两者的组合)



1.来自TripAdvisor API服务的搜索结果



2.通过booking.com在浏览器地址栏中预订酒店(搜索结果中的酒店)以及我的预订页面布局。





我的问题



1. TripAdvisor的酒店的独特字段是什么?和booking.com(只有在两者中都有'数据库)所以我可以预订同一家酒店。



2. booking.com是否提供API服务?如果不是,那么如何设置自定义布局来预订酒店。



我尝试过的方法:



我没有尝试任何实际操作,因为我必须先进行R& D代表我的任务。这个问题也是出于这个目的。

解决方案

Quote:

1。什么是TripAdvisor和booking.com酒店的独特字段(只有在两个数据库中都有)所以我可以预订同一家酒店。

没有一个。 Booking.com是Priceline的一部分,将拥有自己的数据库。 TripAdvisor也将拥有自己的数据库,但不会有共享ID。你必须联系每个网站,了解如何使用他们的API。



引用:
2。 booking.com是否提供API服务?如果不是,那么如何设置自定义布局以预订酒店。

这对我们来说不是问题。询问booking.com他们是否有API。


I have to get details of hotels from one site (i.e, TripAdvisor). And from list of searched result, I have to book a hotel by using booking service of another site (i.e, booking.com). I have searched on Internet and came to conclusion that booking.com doesn't provide API services. They provides affiliate module. But use of it's affiliate service force me to

If I want my domain name in browser address bar

1. Use their service to get hotel lists as of inspirock.com (and I want that service from TripAdvisor)

2. Use their page layout


If I want search result from TripAdvisor

1. Open their site for booking in another tab with booking.com in browser address bar.


And what I want is (combination of these two)

1. Search result from TripAdvisor API services

2. Booking of hotel (a hotel from searched result) by booking.com with my domain name in browser address bar and also my page layout for booking.


My problems

1. What is unique field for a hotel in TripAdvisor and booking.com (only if it founds in both's database) so I can book for same hotel.

2. Is booking.com provides API services? If no, then How can I set custom layout for booking of a hotel.

What I have tried:

I have not tried anything practically as first I have to R & D for my task. And this question is also for that purpose.

解决方案

Quote:

1. What is unique field for a hotel in TripAdvisor and booking.com (only if it founds in both's database) so I can book for same hotel.

There isn't one. Booking.com is part of Priceline and will have its own database. TripAdvisor will also have its own database but there will be no shared ids. You'll have to contact each site to find out how to use their APIs if they have any.

Quote:

2. Is booking.com provides API services? If no, then How can I set custom layout for booking of a hotel.

That is not a question for us. Ask booking.com is they have an API.


这篇关于如何从一个站点搜索酒店并从另一个站点预订?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆