如何獲取用戶或頁面的Google Plus相冊?我可以一起獲得活動(帖子/視頻/照片)。Google Plus API獲取相冊/視頻
這是我使用的代碼:
var provider = new NativeApplicationClient(GoogleAuthenticationServer.Description);
provider.ClientIdentifier = GoogleIdentifier;
provider.ClientSecret = GoogleSecret;
ActivitiesResource.Collection collection = new ActivitiesResource.Collection();
var service = new PlusService();
service.Key = GoogleKey;
ActivitiesResource.ListRequest list = service.Activities.List(ProfileID, collection);
foreach (Activity activityFeed in list.Fetch().Items)
{
var title = activityFeed.Title;
foreach (Activity.ObjectData.AttachmentsData attachment in activityFeed.Object.Attachments)
{
if (attachment.ObjectType == "photo")
{
//add to list of photo
}
else if (attachment.ObjectType == "video")
{
//add to list of video
}
}
}
這個功能可以使活動源。我需要獲得一個頁面的所有專輯列表。我正在使用google-api-dotnet-client。
你能告訴我們你到目前爲止所嘗試過的嗎? – Surfbutler 2012-07-07 08:20:50
這是我現在使用的代碼..我已經發布了另一個問題。因爲我在fetch()函數中有錯誤。 [鏈接](http://stackoverflow.com/questions/11370362/an-item-with-the-same-key-has-already-been-added-google-plus)@Surfbutler – MMALSELEK 2012-07-07 08:48:13