Resources » Google+ » Google+ Apps

.NET Client Library for Google+ APIs from GooglePlusTips.com


Last Updated:   Category: Google+ Apps    
Author: Member Level: Silver    Points: 50


Are you a .NET developer looking for a .NET CLient library to develop cool applications using Google+ data? Here is a .NET library, developed using C#. You can download the .NET Library from here and use it to develop applications.



We are excited to announce the release of GooglePlusLib, a .NET library for Google+ APIs.

Google announced the version 1 of Google+ APIs couple of days ago. As usual, Google released the APIs along with a couple of client libraries, including .NET client library. However, the client libraries released by Google have some learning curve since the usage is not in the native .NET programming style.

Here is a .NET client library we developed for Google+ APIs. They are very easy to use in your applications.

Licensing

You are welcome to use the GooglePlusLib.NET client library as you like. You can use this library to develop applications and distribute it with your applications.

Download GooglePlusLib.NET client library

You can download the GooglePlusLib.NET from here.

How to use the GooglePlusLib.NET?

Our .NET client library is very easy to use in your .NET applications. See the sample code below, which demonstrates how to consume the current version (V. 1) of Google+ APIs:


string profileId = "Use a valid Google+ profile id here";
string apiKey = "Use a valid Google API Key here";
// You can get an API Key here: https://code.google.com/apis/console#access

GooglePlusAPIHelper apiHelper = new GooglePlusAPIHelper(profileId, apiKey);

GPlusActivities activities = apiHelper.ListActivities("eJx9Uj1IAzEUfglXeuASxbWQRX");

GPlusActivity activity = apiHelper.GetActivity("z13rvzzy2lmtj3p0a22md1c4nyrdufrxv04");

GPlusActivities activities2 = apiHelper.SearchActivities("Windows 8");

GPlusPerson person = apiHelper.GetPerson();

GPlusPeople people = apiHelper.SearchPeople("windows 8 club");

GPlusComments people2 = apiHelper.ListComments("z120yhh54qrbsn5tr22rtjbiqr3mh1qp504");

GPlusComment comment = apiHelper.GetComment("2HOqDyvQVCrbz47vK_w9nSrRYnS");


C# Sample code to iterate through the Google+ API result set


Here is some sample code that demonstrate how to navigate through the result set and fetch next subsequent set of records from Google+

GooglePlusAPIHelper apiHelper = new GooglePlusAPIHelper(profileId, apiKey]);

GPlusActivities activities = apiHelper.ListActivities();

while (!string.IsNullOrEmpty(activities.nextPageToken))
{
foreach (GPlusActivity activity in activities.items)
{
string plusDescription = activity.plusObject.content;

if (activity.plusObject.attachments == null)
continue;

foreach (Attachment attachment in activity.plusObject.attachments)
{
if (attachment.objectType == "article")
{
string url = attachment.url;
string title = attachment.displayName;
string content = attachment.content;
}
}
}

activities = apiHelper.ListActivities(activities.nextPageToken);
}



As Google continues to develop and release more APIs, we will be updating our client library.

DISCLAIMER: This client library is written by the author and is not an official product from Google.

If you have any comments, feedback or suggestions on this .NET client library, feel free to post below.
Related Resources:


Read related articles: Google+ APIs    Google+    

Did you like this resource? Share it with your friends and show your love!




Responses to ".NET Client Library for Google+ APIs from GooglePlusTips.com"
Feedbacks      

Post Comment:




  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:   Sign In to fill automatically.
    Email: (Will not be published, but required to validate comment)



    Type the numbers and letters shown on the left.


    Submit Article     Return to Article Index

    Active Members
    Today
      Last 7 Days
        more...

        GooglePlusTips.com is not affiliated with Google+ or any other Google products. Google+ is a trademark of Google Inc.
        Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
        2005 - 2012 All Rights Reserved.