How to use Heremaps charge points API - heremaps

When trying to access:
https://ev-v2.cit.cc.api.here.com/ev/stations.json
?prox=52.516667,13.383333,5000
&connectortype=31&apiKey={myapikeyhere}
I keep getting response:
{
"error": "Forbidden",
"error_description": "These credentials do not authorize access"
}
I'm on Freemium plan, any help would be much appreciated

Related

Google Speech-to-text API

I want to use the Speech-to-text API for an application made in nocode.
I get this error message:
There was a problem setting up your call.
Raw response for API
401 status code
{
"Mistake": {
"code": 401,
"message": "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie, or other valid authentication credentials. See https://developers.google.com/identity/sign- in/web/devconsole-project.",
"status": "NOT AUTHENTICATED"
Thanks in advance
I may be able to transcribe an audio file to text.

Whatsapp Cloud API - An unknown error occurred

I recently started using the new Whatsapp Cloud API. Unfortunately already the sample request in the first steps guide gives an error message. The request to the messages endpoint gives the following response:
{
"error": {
"message": "An unknown error occurred",
"type": "OAuthException",
"code": 1,
"error_subcode": 2593006,
"is_transient": false,
"error_user_title": "Account Not Exist",
"error_user_msg": "Account does not exist in Facebook Hosted API, please use /register API to create an account first.",
"fbtrace_id": "AX1Thf9OPBhmj7NlDV6-5IA
"
}
}
I am still using the Test WhatsApp Business Account with a Test Number.
When calling the register endpoint I get You can’t complete the setup process because your business doesn’t meet WhatsApp’s policy requirements. If you think this is incorrect, reach out to Meta Business Suite support for help.
Does anyone have an idea, what the problem is?
Thank you in advance,
Sören
Whatapp Business Platform requires a verified FaceBook business account and also a working payment method. I recommend to verify your Facebook (Meta) Business Account.

Instagram API Get Media Comments

I have my own Instagram Access Token. How can I read the comments on my Media?
I tried to use the Instagram graph API but it gives me an error.
Documentation - https://developers.facebook.com/docs/marketing-api/reference/instagram-media/comments/
Endpoint - https://graph.facebook.com/{my-media-id}/comments
{
"error": {
"message": "Invalid OAuth access token.",
"type": "OAuthException",
"code": 190,
"fbtrace_id": "AZFkVLSyEpT8lSkHT-47_CF"
}
}
Any help is much appreciated
First thing, you can access data through graph API only if your instagram account is a business account/creator account. If you have one of them, then below is the endpoint to use:
https://graph.facebook.com/v12.0/{media-id}?fields=comments
go through the below doc: https://developers.facebook.com/docs/instagram-api/overview
and make sure you have those permissions added to your access token before you run the endpoint.

Google Cloud ML Engine: Unable to access Cloud KMS

I have a encrypted text, encrypted using Cloud KMS, and I need to decrypt it from the context of a code running in Cloud ML Engine. However I'm running into the following error:
shaded.com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
{
"code" : 403,
"errors" : [ {
"domain" : "global",
"message" : "Request had insufficient authentication scopes.",
"reason" : "forbidden"
} ],
"message" : "Request had insufficient authentication scopes.",
"status" : "PERMISSION_DENIED"
}
at shaded.com.google.api.client.googleapis.json.GoogleJsonResponseException.from(GoogleJsonResponseException.java:146)
at shaded.com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:113)
at shaded.com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:40)
at shaded.com.google.api.client.googleapis.services.AbstractGoogleClientRequest$1.interceptResponse(AbstractGoogleClientRequest.java:321)
at shaded.com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1049)
at shaded.com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:419)
at shaded.com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:352)
at shaded.com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:469)
I tried creating the GoogleCredential object with "https://www.googleapis.com/auth/cloudkms" and "https://www.googleapis.com/auth/cloud-all" scopes, but ended up with the same error.
Please let me know if I'm missing something here.
P.S: I do have a valid GoogleCredential object as I'm able to print the access token.
For now it's not working as we restrict the API scopes on VMs. We are working on the feature to allow KMS. Stay tuned!
Update: we have pushed the change, so you should be able to access KMS now. Please give a try.

Getting "unsupported GET request" from public_profile info

I'd like to know my Facebook ID but the "official" way of doing that
http://graph.facebook.com/{user} (obviously with my userid) gives an unsupported GET error:
{
"error": {
"message": "Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
"type": "GraphMethodException",
"code": 100
}
}
Why is not working? The documentation says the the userid is always part of the public_profile. Are there any other ways of doing that?
"ugol70" is not your id, it´s your username. You can´t use the username anymore. Only use the "App Scoped ID" you get after authorizing (either directly in the authorization process or with the /me endpoint).
..and ALWAYS use an Access Token for API calls. See the following links about Access Tokens, for example:
https://developers.facebook.com/docs/facebook-login/access-tokens/
http://www.devils-heaven.com/facebook-access-tokens/