c# - Google Plus API get photo albums/videos -


how can google plus photo albums user or page? can activities (post/video/photo) together.

this 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 list of photo } else if (attachment.objecttype == "video") { //add list of video } } } 

this function gives activity feeds. need list of albums of page.

i'm using google-api-dotnet-client.

the google+ api doesn't support direct access albums , photos yet. can use picasa web albums data api (since google+ photos stored) using same profile/page id use access google+ api. https://developers.google.com/picasa-web/


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

c++ - Accessing inactive union member and undefined behavior? -

php - Get uncommon values from two or more arrays -