I can not like the video, writes Invalid Credentials in the console, everything is fine, but I send it via curl - an error. At the beginning of the manual it is written to send POST here https://www.googleapis.com/youtube/v3/videos/rate , and after completing the request, the console here goes POST - https://www.googleapis.com/youtube/v3/videos/ rate? id = N3nR9IFYgbc & rating = like & key = {YOUR_API_KEY}. My attempts:

What should I send?

Closed due to the fact that off-topic participants cheops , Streletz , user194374, Suvitruf , gecube 6 Jul '16 at 2:08 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reasons:

  • “Questions asking for help with debugging (“ why does this code not work? ”) Should include the desired behavior, a specific problem or error, and a minimum code for playing it right in the question . Questions without an explicit description of the problem are useless for other visitors. See How to create minimal, self-sufficient and reproducible example . " - Streletz, gecube
  • "The question is caused by a problem that is no longer reproduced or typed . Although similar questions may be relevant on this site, solving this question is unlikely to help future visitors. You can usually avoid similar questions by writing and researching a minimum program to reproduce the problem before publishing the question. " - cheops, Community Spirit, Suvitruf
If the question can be reformulated according to the rules set out in the certificate , edit it .

  • stupid question, but you replaced YOUR_API_KEY? - etki
  • Well, of course he replaced - Anton

1 answer 1

Everything, understood, it is necessary to send empty POST to https://www.googleapis.com/youtube/v3/videos/rate?id= {ID_VIDEO} & rating = {LIKE_OR_DISLIKE_OR_NONE} & key = {YOUR_API_KEY} & access_token