Token Speech to text - google-cloud-speech

The script does not accept the Google token for speech to text. I create a Google token and enable speech to text. But the server throws a 403 error , as if I entered the wrong token. But it is true, the same length as the friend. The friend token works. What is the problem? Sorry for mistakes, I use a translator. I will be grateful for any response![enter image description here][1]

Related

OCRGoogle API Key not successful

I have created an API key for the Google Cloud Vision, but it is still asking for the same.
I have attached a link to this post, this link consists of the error message that I have got after I ran the G1ANT Program and the credential details of my API.
Showing error dialog reading:
You must provide ApiKey or JsonCredential argument to log in to the Google Cloud Service.
Please type chrome or any web browser text after ocrgoogle.login
Followed by api [key]
Here Is a sample:-
ocrgoogle.login chrome apikey AIzaSyDyESzAAAD9r1deIrC7eP8v6IipoJXBWFQ

Slack API missing_scope for bot requests

I am trying to set channel topics with a bot user token, but I'm getting the missing_scope error:
{
ok: false,
error: 'missing_scope',
needed: 'channels:write',
provided: 'identify,bot:basic'
}
It works if I provide the "OAuth Access Token" (instead of "Bot User OAuth Access Token") from https://api.slack.com/apps/:appId/oauth, but this is a poor solution because the message that gets printed in the channel says that the app installer set the channel topic, not the bot user.
But, the docs say that bots can call channels.setTopic with a bot token, and they don't need channels:write:
What gives? Are there different kinds of bot tokens? Am I doing something wrong? As far as I can tell, I cannot set additional permissions for my bot user.
It also says on the the same documentation page:
Only user tokens may use this method. Bot user tokens will not work.
And since it does indeed not work as you say I am guessing the mention of the bot token in the above table is a documentation mistake.
If you want to be 100% sure I would advise to ask the Slack team directly.

Twitter API issues.“Authentication needed”"Failed to validate oauth signature and token"

Friends,I got a question,and I have googled it,but I didn't find the answer.
I create an iOS twitter app,and apply for a twitter API.
I used my API key in my app,Xcode returns error.
Just like this: http://tinypic.com/r/262ksnk/8
("Failed to validate oauth signature and token")
and this picture is my twitter api status
(sorry,I do not have enough coin to upload a pic,so post my pic here. )
what is wrong with my twitter api,can anyone help me?
Thanks very much.
What is wrong?
Best regards.
This error message relates to a HTTP 401 response.
Please make sure you are properly signing your OAuth requests. This guide will help you with the common pitfalls: Troubleshooting OAuth 1.0A.
In particular, if you are using valid keys and properly signing your OAuth requests but still receiving 401 errors, please check your system time. Since the OAuth signature relies on the current time, it must be in sync with the one from Twitter servers (exposed in all Date response headers from the Twitter API).
The "performance issues" described on the Twitter API status page apply to Twitter as a whole, and have nothing to do with your application. If you are having issues interacting with the Twitter API, we cannot diagnose those from the information provided ("error 3").

Foursquare create Access Token faile

I want to create an access token for my foursquare app.
I've tried it with an PHP library and runscope.com
I always geht this message from foursquare, after I've clicked on "create token" (please note, I translated this text from German into English):
"Connection failed: This app hast got an configuration problem and couldn't make a connection to your facebook-account.
Cause of Error: Callback uri is not valid for this consumer."
I think the callback uri is the redirect uri - but that doesn't work. Is this false? What have I to do?
Can anybody help me or have an idea?
Thank you very much!
Make sure that the redirect_uri in your OAuth URL matches exactly what you have in your app settings page on Foursquare.

Google Contact API

I am trying to retrieve all my contacts using Google Contact API. For this I used Oauth authentication and Google Contact API.
I got "Access Token" from Google OAuth 2.0. But here my question is how can I retrieve my contacts using this "Access Token". How to use this access token in my code. Can any one help me on this please. If possible any sample code snippet please.
I stuck over here. Please help me on this...
Thanks & Regards,
Amar Thondapu
This sample should help: https://github.com/jcleblanc/oauth/blob/master/oauth2-php-google/complete.php. Specifically, look at line 21:
$contact_url = "https://www.google.com/m8/feeds/contacts/default/full?oauth_token=" . $token->access_token;
That URI (with the access token) should be where you can make an HTTP GET request to in order to obtain the contacts. Hopefully they haven't changed the URI in the 2 years since that sample was created.
Jon

Resources