Is any way to rate the youtube video using any google or youtube API?

Learner

I am struggling with a problem to rate an youtube video through an android app. I am using google-client-api,youtube api, google play services. So i am able to perform OAuth2.0 authenication using AccountManager. and also able to upload video on youtube. but i didnt find ay link for rating a youtube video. is there any link or tutorial or sample for the doing the same?

Connecting life with Android

This can be easily done by using YouTubeAPI v2.0. See the specification on this link

POST /feeds/api/videos/VIDEO_ID/ratings
Host: gdata.youtube.com
Content-Type: application/atom+xml
Content-Length: CONTENT_LENGTH
Authorization: Bearer ACCESS_TOKEN
GData-Version: 2
X-GData-Key: key=DEVELOPER_KEY

<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns="http://www.w3.org/2005/Atom"
       xmlns:gd="http://schemas.google.com/g/2005">
  <gd:rating value="4" min="1" max="5"/>
</entry>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to get/submit comments of any youtube video using "google-api-objectivec-client"

Is there any way to get available resolutions for a vimeo/youtube video over their api endpoints?

Get youtube video tags without any API in Java

Is there a way to pause a YouTube video in Google Chrome using AppleScript?

Is there any way that multiple users can upload to my Youtube channel via Youtube-api

Can I access and modify comments using any present Youtube API?

$.get to retrieve YouTube video using google API returning nothing in IE

How to upload Video to YouTube using Google API PHP Client Library and Youtube API V3?

Is there a way to add a video to a Youtube playlist through Youtube API as a contributor?

Is the google youtube data api the appropriate solution to delete a youtube video programmatically

How to increase YouTube video playback rate using setPlaybackRate in Selenium with Python?

Youtube search using the google API

Google API: YouTube video uplaod error = 403

Youtube Player View not displaying video using with youtube API and channel import

how to "add participants" for private youtube video using youtube api

How to mute a Youtube Video by using Youtube API v3?

Retrieving youtube video location tag using youtube API 3.0

Change the current YouTube video time without using YouTube API

Video Upload In Youtube APi using Javascript

Add video to page using YouTube Player API

How to play a video with the YouTube API using YouTubePlayerFragment?

Is there any video player which can seek with thumbnail like in YouTube?

Iframe Youtube video in Cordova App on iOS not working any more

Is it legal to use Youtube Data API to create youtube-like app that aggregrate youtube videos from any channel?

Rate comment, that was written by other user using YouTube api?

Is there any way to play two youtube videos in one screen at the same time?

Video upload using youtube/google API directly from server using node.js?

Is there any way/ API to interact with an <object> playing a video?

Determine a YouTube channel's upload rate using YouTube Data API v3