How to create PNR on SABRE with passenger details - sabre

Can anyone please provide perfect steps to create PNR on sabre from session create till PNR and session close. I also need WSDL URLs for these steps.

Note: TravelItineraryAddInfoRQ + TravelItineraryReadRQ + EndTransaction can be summarized in a single step by calling PassengerDetailsRQ

Steps for Create PNR in sabre System
setp1. OTA_AirAvailLLSRQ
setp2. EnhancedAirBookRQ
step3. TravelItineraryAddInfoRQ ( add passenger details)
step4. TravelItineraryReadRQ (Confirm Passenger Details)
step5. EndTransactionRQ
Note: this Steps should have same sessions. After EndTransactionRQ you will get PNR
More Details use following link
https://developer.sabre.com/

Related

Avoid manually insert device code key in AzureKusto

I'm trying to connect to db in Azure Data Explorer from R using AzureKusto library. Following this documentation https://github.com/Azure/AzureKusto, after calling kusto_database_endpoint(...) function I need to open a browser page and insert the printed code manually. There's a way to skip this manual step and do it automatically? Or there are alternatives for connecting to ADX db?
Thanks for the help!
Co-creator of the package here. Thank you for the question. Yes, you can use the get_kusto_token function to obtain a token and then pass it to kusto_database_endpoint as the .query_token argument. get_kusto_token supports the following authentication flows:
"authorization_code"
"device_code"
"client_credentials"
"resource_owner"
For example, if you have an AAD application service principal that has access to the Azure Data Explorer cluster, you can use its ID and secret to authenticate:
# authenticate using client_credentials method: see ?AzureAuth::get_azure_token
token <- get_kusto_token("https://mycluster.kusto.windows.net",
tenant="mytenant",
authtype="client_credentials",
app="myappid",
password="myclientsecret")
kusto_database_endpoint(server = "mycluster.kusto.windows.net",
database = "mydb",
.query_token=token)
The help page ?AzureKusto::get_kusto_token provides more detailed information on this. Also, please note that the get_kusto_token function is a wrapper around AzureAuth::get_azure_token. The readme for the AzureAuth R package has more detailed examples of other methods of obtaining an Azure access token: https://github.com/Azure/AzureAuth

R- Following Error: API returned: Request had insufficient authentication scopes

I've verified my API in RStudio after hours of trying and now I've reached another error while trying to translate a sentence. Would be grateful for any help!
I'm just trying to translate "hello" to french using googleLanguageR package -
> gl_translate("Hello", "fr")
The result I get is this -
2021-01-21 17:15:36 -- Translating text: 5 characters -
i 2021-01-21 17:15:36 > Request Status Code: 403
Error: API returned: Request had insufficient authentication scopes.
I'm a literal beginner in the field of computing and do not understand what scopes mean here.
Thanks for the help!
Scopes are permissions that you give to apps you use to access an API. For example, one App might have permission to read the private messages of a users, whereas another doesn't. It's similar to when an app on your phone asks for permission to use the camera, or access your contacts.
Your app is trying to do something that it doesn't have permission to do. You'll need to add the relevant scopes in whatever setting that it is where you're generating keys etc. Presumably Google Data Studio?
Okay, I found an answer.
I needed to download a json version of my key and authorize it using the code -
gl_auth("filename.json")
After doing this, I needed to make sure my API is enabled. Now, it is working perfectly!

Get the user information from teams using Bot framework composer

I had created a bot using bot framework composer and integrated it with MS Teams with help of the azure web app.
Now I need to get the login user(MS Team) information i.e. the user who using the bot.
I need to get the user information and log it in the azure application insights using Bot Framework Composer.
Can anyone help me with it?
Get UserID from ${turn.activity.aadObjectId}
Get more user information by Microsoft Graph: https://learn.microsoft.com/en-us/graph/api/user-get?view=graph-rest-1.0&tabs=http
In MS Teams, with each new interaction with the bot, a "conversation Update activity" is first sent to the bot, this is what triggers the welcome greeting. You get back the following context in the returned JSON - in the Turn.Activity memory scope.
...snip...
"serviceUrl":"https://smba.trafficmanager.net/emea/",
"channelId":"msteams",
"from":{
"id":"<<Unique MS Teams Identifier for the end user>>",
"name":"<<AAD firstname surname is returned here>>",
"aadObjectId":"<<GUID is returned here>>",
"role":"user"
},
...snip...
You can Use the aadObjectId to query the MS Graph using an HTTPRequest if you want to get further info. Or just use the persons "name" field (which is from AAD) if that is good enough.

API Equivalent for Sabre host command WPNCS

Could you please help me to find API Equivalent for Sabre host command WPNCS (Search for lowest fare even if not
available)
but can't find correct request in API docs
Please Help!
Check OTA_AirPriceLLSRQ
https://developer.sabre.com/docs/read/soap_apis/air/book/price_air_itinerary
The request design document shows a reference to WPNCS:
http://webservices.sabre.com/drc/servicedoc/OTA_AirPriceLLSRQ_v2.12.0_Design.xml
Note that you can do the same from the orchestrated booking service (EnhancedAirBook):
http://files.developer.sabre.com/doc/providerdoc/ServicesPlatform/EnhancedAirBookRQ_v3.6.0_Design.xml

How can my RedApp retrieve current PNR open in sabre red workspace

I am new to Sabre redapp development. My redapp use case is to get an event notification when a new booking is made and to get the currently opened PNR in the agent workspace.
I see that I can subscribe to events based on action code, but I
do not know what the action code is for a new booking command. Also
if I have to filter through all commands, what should I filter on?
Secondly I want to get the PNR opened in the workspace. The
IWorkBenchService gives the WorkAreaData object, but it only has an
API isPNRPresent(). How can I read the current PNR data into my
Redapp?
What you can do is listen to the command that is used to close/save a reservation (aka PNR). After that, you can call the TravelItineraryRead webservice to get the PNR information.
In the SDK folder you will find a sample folder, and in that folder an plugin example called com.sabre.redapp.example.cf.sws-1.0.1-SNAPSHOT-v20140313-1205 that implement a webservice call.
Also you can check the section: Red App Help - Release 2.13.2 > Red App Dev Help 2.13.2 > Communications in Red Apps > Sabre Web Services Communications> Accessing Sabre Web Services in the Sabre Red Apps Eclipse help.

Resources