white smartphone

Google APIs Client Library for .NET Beta is now available for Download

Google has released its Google API’s Client Library for .NET Beta SDK which is now which is now available for download from Code.google.com

Google APIs Client Library for .NET is a generic .NET runtime client for Google Services . The library supports OAuth1.0a and OAuth2.0 authentication, and is able to generate strongly typed client libraries for Discovery-based services. This client library can be used with all these APIs:

  • APIs Discovery Service
  • Books API
  • Buzz API
  • CustomSearch API
  • Diacritize API
  • Enterprise Audit API
  • Google Analytics API
  • Google Latitude API
  • Google Site Verification API
  • Moderator API
  • Page Speed Online API
  • Prediction API
  • Search API for Shopping
  • TaskQueue API
  • Tasks API
  • Translate API
  • URL Shortener API

The release also includes a service specific libraries for Google API’s .

Here’s a sample to shorten a URL using the goo.gl service . We need to include the reference to Google APIs Client Library for .NET and Google.Apis.Urlshortener.v1.dll to get this to work in Visual Studio

var service = new UrlshortenerService();
string urlToShorten = "http://maps.google.com/";
Url response = service.Url.Insert(new Url { LongUrl = urlToShorten }).Fetch();
MessageBox.Show("Shortened URL :" + response.Id.ToString());

Know more about Google Client Library here

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

In this post, you’ll learn about the error message “FileOpenAccessDenied – You do not have permissions to open this file...
  • .NET
  • December 3, 2024
You might have had a situation where your code once worked fine in ASP.NET application but now throws the below...
  • .NET
  • December 3, 2024
C# uses the flower bracket “{” and “}” to identify the block or scope of the function or program ....
  • .NET
  • December 3, 2024