Which API to use to add an OTH segment to a PNR - sabre

I would like to use the Sabre Webservices API to add an OTH segment to a PNR. Can anyone advise the correct API to use?
Thank you,

Either MiscSegmentSellLLSRQ or PassengerDetailsRQ which orchestrates the before mentioned service.
https://developer.sabre.com/docs/read/soap_apis/air/book/Sell_Miscellaneous_Segments
https://developer.sabre.com/docs/read/soap_apis/management/itinerary/Passenger_Details

Related

Where can I find Toll Cost Extension HERE API docs?

I need to implement a toll for calculating the route, and I wanted to use Toll Extension like described here. But I can't find documentation for this API. Any information about it redirects to Fleet Telematics API.
I would like to avoid having to implement the whole Fleet Telematics API or guessing what are the Toll Cost Extension's API parameters from the example in the first link.
I am looking for an answer that will point me to official docs or any official info saying this is deprecated and should not be used anymore.
Could you please check this toll cost API documentation if this accomplish your task.
https://tce.api.here.com/2/calculateroute.json
?app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}
&waypoint0=49.33729606975952,0.5986232869327068
&waypoint1=49.493527937780975,0.10129541603788539
&mode=fastest;car
&cost_optimize=1
Link to the docs is here.
Would like to highlight one problem - if you choose to just calculate toll based on existing route you may face the issue with too long url on their NGINX side. Also this API (TCE) seems to be deprecated, so it may be inevitable (unfortunately) to use fleet API.
In fleet API most params are the same like in TCE/Route API, some result are hidden via attributes. More on https://developer.here.com/documentation/fleet-telematics/api-reference.html. Worth to mention is that at least for now is it very expressive and there is a limited option to change this. For example, my TCE toll response has about 10k lines of formated json... whereas the same for fleet has 300k because there is no option (with routeMatch=1 to remove links/waypoints.
From my already quite long experience with Here API as a whole, it requries some time to go deep into it... and find things.

OpenTSDB HTTP API programming

Someone has developed some OpenTSDB application to interface with HTTP API Rest?
I'm new both to OpenTSDB and both to HTTP programming.
Check out openTSDB2.0 documentation : opneTSDB documetation It has better support for adding and scanning nodes via HTTP api.
It sounds like you are looking for OpenTSDB clients. You will find a list of these on the Resources page.
If you want to monitor generic server statistics, these might already be implemented by one of the utilities, like tcollector. We use scollector, which is a part of Bosun (see the Resources page above).
Check the Documentation for OpenTSDB HTTP API. Scroll down to API Endpoints section, you will find enpoint URLs for put,aggregators,query,search, etc

Comparison between SOAP and XML RPC

I was reading the comparison between SOAP and XML-RPC from the following article.
http://weblog.masukomi.org/writings/xml-rpc_vs_soap.htm
In the article it is mentioned that SOAP can:
1).Can specify recipient
2).Require client understanding
3).Message specific processing instructions
Can some one please explain the above mentioned points with example?.
I hope this helps.
http://r4r.co.in/webservice/01/tutorial/basic/soap.shtml

Google Distance Matrix API

I was trying to use Google Distance Matrix API JSON in my project, after formatting the url, for example:
http://maps.googleapis.com/maps/api/distancematrix/json?origins=Vancouver+BC|Seattle&destinations=San+Francisco|Victoria+BC&mode=bicycling&language=en&sensor=false
I was able to view the result in browser, but when I tried to make a http request to get the result, I will receive status : REQUEST_DENIED
In documentation:
REQUEST_DENIED indicates that the service denied use of the Distance
Matrix service by your application.
But I still don't know why my request is denied. More Info from google:
Use of the Distance Matrix API must relate to the display of
information on a Google Map; for example, to determine
origin-destination pairs that fall within a specific driving time from
one another, before requesting and displaying those destinations on a
map. Use of the service in an application that doesn't display a
Google map is prohibited.
If I can't get the result, how can I apply it on google map?
Anyone with same problem? I will post sample code later, to clarify my question more clearly.
I had a similar problem, but it was due to assuming that the sensor tag would default to false, but it is in fact required.
Google Distance Matrix API has a limit of elements set to 2500.
I highly doubt it that you would have gone over this limit, as you would have to have calculated the maximum 10 x 10 matrix 25 times over.
I am from South Africa, and it refused to work for any local addresses until I changed the transport mode to driving (from walking, I mean seriously, we have cars). Maybe that'll help
https://maps.googleapis.com/maps/api/distancematrix/json?origins=Seattle&destinations=San+Francisco&key=YOUR_API_KEY
Please make sure that you have created a credentials on Google Console which can be called as "API KEY" and you are using this API KEY in above request URL on the place of "YOUR_API_KEY"
I had the same problem earlier.
you need to check out with the Google Api key version and codes/scripts of version you are using.
I believe you need to get a Google Maps API key
You need to set an API KEY for using Google map services like this:
https://maps.googleapis.com/maps/api/distancematrix/json?units=imperial&origins=Washington,DC&destinations=New+York+City,NY&key=**YOUR_API_KEY**
First thing is that you need is to have an API key assigned to your application. This is done by creating it in the Google API Manager.
I hope your have enabled distance matrix API from google console for your application.
please refer
https://support.google.com/googleapi/answer/6158841?hl=en
along with this you can restrict API_KEY for unauthorized use.

ASP.NET and FedEx integration

i am doing FedEx integration with asp.net project. The web service works correct but, I have some doubts about the API code
Anyone know what is the use of RateRequestTypes object in FedEx API? Can you please tell what is the purpose of the following lines in the code
request.RequestedShipment.RateRequestTypes = new RateRequestType[2];
request.RequestedShipment.RateRequestTypes[0] = RateRequestType.ACCOUNT;
request.RequestedShipment.RateRequestTypes[1] = RateRequestType.LIST;
The RateRequestType is if you have an Account with Fedex you will get Account based rates, otherwise List base rates which are more expensive. Most people when developing an api for fed ex use account based rates.
RateRequestTypes object in FedEx API?
Simple answer, no. You need to look at the documentation FedEx (should've) provided you.
If the problem is elsewhere, such as not understanding the messages being passed to and from, then take a look at fiddler. I find this is worth its weight in gold when debugging web services.

Resources