Skip to content

Instantly share code, notes, and snippets.

@flipjs
Last active August 29, 2015 14:05
Show Gist options
  • Save flipjs/6c24d36f0287e8e0ef7f to your computer and use it in GitHub Desktop.
Save flipjs/6c24d36f0287e8e0ef7f to your computer and use it in GitHub Desktop.
Google+ Photos API (using request module)
var request = require('request')
var url = 'http://picasaweb.google.com'
+ '/data/feed/api/user/102873175118305865375/'
+ 'albumid/5646665615382099025'
+ '?alt=json'
request.get(url, function(err, res, body) {
var gplus = JSON.parse(body)
var len = gplus.feed.entry.length
;(function iterator(i) {
if (i >= len) return
console.log('' + (i+1) + '. '
+ gplus.feed.entry[i].content.src
+ ' - ' + gplus.feed.entry[i].summary['$t'])
iterator(i + 1)
})(0)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment