【发布时间】:2016-10-27 18:02:24
【问题描述】:
有没有办法使用电子邮件获取 gmail 用户的个人资料图片?没有认证? 我怎么也能得到名字?
我使用了这个网址,
http://picasaweb.google.com/data/entry/api/user/{some_email_address]?alt=json
使用浏览器获取图片。 但不允许与 localhost 一起使用。
【问题讨论】:
标签: javascript html email gmail
有没有办法使用电子邮件获取 gmail 用户的个人资料图片?没有认证? 我怎么也能得到名字?
我使用了这个网址,
http://picasaweb.google.com/data/entry/api/user/{some_email_address]?alt=json
使用浏览器获取图片。 但不允许与 localhost 一起使用。
【问题讨论】:
标签: javascript html email gmail
添加&callback=<some name> 以使用JSONP。
【讨论】:
您使用的是什么 JavaScript 平台?
例如在nodejs中你可以使用request包和下面的示例代码:
const request= require('request');
request({ url: 'http://picasaweb.google.com/data/entry/api/user/{email here}?alt=json', method: 'Get', }, (err, res, body) => { console.log(body); });
【讨论】: