How can I get the Google Plus Photo Albums for a user or a page? I can get the activities (post/video/photo) all together.
This is the code I'm using:
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
}
}
}
This function gives the activity feeds. I need to get a list of all albums of a page.
I'm using google-api-dotnet-client.