How to get PNR expiry - sabre

Is there any way I can get expiry date of PNR or maximum time allowed for booking in Sabre's Bargain Finder Max Query? I need to get the expiry of PNR which is provided by airline. Is their any SOAP or Rest api available to get this information? It would be better if anyway I can get the expiry in BFM results.

If you are looking for the expiration of the fare indicated by the airline, this is something that BFM will not return. If you need the ticketing time limit from the PNR you can read PNRs with getReservationRQ.

Related

Want to know the usage of geocoding-api key of limit $300

I have activated free Google cloud account giving me access to the google-geocoding-api key of limit up to $300.
How do I know that how much my application is accessing the api per day and how much is remaining? Is there an option for displaying how much I have access the API over time or possibly a notification that will be sent to me.
I want to know about the calculation of key access per day and the daily usage limit. From where I can see these details.
Thank you.
You should get an email every month starting how much you have used that month and what you are being billed.
you can also check your Google developers console and see the current status of your billing account.
If you check the quote section you will find details on what calls you have made to the API and their response codes

Telegram Bot. Get User timezone

When developing bot for Telegram is there any way to get user timezone? Date field in Message object contains UNIX timestamp only. I want to create bot sending some messages an fixed time of day to subscribed user. User can have different time zones and I don't want to force users to explicit send their timezone to bot in message.
It's imposible by standard Bot API.
You can ask user for location, and next, from this location calculate timezone for user.
I've added /set_utc_offset command to my bot where users enter the time difference in minutes compared to UTC

How do I increase the rate limit for Google translate API?

I am getting a HTTP 403 error with message: "... returned "User Rate Limit Exceeded">. after about 5K message translation. I have a deadline to get this done and the forum postings are not getting any responses from Google support.
The FAQ page states the following:
I get an HTTP 403 error when I call the API.
You may be exceeding your quota: either the daily billable total, or the limit on request characters per second.
To view or change usage limits for your project, or to request an increase to your quota, open the API Library in the Cloud Platform Console.
If you have enabled billing for your project, you can see the quota percentage for each API. You can view and change quotas from the API section's API Library and Enabled APIs links
======================*
I have my rate at the maximum allowable which is 10K/100sec/user, I cannot increase past that.
characters/100seconds/user 10,000
And when I go to the quota request page to ask Google support to increase it, the only thing I see is the character increase request, not the rate increase, and it does not let me submit the form.
How do I get someone at Google to look at this without paying $300 for silver support - that is the lowest level at which they provide phone support.
===============
*Translate API Quota Increase Request
This form should be used by customers of Google Cloud Platform for the following:
Owners of applications that wish to increase quota limit of Translate API to higher than 50M characters/day
If you wish to increase your quota, but will stay below 50M characters/day, please follow the steps listed on the Translate API FAQ page.
If you have other questions related to Translate API, please check this public forum for further help.
=================
I got the answer back from Google - you need to input 51 or greater into the request form (not 51M which I was trying and the form would just not let me submit).
At the current rate, my program will take about 8 hours to run if I put in the right timing delays, and I cannot monitor my program...hoping Google will increase the rate quota
If seems you're hitting the characters/100seconds/user quota. Currently there isn't any separate form to request an increase to this specific quota. You can request an increase by filling out the Translate API Quota Increase Request form. You'll need to specify 'Approximate translate volume (M characters/day)' as anything > 50 (e.g. 51) to get past the form validation. Inside 'Detailed description of API Usage' section, please explain in details that you need an increase to the characters/100seconds/user quota (along with desired increase) and not to characters/day.

Need details on increasing google analytics quota limits

I am a developer and working on a website that uses Google Analytics standard account. I use core-analytics Apis (for .Net) for querying GA to fetch different details such as total page hits, unique page hits, avg. time spent on a page, last viewed date for each web object in the web site.
I need to make 2 queries for each web object to get all these details and we have a large number of such web objects to fetch data for. In past few days I have noticed that these statistics are not being retrieved for some objects. In the logs I found an exception “Quota Error: User Rate Limit Exceeded” which states that I am exceeding the quota limit.
When researched this error, I found that below are some threshold limits that are applicable to GA standard account:
General quotas:
50,000 requests per project per day
10 queries per second (QPS) per IP
Core reporting API quotas:
10,000 requests per view (profile) per day
10 concurrent requests per view (profile)
I am not sure if which of these quotas are being exceeded. But I suspect that either 10 QPS or 10,000 req/view is being exceeded.
Question 1 : Could you please let me know if there is any way by which I can increase these quota limits(even if it involves extra cost by switching to premium account).
Question 2 : If we cannot increase the quota, can anyone please guide me how can we fetch details such as total page hits, unique page hits, avg. time spent on a page, last viewed date in a single query instead of two.
Please let me know in case you need any other details from my end.
First off you cant increase either the 10 queries per second (QPS) per IP or 10,000 requests per view (profile) per day
If you rerun the request and it doesn't work then you may be hitting the 10,000 requests per view (profile) per day once you hit that its not going to work again for that profile until the next day.
If you are unable to make any requests against any views then you are probably hitting the 50 k limit which you can request an extension of. It normally takes a month or so to get an extension.
As for the 10 requests a second I suggest you slow down your application and make sure that you aren't running to fast. You can also add quota user which can help with that.

What's the rate limit of graph api? How long does graph api's access token expire?

What's the rate limit of graph api?
I have done a lot of searching and asking on the web. Some said 600calls/600secs, but I did not manage to find the official decalration of rate-limiting issues.
How long does graph api's access token expire?
No being able to find it anywhere
This limit is not mentioned anywhere in the documents. This limit is user specific i.e If u are making 600 calls in 600 secs for 1 or more tokens of a user. There can be a workaround by using tokens of different Apps but same user, if u need to make so many calls.
1.I don't think there is any rate limit on the Graph API although they have some thresholds mentioned at Facebook Platform Policies stating
If you exceed, or plan to exceed, any of the following thresholds please contact us as you may be subject to additional terms: (>5M MAU) or (>100M API calls per day) or (>50M impressions per day).
2.The access token (and not extended access token) has validity of 60 mins. You can also query Facebook Token Debug API for the exact token expiration. Although Facebook mentions this short duration in a range of 1 to 2 hours here, which can be used to retrieve a extended access token with validity of 60 days.

Resources