Google voice PHP OAuth 2.0
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I once used a PHP Class Library to connect to Google Voice to send SMS Text Messages. The call would work something like this: $gv = new GoogleVoice("GmailAccount", "GmailPassword"); $gv->sms("PhoneNumber", "TextMsg"); It worked flawlessly until recently, as of 4/20/2015, Google stopped supporting old methods of logging in to Google account. So my script stopped working giving 500 error. Google says you have to use OAuth 2.0 to authenticate however I haven't found any examples online on how to accomplish this with Google Voice. The code is