Q:

Re: Youtube rating

I am trying to work in youtube video rating. But i am stuck here. What is the difference betn these two youtube rating request?
https://www.googleapis.com/youtube/v3/videos/rate?id=gEqU0FMzPFo&rating=like&key=xxxx

https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.videos.rate?
        id=wtLJPvx7-ys&rating=like

I found one in guide and other on reference section of google developers. which one should i use to rate a video
the 1st one shows not found error although i signed in and the 2nd one i can authorize and execute in desktop browser (it works as well) but it's not working in mobile app where i used browser component to view youtube video. So i got confused which one should be used?
update:i used the 1st one as suggested but it gives 403 forbidden error
ConnectionRequest cr = new ConnectionRequest() {

    @Override
    protected void readResponse(InputStream input) throws IOException {
        JSONParser jSONParser = new JSONParser();
        results = jSONParser.parseJSON(new InputStreamReader(input));
        System.out.println("results " + results);
    }

    @Override
    protected void postResponse() {
        super.postResponse();
    }

};
cr.setPost(true);
cr.setUrl("https://www.googleapis.com/youtube/v3/videos/rate?id=" + "kF94Jwx9ugU" + "&rating=like&access_token="+token+"&key=AIzaSyCAETrMkZeJ_nTq4ZdP1Jq6BFtA_11TR6I");  
cr.setDuplicateSupported(true);
NetworkManager.getInstance().addToQueueAndWait(cr);

A:

To answer your question :

https://www.googleapis.com/youtube/v3/videos/rate?id=gEqU0FMzPFo&rating=like&key=xxxx

This is the actual API hat you need to rate a video. While the other one,

https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.videos.rateid=wtLJPvx7-ys&rating=like

I'm sure this one is only an API-Explorer site so that you can try the API to see what the request looks like and also the response from the server.
note: when I tried it, it also fire to the former URL which is https://www.googleapis.com/youtube/v3/videos/rate

