I need to fetch BigQuery table to show widget in Salesforce. I have configured connected app, I am able to get access token using connected app, but it is not working with Bigquery REST API. Getting below error when tried in Postman.
I am tryinh
endpoint: https://bigquery.googleapis.com/bigquery/v2/projects/partner-pre-qa/queries
request body :{“query”:””}
Content-Type :”application/json”
Authorization : “Bearer <ACCESS_TOKEN_FROM_CONNECTED_APP>”
ERROR
{
“error”: {
“code”: 401,
“message”: “Request had invalid authentication credentials. 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”: “Invalid Credentials”,
“domain”: “global”,
“reason”: “authError”,
“location”: “Authorization”,
“locationType”: “header”
}
],
“status”: “UNAUTHENTICATED”
}
}
Any suggestions?
I need to fetch BigQuery table to show widget in Salesforce. I have configured connected app, I am able to get access token using connected app, but it is not working with Bigquery REST API. Getting below error when tried in Postman.