2012-04-13 20 views
0


GoogleのGoogle+ APIとカスタム検索APIを呼び出すC#プログラムを書く方法をコードサンプルで教えてください。GoogleからGoogle+ APIとカスタム検索APIを呼び出すためのプログラム#

私は上:::::

URLそれについての簡単な説明があり知っています。https://developers.google.com/+/api/
URL:https://で、開発者は.google.com /カスタム検索/ V1/using_rest
URLます。http://code.google.com/p/google-api-dotnet-client/wiki/OAuth2

しかし、で述べたプロセスドキュメントに記載されているように上記を実行する際のリンクは、あまり明確ではない
です。
C#コードでGoogle+ APIとカスタムを呼び出すための簡単な図がありますか?
Search API?

答えて

0

Google API Dotnet Client projectには、ほとんどのGoogle APIであるincluding Google+という.NETラッパーが含まれています。

彼らはseveral examplesを持っていますが、それらのAPIのすべてではありません。公共の活動を照会するために自分のページから

AのGoogle+の例は次のとおりです。

CommandLine.EnableExceptionHandling();    
CommandLine.DisplayGoogleSampleHeader("PlusService API");  

// Create the service.    
var objService= new PlusService(); 
objService.Key = ""; //put in user key. 

var acts = objService.Activities.Search(); 
acts.Query = "super cool"; 
acts.MaxResults = 10; 

var searchResults = acts.Fetch(); 

if (searchResults.Items != null) 
{ 
    foreach (Activity feed in searchResults.Items) 
    { 
     //extract any property of uer interest 
     CommandLine.WriteResult(feed.Title, feed.Actor); 
    } 
} 
関連する問題