如何使用电子邮件获取gmail用户的个人资料图片
How to get the profile picture of gmail user using email
有没有办法通过电子邮件获取gmail用户的头像?没有身份验证?
我怎样才能得到这个名字?
我用过这个url,
http://picasaweb.google.com/data/entry/api/user/{some_email_address]?alt=json
使用浏览器获取图片。
但不允许与本地主机一起使用。
添加 &callback=<some name>
以使用 JSONP。
您使用什么 JavaScript 平台?
例如,在 nodejs 中,您可以使用带有以下示例代码的请求包:
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); });
有没有办法通过电子邮件获取gmail用户的头像?没有身份验证? 我怎样才能得到这个名字?
我用过这个url,
http://picasaweb.google.com/data/entry/api/user/{some_email_address]?alt=json
使用浏览器获取图片。 但不允许与本地主机一起使用。
添加 &callback=<some name>
以使用 JSONP。
您使用什么 JavaScript 平台?
例如,在 nodejs 中,您可以使用带有以下示例代码的请求包:
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); });