问题描述
是否可以根据我网站上用户提交的注册数据自动创建一个gravatar帐户?我喜欢gravatar,但我不想让我的用户注册两次
Is it possible to automatically create a gravatar account, based on the registration data that a user on my site submits? I like gravatar, but I do not want to make my users register twice
推荐答案
从理论上讲,您可以使用curl来通过get和post请求操作Gravatar网站并解析结果.这样,您可以使用网站上用户提供的数据在Gravatar上创建帐户.
Theoretically, you could use curl for manipulating the Gravatar site with get and post requests and parsing the result. This way you could use the data provided by the user on your site to create an account on Gravatar.
请注意,他们具有某种验证码或等效的验证码,如果没有某种验证码转发,则无法直接使用.
Note that is they have some kind of captcha or equivalent, this will not work directly without some kind of captcha forwarding.
最后,我实际上并不会真正做到这一点,但我只是说这是可能.
Finally, I wouldn't really actually do this but I'm just saying that's it is possible.
这篇关于通过第三方网站自动创建一个Gravatar帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!