Polling status of Google Speech to Text - google-apis-explorer

It appears that I have correctly connected the system to the audio recording (.flac). It sent me back the ok 200 code and the name:ID # however I am trying to check the status. I am using the Google API for hits. Can you help me out? The gcloud ml speech operations describe with my ID number isnt working.

Related

Google App Script to reply to Slack with 200 and run the actual code

I have used google app script to make an interactive app in Slack. Most of the time it works as I want it to, but in one of the steps the app has to retrieve all the issues from Jira and attach it in the payload, also contact an external API to create a progress chart etc. In short it is a time intensive process and sometimes it fails because Slack does not get a reply within 3 seconds.
I tried using the trigger builder but unfortunately it has a +-15m accuracy in a millisecond input... I need the interactions to be fairly instant.
If anyone knows and could share another way to make this happen, it would really help.
Thank you

Google Console - API key usage is really high when app is in development

I've build a small web app that asks a user to perform a Google OAuth login and submit their data in a form to a cloud function. All of this is using the same API Key but I'm seeing the usage in the last 30 days to be 2000+ when it's just me testing it. When I look at the usage of the cloud function I see 300 (which looks more realistic to me).
The API Key usage says it includes billable and non-billable requests, any way I can actually see the breakdown without having a surprise slap me in the face at the end of the month once the app goes live?
Any help would be greatly appreciated :)

503 RequestThrottled : Amazon Product Advertising API CartCreate

I am using scratchpad to explore this api. I am able to use item search and item lookup however I have not been able to successfully use cartCreate a single time. I am getting this error:-
Do i need to ask for a special permission to use cartCreate ?
Error! RequestThrottled
HTTP Status 503: Service Unavailable
AWS Access Key ID: __my_key___. You are submitting requests too quickly. Please retry your requests at a slower rate.
PS: So far I have only generated few sales from my affiliate account and signed up for this api. Could that be a reason for this throttling? Is there any developer account which is not subject to such throttling so that I can continue with the exploratory work.
Thanks
CartCreate has been removed in the new API version. Instead, you have to create your own Add To Cart link or form:
https://webservices.amazon.com/paapi5/documentation/add-to-cart-form.html
In general, you'll want to minimize the number of requests you're making, as it's very easy to bump up against those throttling limits.
Source : https://forums.aws.amazon.com/thread.jspa?threadID=318920
I had exactly the same problem :
I think you explore scratchpad from
https://webservices.amazon.fr/scratchpad/index.html#
with is the old API version
With your account (and mine) I get a disturbing error message : HTTP Status 503
You should use the new scratchpad version for the API 5 of Amazon Product Advertising :
https://webservices.amazon.com/paapi5/scratchpad/index.html
Make the same request, and you should see all is ok

Add analytics to a desktop application

I have developed a desktop application using HTML 5 and node web-kit .
I would like to track parts of the app , such as how long its used , clicks ect.
I would like the analytics system to work both on and offline (storing data until its on-line).
Is there anything that I could use to do this?
The Google measurement protocol allows you to track everything that can send an http request. You need to generate a unqiue client id to group pageviews into session (the part is usually done by the Javascript tracker which does not help you) and can then choose between various interaction types and their related data to be added as parameters in a request to the Google Analytics server.
As far as offline capabilites, there is a "queue time" parameter that allows you to send delayed calls to GA. However as per documentation that delay is 4 hours at most (intended for Smartphones and Tablets that temporarily lose connection rather than to work permanently offline).
In the end it depends what data you need - you might just as well send calls to your own server and log them in a csv file and feed that to Klipfolio or some other dashboard solution (or even use Excel if you expect a low data volume).

Suddenly receiving UNKNOWN_ERROR on maps/api/geocode server-side requests

Our server uses the Google Maps API probably a few dozen times a day to turn street addresses into lat/lng coordinates, for later use on a client-side google map.
We've been doing this for years, and we're hitting this URL to do it:
http://maps.googleapis.com/maps/api/geocode/json?address=<street address>&sensor=false
We do this from a Perl script, and it runs once every 15 minutes, processing any that have queued up (again, we're talking a couple dozen requests a DAY). If multiple are queued, it hits the API serially in bursts of 5, then pauses 5 seconds before continuing, if any more remain.
This has worked fine for years now.
Today, we have started regularly receiving HTTP 500 response code, with this JSON in the body:
{
"results" : [],
"status" : "UNKNOWN_ERROR"
}
I have taken one of the actual requests, and repeatedly hit it from my local dev box, and it works fine (repeatedly).
Yet on our server (colocated at a major service provider), I repeat the test, and I can regularly duplicate the 500 error in the browser.
Both my dev box and our server are currently resolving maps.googleapis.com to the same IP:
googleapis.l.google.com [74.125.198.95]
So I don't think it's an issue of our server hitting a bad Google server.
I would suspect a quota issue, except our use is very, very minimal. Perhaps they are blocking a large swath of RackSpace customers, but no idea how we could find this out or rectify it if so.
After further testing on other servers we have colocated at the same facility, only a single server is exhibiting this issue, though the other servers are in different network class entirely.
Does Google typically use this kind of error message for quota issues? If not, any other ideas as to what the problem is, so we can fix it? At this point, we may need to switch to Bing Maps or some other provider, if there's no way to know why it's happening, or when it will return to normal.
I checked Google's status page, and "Google Maps" is green with no issues indicated, but I have no idea if this considers their Maps API services or not.