Last active
August 29, 2015 14:05
-
-
Save flipjs/6c24d36f0287e8e0ef7f to your computer and use it in GitHub Desktop.
Google+ Photos API (using request module)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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