error 403 Request had insufficient authentication scopes in postman - postman

I'm trying to retrieve from Postman the answers of a form I created on google form but I can't do it.
First of all I created a form on google form.
I sent it to a person to get some answers.
I followed this tutorial which allowed me to set up oauth 2.0 on postman https://www.vulongtran.com/how-to-use-postman-with-google-cloud-platform-apis
Then as indicated in the api documentation of google form, I put in postman the GET method and I pass him the following url:
I replace obviously the formId by the id of my form which is the following 1FAIpQLSdNlmrvlMXvUlhSjiTb7YsqjHCTYZNRlJlGJnwkxyzNNSPe3A
This gives me the following url:
This gives me the following url:
https://forms.googleapis.com/v1/forms/1FAIpQLSdNlmrvlMXvUlhSjiTb7YsqjHCTYZNRlJlGJnwkxyzNNSPe3A/response
Before sending the request from postman I go on Postman->Authorization and I select the token set up thanks to the tutorial of this site:
https://www.vulongtran.com/how-to-use-postman-with-google-cloud-platform-apis
This does not work I get the following error:
{
"error": {
"code": 403,
"message": "Request had insufficient authentication scopes.",
"status": "PERMISSION_DENIED",
"details": [
{
"#type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "ACCESS_TOKEN_SCOPE_INSUFFICIENT",
"domain": "googleapis.com",
"metadata": {
"service": "forms.googleapis.com",
"method": "google.apps.forms.v1.FormsService.GetForm"
}
}
]
}
}
I am completely blocked if anyone can help me please?
Translated with www.DeepL.com/Translator (free version)

Related

How to get value for Client_id and Client_Secret to call API from Postman

I am trying to call RingCentral API from Postman. This is my first attempt and so I am following what is provided by RingCentral documentation: https://developers.ringcentral.com/guide/messaging/sms/postman
I created a Sandbox account and an API app which uses following authorization:
However, when I call from the Postman, I am getting following error:
{
"error": "unauthorized_client",
"errors": [
{
"errorCode": "OAU-251",
"message": "Unauthorized for this grant type"
}
],
"error_description": "Unauthorized for this grant type"
}
Thank you.

Postman: request failing with CORS:ORIGIN_NOT_ALLOWED

I am trying to access API with a POST request, but it's failing with an error. How do I resolve it?
{
"code": 403,
"reason": "Forbidden",
"description": "The server understood the request but refuses to authorize it.",
"message": "CORS:ORIGIN_NOT_ALLOWED:chrome-extension://aicmkgpgakddgnaphhhpliifpcfhicfo"
}

Facebook Audience Overlap via API not working

I trying to call to overlap api via facebook graph api
The only source I find to facebook overlap is here
Facebook Audience Overlap via API
But when I trying it really not work
The call is in api v10.0
act_10202169727663069/audienceoverlap?pivot_id=6124596383156&{comparison_ids=["6124720495756","6122310977756"]}
The answer I get is:
{
"error": {
"message": "(#100) Tried accessing nonexisting field (audienceoverlap) on node type (AdAccount)",
"type": "OAuthException",
"code": 100,
"fbtrace_id": "Avf-Fn29XQoHMU3bAxGNQBc"
}
}
Debug information
==== Query
curl -i -X GET \
"https://graph.facebook.com/v10.0/act_10202169727663069/audienceoverlap?pivot_id=6124596383156&%7Bcomparison_ids=%5B%226124720495756%22%2C%226122310977756%22%5D%7D&access_token=<access token sanitized>"
==== Access Token Info
{
"perms": [
"read_insights",
"ads_management",
"ads_read",
"business_management",
"pages_manage_ads",
"public_profile"
],
"user_id": "10224770822076304",
"app_id": 987735165367365
}
==== Parameters
- Query Parameters
{
"pivot_id": "6124596383156",
"{comparison_ids": "[\"6124720495756\",\"6122310977756\"]}"
}
- POST Parameters
{}
==== Response
{
"error": {
"message": "(#100) Tried accessing nonexisting field (audienceoverlap) on node type (AdAccount)",
"type": "OAuthException",
"code": 100,
"fbtrace_id": "Avf-Fn29XQoHMU3bAxGNQBc"
}
}
==== Debug Information from Graph API Explorer
- https://developers.facebook.com/tools/explorer?method=GET&path=act_10202169727663069%2Faudienceoverlap%3Fpivot_id%3D6124596383156%26%7Bcomparison_ids%3D[%226124720495756%22%2C%226122310977756%22]%7D&version=v10.0

Getting the following error when tried to deploy node js app on Google Cloud

This is my first time using Google Cloud and I tried to send it. As per the tutorial on YouTube, I have a app.yaml file which looks like this:
runtime: nodejs
env: flex
When I ran gcloud app deeply, it failed. In the terminal, there was an error, and it told me to go to this page for the full details, and here is what the page gave me:
{
"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.",
"errors": [
{
"message": "Login Required.",
"domain": "global",
"reason": "required",
"location": "Authorization",
"locationType": "header"
}
],
"status": "UNAUTHENTICATED"
}
}
PS: I am not trying to do any google authentication on my website.
Here is what I got in my terminal, it is a bit messy:
Updating service [default] (this may take several minutes)...failed.
ERROR: (gcloud.app.deploy) Error Response: [13] Flex operation projects/turing-problems/regions/us-east1/operations/0cfe7722-014c-4834-b184-00b9e4961379 error [INTERNAL]: An internal error occurred while processing task /appengine-flex-v1/insert_flex_deployment/flex_create_resources>2020-07-24T16:34:33.630Z4931.jc.12: Deployment Manager operation turing-problems/operation-1595608474469-5ab328c52462a-0c83d4d8-c6c54fdd errors: [code: "RESOURCE_ERROR"
location: "/deployments/aef-default-20200724t123246/resources/aef-default-20200724t123246"
message: "{\"ResourceType\":\"compute.beta.regionAutoscaler\",\"ResourceErrorCode\":\"403\",\"ResourceErrorMessage\":{\"code\":403,\"message\":\"The caller does not have permission\",\"status\":\"PERMISSION_DENIED\",\"statusMessage\":\"Forbidden\",\"requestPath\":\"https://compute.googleapis.com/compute/beta/projects/turing-problems/regions/us-east1/autoscalers\",\"httpMethod\":\"POST\"}}"
]

Getting an error from Facebook Server-Side API when sending a pixel event

I am trying to make use of Facebook Server-Side API to send pixel events from my server. I'm making a POST request to this endpoint:
https://graph.facebook.com/v6.0/509380299968653/events?access_token=<SYSTEM_USER_ACCESS_TOKEN>
and sending this payload:
data:[
{
"event_name": "PageView",
"event_time": 1586978506,
"user_data": {
"fbc": "fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890",
"fbp": "fb.1.1558571054389.1098115397"
}
}
]
,
"test_event_code":"TEST13699"
However, I'm getting an error response from the facebook server:
{
"error": {
"message": "(#100) Tried accessing nonexisting field (events) on node type (AdsPixel)",
"type": "OAuthException",
"code": 100,
"fbtrace_id": "AaqSg_DnGvvpjI3cWCK1yPU"
}
}
Need help to figure out what I'm doing wrong.