I am using Postman in order to test the Google Data Studio APIs.
I get the following error for the call: https://datastudio.googleapis.com/v1/assets:search?assetTypes=Report
{
"error":{
"code":403,
"message":"Request had insufficient authentication scopes.",
"status":"PERMISSION_DENIED"
}
}
The rights are present:
And no scope of Google Data Studio is present here to carry out other tests:
https://developers.google.com/oauthplayground/
You need https://www.googleapis.com/auth/datastudio scope to use the Data Studio API. You API client should also be authorized (see instructions).
The API is not supported by Google at all. You can't use Oauth dialog.
Related
While configuring API in Unqork(No-Code platform) getting error "PARTNER_AUTHENTICATION_FAILED" while try to fetch Signed Document.
I have used this API Endpoint - {{baseUrl}}/v2.1/accounts/{{accountId}}/envelopes/{{envelopeId}}/documents/0
And also getting file in UTF-8 format. But when trying to convert it into PDF than getting blank document.
Unqork
From google searching, it looks like this page may be of help: https://academy.unqork.com/advanced-api-authentication
In general, you need to get unqork to use OAuth with a DocuSign oauth service provider (account-d.docusign.com) to obtain an access token. Then use that access token in unqork's API calls to DocuSign.
Contact unqork's customer service group for more help.
General information on the problem
PARTNER_AUTHENTICATION_FAILED more information error message
Are you using legacy authentication or OAuth authentication? Only OAuth is supported for new integrations.
You must obtain an access token to make API calls. You can obtain an access token via OAuth.
See the docs. Or a video.
If you want more help, ask a new question and provide more information on exactly what you have tried and what is or is not working.
I'm trying to get list of my shared albums from Google Photos.
I found a enable Photos API in Google Developers Console.
HTTP GET:
https://content-photoslibrary.googleapis.com/v1/sharedAlbums?key=AIzaSyCkXXXXXXXXXXXXXZiOSe9IiyM8E
RESULT:
{ "error": { "code": 401, "message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.", "status": "UNAUTHENTICATED" } } 1
Configuration in developers console:
Please, what I'm doing wrong? Thank you.
Google API need an access token to make sure that the user has the permission to access the feature. Access token is just like cookie that should be send together with the request.
Usually you will need so many setup to get the access token with your own code. But there are a client library that can help you access Google API with small setup.
Access token also has a lifetime, so if you don't use the library you will need to manually refresh the token.
You need to configure OAUth 2.0 credentials (client ID and secret) and not an API key. More details are in the developer documentation here: https://developers.google.com/photos/library/guides/get-started#request-id
The Google Photos library API acts on behalf of a user, that's why you need to authenticate via OAuth 2.0. As part of this request you also need to specify a scope for your users to accept, see this page for more details: https://developers.google.com/photos/library/guides/authentication-authorization
I've been working on a python project to backup google photos library and album info. you can probably modify it to do exactly what you want. It is fully working but does not currently distinguish between shared and private albums.
https://github.com/gilesknap/gphotos-sync
In particular, see https://github.com/gilesknap/gphotos-sync/blob/master/gphotos/authorize.py which handles authentication and authorization for any Google service (it also handles storing the token and refreshing the token).
I am using internal mulesoft APIs from Anypoint Access Management API Reference. I have successfully setup my postman to get the security token after login, and even executed successfully the /api/users/me and several other APIs as API creation, Portal creation, etc. However, regardless of the access provided to the connection/login user, i can't get the full list of users (/api/users) or full list of organizations (/api/organizations), receiving a 401-Not authorized error. What special permission does the connection user require to execute these 2 APIs?
Thank in advance!
Had the same issue but figured it out.
Instead of calling: /api/users, you should be calling https://anypoint.mulesoft.com/accounts/api/organizations/{orgId}/members to get a list of users.
I want to connect Magento with Jet marketplace API.
Jet provides API for the same.
I have an extension that is configured on my website.
Just finish 80% profile in my Jet.com profile.
Now for 20% i have to complete TEST API as per jet.com criteria.
{
"Message": "Authorization has been denied for this request."
}
I got token successfully. I'm using POSTMAN tool for sending requests.
Now how can i use token for sku upload and further price and image uploading ?
Thanks in advance
For completing test apis , you have to upload a product (post three files : merchantsku , price and inventory feed files with file parser method) to jet via api , after uploading product you have to create a order from jet partner panel , fetch the order as well acknowledge the order and then you have to ship one order and cancel one order , your test api will be configured and will complete and when you reload your jet partner panel your live apis will be activated.
For the error which you asked :
{
"Message": "Authorization has been denied for this request."
}
Your test apis details are not correct or you are not sending in a correct way , if you are using Postman then you have to set in headers
Authorization: Bearer "token";
For getting token you can use below post api :
$url= https://merchant-api.jet.com/api/token;
$postFields='{"user":"'.$usr.'","pass":"'.$pass.'"}';
and you can use this token in all jet api calls.
Hope this will help.
I am trying to find an example in .NET to gerneate the following call to the Google Admin API:
PUT https://www.googleapis.com/admin/directory/v1/users/user%40domain.com?key={YOUR_API_KEY}
Content-Type: application/json
Authorization: Bearer ya29.1.AADtN_U3
X-JavaScript-User-Agent: Google APIs Explorer
{
"password": "7c4a8d09ca3762af61e59520943dc26494f8941b",
"hashFunction": "SHA-1"
}
I cannot seem to find any code examples for .net as to how to duplicate this. The page https://developers.google.com/admin-sdk/directory/v1/reference/users/update demonstrates the functionality I am trying to localize and use from a .NET application. Any help would be appreciated. We need to leverage this API for an initial password update. We do not allow our students to change passwords so this JSon update is required for us to be able to use Google Apps for Education.
I fought this for a week or so and finally got it to work.
Blogged about it here - how to setup your project, developer console, admin console and .net
http://blog.mwpreston.net/2014/10/17/google-admin-sdk-apis-and-net-integration-changing-a-users-password/