You will see a screen like that :Quote:
![]()
Please click to that button to create a new API for Google.
If you clicked to "Create Project" button, Google will make it.
You will see 4 options these named : Overview, Services, Team and API Access
Please enter to API Access tab:
Then click to "Create an OAuth 2.0 cliend ID" button.
Fill up all forms like that(You can put the name what you want) :
Then click to "Create client ID". After that, go to API Access again:
Please open a new notepad and save them :
Now open Visual Studio and create a new form application.Quote:
App Name : you commenter
Dev Key : xxxx
Prepare your design. Because in programming, design is first:
(mm... it is enough xD)
Now we will add some references to the project. First download these libraries:
and add these two libraries to your project(I won't do explain that how to add library to a project as reference).Quote:
![]()
and add this code start of Form.cs:
HTML Code:
using Google.YouTube;
PHP Code:
YouTubeRequestSettings settings = new YouTubeRequestSettings("app name", "dev key", textBox1.Text, textBox2.Text);
YouTubeRequest request = new YouTubeRequest(settings);
Now let's prepare our objects. Whare are they? Video and Comment.
PHP Code:
Uri videoUrl = new Uri("http://gdata.youtube.com/feeds/api/videos/" + textBox3.Text);
Video video = request.Retrieve<Video>(videoUrl);
Last one is Comment. It is just like that :Quote:
youtube.com/watch?v=hO2wA0Te0wM
PHP Code:
Comment comment = new Comment();
comment.Content = richTextBox1.Text;
PHP Code:
request.AddComment(video, comment);
Result :
Done !







