I am developing a reservation system for hotels with Sabre Dev Studio. I want to propose different available Hotels around a location... I use the OTA_HotelAvailLLSRQ request in Sabre SOAP API. I have a list of hotels and rooms with prices.
But, at that moment, I'd like to show my end-user the room description, the photos, the room type name (i.e. "Double confort room", "Junior Suite", etc). It seems Sabre does not give any of those informations : a price, an unusable description... that's all ?
Could anyone explain me if any Sabre SOAP API request can give me these informations (I already tried the HotelImage rq, but it gives general hotel images, not a given room type image list) ???
regards
For getting a specific detailed description of Hotel, you need to call an API that can give you such information like:
https://developer.sabre.com/docs/read/soap_apis/hotel/search/hotel_property_description
There are other Hotel Description services published on Dev Studio.
Sabre doesn't provide any room data. However it provides some clues for matching roomrates to rooms. The IATA_CharacteristicIdentification is typically a combination of a rate and a room. For example, say a particlar hotel has a roomrate of "A03LV2" which might be for a rate A03 and a room LV2. You can then match all the roomrates that end in LV2 to a particular room. As for the name of the room, often there is something of a description in the AdditionalInfo->TEXT objects.
Related
I want to create a smart contract and launch it for ICO. I also create a website where people can buy my token. I want know how to check how many token been sold (live)? so i can create a live bar counter to show how many percentages of the token already been sold.
Or is there a way i can monitor the token sale process in the smart contract?
A token contract is no different than any other smart contract. There are no special built in Solidity features or logic associated with them. They are just regular smart contracts that follow a specification.
So, if you want access to the number of tokens sold, you code that into your contract. While tokens sold is not part of the standard ERC20/ERC721 interface, nothing prevents you from adding a constant function to retrieve this information. In fact, if you're using the basic Zeppelin Crowdsale contract, you can just calculate it using the public state variables weiRaised / rate (Chances are you should be creating your own Crowdsale subcontract, so it's better to add the functionality you want there).
We can use the Etherscan Developer API to review transactions against a given contract address and find out the total supply or number of items available for sale.
There is a lot you can do with the Etherscan Developer API. For example, here's one URL that pulls data from Ethereum Mainnet -> Etherscan -> JSON parser -> Shields.io and renders it as an image to calculate the number of Su Squares remaining for sale:
Source: https://img.shields.io/badge/dynamic/json.svg?label=Su+Squares+available&url=https%3A%2F%2Fapi.etherscan.io%2Fapi%3Fmodule%3Daccount%26action%3Dtokenbalance%26contractaddress%3D0xE9e3F9cfc1A64DFca53614a0182CFAD56c10624F%26address%3D0xE9e3F9cfc1A64DFca53614a0182CFAD56c10624F%26tag%3Dlatest%26apikey%3DYourApiKeyToken&query=%24.result
^ I don't know if SO is going to cache the image here. But that URL is a live URL which pulls the number of Su Squares available hot off the blockchain.
Bing returns banner information including an image and birth date at the top of the search results when you enter a search such as 'Lady Gaga birth date'.
I would like to access this information using Microsoft Cognitive Services for an app using celebrity ages.
When I examine the httpResponseMessage return from the cognitive services call I can't find the image or birth date that appear on the top of the search results page in the body of the return.
Can you point me in the right direction to get this information from a cognitive services call. Similarly, I'd like to be able to access the summary information that appears on the top right of the search results. Any links to advanced documentation or samples on using the cognitive services Bing web search API would also be appreciated.
Thank you for you help.
Those blocks are all custom. It's less about cognitive services and more about tapping into data, translating and creating a presentation.
If you go to the Bing Web Search API site. There select "seattle seahawks" with Response Filter images. You can see that there is some text(name) and a contentUrl. You could write a parser for this to process into the pages.
Although the more logical choice would be actually calling the Bing website or Wikipedia directly. And parsing that result. As you already know it contains the information you want.
I want to know if there is any api that can allow me to get the number of reviews from an url.
I know that google offers the possibility to get this number by using the placeid, but the only information I have is the url of the website of a company.
Any ideas please?
Maybe, but probably not.
Places API Text Search seems to be able to find places by their URL:
https://maps.googleapis.com/maps/api/place/textsearch/json?key=YOURKEY&query=http://www.starbucks.com/store/1014527/us/303-congress-street/303-congress-street-boston-ma-02210
However, this is not a documented feature of the API and I do not think this can be relied upon, so I'd recommend filing a feature request, to make this a supported, reliable feature.
As for the amount of reviews, you may be interested in:
Issue 3484: Add # of reviews to the Place Details Results
I've written an API like this for Reviewsmaker, but I target specific business names not URLs. See this example (I activated a key for this purpose for now):
http://reviewsmaker.com/api/google/?business=life%20made%20a%20little%20easier&api_key=4a2819f3-2874-4eee-9c46-baa7fa17971c
Or, try yourself with any business name:
http://reviewsmaker.com/api/google/?business=Toys R Us&api_key=4a2819f3-2874-4eee-9c46-baa7fa17971c
The following call would return a JSON object which shows:
{
"results":{
"business_name":"Life Made A Little Easier",
"business_address":"1702 Sheepshead Bay Rd, Brooklyn, NY 11235, USA",
"place_id":"ChIJ_xjIR2REwokRH2qEigdFCvs",
"review_count":38
},
"api":{
"author":"Ilan Patao",
"home":"www.reviewsmaker.com"
}
}
Pinging this EP using a Chronjob for example once every hour or two and return the review_count can pretty much build your own review monitoring app;
You can probably do what you're looking for if you query the Places API Text Search or the CSE (Custom Search Engine) API to lookup the URL, return back the matching name of the business associated with this URL and calling an endpoint like this one to return back the associated review count.
You can probably code this in py or PHP. Not sure how familiar you are with data parsing, but I was able to build my API based on Google's CSE API. CSE provides metadata in its results which contain the total reviews, so if you create a CSE engine and use the CSE API looking for business schemas, review schemas, etc; you can return back items and within the PageMap node there are objects with data that you need very little tweaking to do (such as string replacing, trimming) which will return back the values you're looking for.
Hope my answer helped, at least to lead you in the right direction :)
I can find there are multiple API available to book bus tickets , flight tickets and so on like (expedia , redbus) . I just need to know where these systems are centralized and how they are doing it ? . Well it seems a rookie question unfortunately im one of them .
Thanks for reading !
You're spot on, they are centralized. I have friends who work in companies on both sides of the table (Hipmunk, Hotwire, etc). You'll notice when you browse their listing, it's all the same information wrapped in a different UI with a couple of different promotions added on. They're all able to serve you the same price/data because they all have leverage. With this leverage, travel agencies, airlines, and hotels, are able to aggregate and vend this information to all these travel brands in an organized fashion. Unless you have the buying power of these large corporations, you essentially have to use their API.
I may start working on a project very similar to Hipmunk.com, where it pulls the hotel cost information by calling different APIs (like expedia, orbitz, travelocity, hotels.com etc)
I did some research on this, but I am not able to find any unique hotel id or any field to match the hotels between several API's. Anyone have experience on how can to compare the hotel from expedia with orbitz or travelcity etc?
Thanks
EDIT: Google also doing the same thing http://www.google.com/hotelfinder/
From what I have seen of GDS systems, and these API's there is rarely a unique identifier between systems for e.g. hotels
Airports, airlines and countries have unique ISO identifiers: http://www.iso-code.com/airports.2.html
I would guess you are going to have to have your own internal mapping to identify and disambiguate the properties.
:|
When you get started with hotel APIs, the choice of free ones isn't really that big, see e.g. here for an overview.
The most extensive and accessible one is Expedia's EAN http://developer.ean.com/ which includes Sabre and Venere with unique IDs but still each structured differently.
That is, you are looking into different database tables.
You do get several identifies such as Name, Address, and coordinates, which can serve for unique identification, assuming they are free of errors. Which is an assumption.