youtube comment voting (C#) (Webclient or HttpWebReqeust)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yawar
    New Member
    • Sep 2009
    • 8

    youtube comment voting (C#) (Webclient or HttpWebReqeust)

    Hi,


    I have been searching but no solution found till now about how can I vote UP/Down a youtube comment using webclient or httwebrequest (whichever is easy).

    I have looked in Youtube API, it can do everything but not comment voting therefore, I am stuck now and have to do it using httpwebrequest or webclient, but don't know where to start as I am unable to even login to Youtube using httpwebrequest or webclient.

    Looking for some code snippet that can sort it out please!

    Thanks.
  • M1kkelZU
    New Member
    • Feb 2013
    • 80

    #2
    Support for likes/dislikes hasn't been added to the .NET client library yet. In the meantime, the underlying Atom XML element corresponding to the rating request is documented at




    From: http://stackoverflow.com/questions/9...outube-net-api

    Comment

    • yawar
      New Member
      • Sep 2009
      • 8

      #3
      Thanks fro your reply! M1kkelZU
      I have posted after reading all that. :)
      But I don't know how to use Atom XML elements in C#. Can you please guide me in right direction about learning how to use these ATOM XML codes in C# and get the likes/dislikes job done please? (or anyone else can guide who is reading this thread/post)

      Comment

      • M1kkelZU
        New Member
        • Feb 2013
        • 80

        #4
        I haven't used Atom XML Myself either but after looking around this looks something promesing.


        But I'll keep looking around for Atom XML examples as I'm quite intrigued by it now.

        EDIT: Also in the youtube API I've been looking at there are XML Examples for the comments and video rating's but nothing yet on Comment Likes/Dislikes. I'll keep looking at it though

        EDIT #2: I found this on the API Site: https://developers.google.com/youtub...:accessControl

        The <yt:accessContr ol> tag indicates whether users are allowed to rate a video, add comments about a video, rate comments about the video, add a video response to the video, or embed the video on third-party websites
        So basically your program should use the <yt:accessContr ol> xml tag and access comment ratings. I an't help further as I've never implemented XML in my code, but maybe someone else can pick up from where I've left off.

        Comment

        • yawar
          New Member
          • Sep 2009
          • 8

          #5
          Thanks for your time M1kkelZU but my problem is still there, how to use ATOM XML in C# .net 4.0

          Comment

          Working...