간단한 질문 :GData 릴리스 2.1.0.0의 어떤 샘플은 3.0 API를 사용하여 계정을 검색하는 방법을 보여 줍니까?
내가 .NET에서 Google 웹 로그 분석 방법론을 사용했다 - 나는 구글 데이터 API MSI 버전 2.1.0.0을 다운로드 한 당당한 23 일까지, 2012 년
.
Subversion의 소스 코드를 얻었습니다.
새 버전 3.0 계정 검색 및 API 메소드 호출을 구현하는 방법을 보여주는 샘플 (있는 경우)은 무엇입니까?
이것은 내 오래된 코드입니다.
public Dictionary<string, string> GetAccounts_old(string username, string password, string myservice)
{
AccountQuery feedQuery = new AccountQuery();
AnalyticsService service = new AnalyticsService(myservice);
Dictionary<string, string> accounts = new Dictionary<string, string>();
try
{
if (!string.IsNullOrEmpty(username))
{
service.setUserCredentials(username, password);
}
foreach (AccountEntry entry in service.Query(feedQuery).Entries)
{
accounts.Add(entry.ProfileId.Value, entry.Title.Text);
}
}
catch (Exception ex)
{
throw new Exception("There was a problem: " + ex.Message);
}
return accounts;
}
Google은 작동하는 C# 데모없이 GData API 2.3에서 마이그레이션 했습니까? –