Click On Tyler Hall

Originally from Nashville, I'm an engineer working for Yahoo! in Sunnyvale and paying my way with PHP and Cocoa.

Dial a Phone Number Using Grand Central and PHP

Thursday, August 14 2008

If you’re lucky enough to have a Grand Central account, here’s a quick PHP class that will login to your account and dial a phone number. This is probably one of the more random bits of code I’ve ever written, but I think it’s useful.

$gc = new GrandCentral('gc_username', 'gc_password');
$gc->call($your_number, $their_number);

And that’s it. Grand Central will call $your_number and connect you to $their_number.

So, you can dial phone numbers from PHP. Now what?

Well, for starters, here’s an AppleScript Address Book plugin that will let you dial a contact from your Mac. Or, if you’re like me and have lots of conference calls each week, you can attach a script to your iCal events to dial you into the conference number a minute or two prior to the call start time.

As usual, the code is MIT Licensed and available in my Google Code project. Email if you have any questions.


Reader Comments


  1. famewolf Says:

    Any chance a web page could be created that calls your code and allows a windows mobile phone to “dial out” using their grandcentral number? Seems thats the only platform getting left out in the cold.

  2. Tyler Says:

    Sure. Just create a page with a textbox to input a number. Then call it using the PHP class I provided.

  3. Brian Says:

    Would really appreciate instructions on how to us these files. I'd love to be able to gc call numbers from Address Book. Were do I install the files? Library Scripts? Do I have to select the phone number? How do call the AppleScript?


Leave a Reply