如何以编程方式更改 Gmail 密码?
我最近遇到了这个问题,我需要以编程方式更改 Gmail 帐户密码,并且仍在考虑理想的方法。
基本上,通过提供 Gmail 的当前用户名/密码,我的应用程序将进行身份验证并请求将密码更改为提供的新密码并返回成功。
CURL 似乎是显而易见的选择,因为我通常使用 PHP,但我也一直在研究其他可能性,例如 libgmailer、Sikuli 或 scRUBYt!(虽然不确定你是否可以用这个发帖)。
- 您将如何完成这项任务?
- 还有其他已经制作好的吗 有工具可以简化这项任务吗?
- 甚至可行吗?
谢谢!
I came across this issue recently where I needed to change a Gmail's account password programmatically and am still thinking about the ideal approach.
Basically by providing Gmail's current username/password my application would then authenticate and request the password to be changed to a new one provided and return success.
CURL seems to be the obvious choice as I usually work with PHP, but I have also been looking into other possibilities like libgmailer, Sikuli, or scRUBYt! (although not sure you can post with the this).
- How would you approach this task?
- Are there any other already made
tools to simplify this task? - Is it even feasible?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对此没有可靠的解决方案。如果您使用curl - 没关系,但您将永远支持该应用程序。
另外,您还需要处理验证码;-)
除了更改密码之外的任何操作都可以通过 API 进行,但不是这个,AFAIK。
There is no reliable solution for this. If you use curl - that's ok, but you will have tu support the application forever.
Also, you will need to handle captcha ;-)
Anything except changin password is possible via API, but not this, AFAIK.