Giter VIP home page Giter VIP logo

zuiwanting / google-voice-php-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aaronpk/google-voice-php-api

0.0 3.0 0.0 168 KB

Note: Please do not contact me with support requests. If this no longer works, it's because Google Voice changed their systems. I will accept pull requests that fix things. Check out http://tropo.com for a much better API for sending and receiving SMSs.

License: Other

google-voice-php-api's Introduction

Google Voice PHP API

An API to interact with Google Voice using PHP.

Currently the API can place calls, cancel previously placed calls, send and receive SMS messages, add a note to or remove a note from a message or voicemail, mark a message or voicemail as read or unread, and download transcriptions and/or MP3 files of voicemail. Feel free to implement new functionality and send me your changes so I can incorporate them into this library!

getUnreadSMS, getReadSMS, getUnreadVoicemail, and getReadVoicemail all return an array of JSON objects. Each object has the following attributes, example values included:

$msg->id = c3716aa447a19c7e2e7347f443dd29091401ae13
$msg->phoneNumber = +15555555555
$msg->displayNumber = (555) 555-5555
$msg->startTime = 1359918736555
$msg->displayStartDateTime = 2/3/13 5:55 PM
$msg->displayStartTime = 5:55 PM
$msg->relativeStartTime = 5 hours ago
$msg->note = 
$msg->isRead = true
$msg->isSpam = false
$msg->isTrash = false
$msg->star: = alse
$msg->messageText = Hello, cellphone.
$msg->labels = [sms,all]
$msg->type = 11
$msg->children = 

Note: Receiving SMSs and voicemails is mostly unnecessary via this API since Google now allows SMSs to be forwarded to an email address. It is a better idea to parse those incoming emails with a script.

SMS and Voice Integration

For better SMS and voice integration with your web app, check out Tropo at tropo.com. Tropo is free for development, and you will get better results than using unsupported Google Voice API calls.

Check out some sample apps built with Tropo

Disclaimer

This code is provided for educational purposes only. This code may stop working at any time if Google changes their login mechanism or their web pages. You agree that by downloading this code you agree to use it solely at your own risk.

License

Copyright 2009 by Aaron Parecki http://aaronparecki.com

See LICENSE

google-voice-php-api's People

Contributors

aaronpk avatar rhodey avatar citbr avatar andkore avatar jimvernon avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.