Google Plus API & photos?

杀马特。学长 韩版系。学妹 提交于 2019-11-29 09:25:48

问题


As I understand, there's no official G+ API for getting photos from albums. But I've figured out from here that Google Plus uses Picasa internally.

My questions are:

  1. Is it possible to figure out only via G+ API Picasa userId?
  2. If yes, how can I do it with G+ API if I only have the Google Plus page URL(something like this: https://plus.google.com/104560124403688998123 - or - https://plus.google.com/115999964287637644901) ?

Thanks in advance.


回答1:


The link you "figured it out from" tells what you need to know. That first big number in the page URL is the UserID. From there you can call something like:

https://picasaweb.google.com/data/feed/api/user/115999964287637644901

and it will give you a list of the albums available. Drill down from there.

Downside? Sometime soon Google is no doubt going to change all this by implementing a real G+ API for photos.



来源:https://stackoverflow.com/questions/16831277/google-plus-api-photos

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!