Google Voice does not provide an official API interface, but it can actually be implemented through HTTP and XML requests. Most of the APIs that can be found on the Internet are traced back to this topic post by Chad Smith.
To send text messages through Google Voice, you must first log in to your Google Voice account, then take out the “_rnr_se” parameter from the page, and finally POST this parameter, the other party’s mobile phone number, and the text message content to the Google Voice SMS address. Tyler Hall once wrote a php class for Google Voice, but it was not successful when I tried it. I was always stuck in the process of logging in to Google Voice. I developed this class a second time and rewrote most of the code.
After actual attempts, I did not use Chad Smith’s XML request address, but used the mobile terminal version of Google Voice request address and changed the parameters of the POST request as needed, and finally got a Google Voice text message sending tool based on PHP,The calling address is at http://www.lostleon.com/tools/googlevoice/, and the project address is at http://phpgooglevoice.googlecode.com/.
Unfortunately, Tianyi 189 number is not supported by Google Voice. Mobile 158 number test passed.