Hi
I am trying to get Youtube Subscribers list.
C#
{
"error": {
"code": 401,
"message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. ,
"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",
"metadata": {
"method": "youtube.api.v3.V3DataSubscriptionService.Insert",
"service": "youtube.googleapis.com"
}
}
]
}
}

Naimish MakwanaRank #324 · 7.7K reputationPosted Dec 14, 2022, 7:05 AM EST
Try to use GET request instead of Method.POST.
Content-type = application/json
Aravind GovindarajRank #430 · 5.8K reputationPosted Dec 14, 2022, 10:16 AM EST
Can you please check if are you passing Auth Token in your request?