Youtube API - API key not valid. Please pass a valid API key - youtube-api

I have the API key activated with no restrictions.
But still I get the error:
{
"error": {
"code": 400,
"message": "API key not valid. Please pass a valid API key.",
"errors": [
{
"message": "API key not valid. Please pass a valid API key.",
"domain": "global",
"reason": "badRequest"
}
],
"status": "INVALID_ARGUMENT"
}
}
I'm using this request:
https://www.googleapis.com/youtube/v3/videos?part=snippet&id=[VIDEO-ID]&key=[MY-KEY]
What I'm doing wrong?
Thank you in advance!

Related

Create Workforce Integration using the graph API

I am using this endpoint in POSTMAN: Endpoint: https://graph.microsoft.com/v1.0/teamwork/workforceIntegrations
with requst body
Request body:
{
"apiVersion": 1,
"displayName": "samplename",
"encryption": {
"protocol": "sharedSecret",
"secret": "someescretvalueasper the doc"
},
"isActive": true,
"supportedEntities": "shift",
"url": "sampleurl.com"
}
I have followed all steps as mentioned in the documentation here https://learn.microsoft.com/en-us/graph/api/workforceintegration-post?view=graph-rest-1.0&tabs=http
however I am getting this error
{
"error": {
"code": "BadRequest",
"message": "{\"error\":{\"title\":\"Something went wrong\",\"externalErrorMessage\":\"Bad Request\",\"externalSource\":\"ShiftBookingsFlow\",\"externalImageLink\":null,\"externalData\":null,\"code\":\"BadRequest\",\"message\":\"Sorry your change couldn’t be completed.\",\"details\":[],\"innererror\":{\"code\":\"WorkforceIntegrationError\"}}}",
"innerError": {
"date": "2022-12-18T23:47:36",
"request-id": "d8e370a1-1d63-4137-9b49-07c74df6861b",
"client-request-id": "d8e370a1-1d63-4137-9b49-07c74df6861b"
}
}
}
Can anyone help me understand what I am doing wrong over here?
I expect a 200 Ok response but it is giving 400 bad request.
Is there any pre-requirsite to this API?

I am trying to create an eke cluster on Google console using jenkins pipeline .. bt the pipeline is throwing error and when I checked the error is

{
"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",
"details": [
{
"#type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "CREDENTIALS_MISSING",
"domain": "googleapis.com",
"metadatas": {
"method": "compute.v1.NetworksService.List",
"service": "compute.googleapis.com"
}
}
]
}
}

create location in GMB , error PIN_DROP_REQUIRED, how to use the UI to provide a pin drop

I am testing on google auth playgound,any please help me out
{
"error": {
"status": "INVALID_ARGUMENT",
"message": "Request contains an invalid argument.",
"code": 400,
"details": [
{
"reason": "PIN_DROP_REQUIRED",
"#type": "type.googleapis.com/google.rpc.ErrorInfo",
"domain": "mybusinessbusinessinformation.googleapis.com",
"metadata": {
"field_mask": "storefront_address"
}
}
]
}
}
In some cases, Google will only let you edit an address via the Google Business Profile user interface (and not via the API): https://business.google.com

Error when set schedule for private video using Google APIs Explorer

Question: Why did I get this error? The error message is not informative/helpful. Please assist to solve.
I tried to simulate this on Google APIs Explorer:
https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.videos.update
Part: status
{
"id": "3zZ1lCz-rp4",
"status": {
"privacyStatus": "private",
"publishAt": "2019-04-12T12:12:12.12Z"
}
}
But not working. Getting response:
{
"error": {
"errors": [
{
"domain": "youtube.video",
"reason": "invalidVideoMetadata",
"message": "The request metadata is invalid.",
"locationType": "other",
"location": "body"
}
],
"code": 400,
"message": "The request metadata is invalid."
}
}

Oauth invalid credentials on creating event in google calendar

I am using signpost to create event in google calendar. After crossing all oAuth flow and trying to add event i am getting follow error.
"error": {
"errors": [
{
"domain": "global",
"reason": "authError",
"message": "Invalid Credentials"
"locationType": "header",
"location": "Authorization"
}
],
"code": 401,
"message": "Invalid Credentials"
}
What could be the issue?

Resources