Welcome to the Ifbyphone Developers zone. This forum provides a place for the community of advanced Ifbyphone users and developers to share ideas, exchange code, and ask questions.  

Additional Resources

Ifbyphone Company Blog - Ifbyphone Twitter Page - Ifbyphone Company Web Site - Ifbyphone Partners Page
Ifbyphone's CEO's (Irv Shapiro's) Personal Blog - Irv Shapiro Twitter Page

It has been brought to our attention that the NEW MEMBER link does not always display in IE7. If you do not see the new member link in the login box on the right, please try another browser. (Firefox works fine.) In addition please note that Phonemashup accounts are completely separate from Ifbyphone accounts.

If you need help fast, call 877 295 5100 to reach the Ifbyphone "Success Team".   (Support is option 2.)

Members Login
Username
 
Password

 
 
Ifbyphone Home Page -> Ifbyphone Developer Zone -> Interesting Ifbyphone Applications -> Screen Pops for Inbound Calls w/IfByPhone using Twitter
Post InfoTOPIC: Screen Pops for Inbound Calls w/IfByPhone using Twitter
KhyleK



Veteran Member

Posts: 41
Date: Feb 27, 2009
Screen Pops for Inbound Calls w/IfByPhone using Twitter
  


I am on the phone all the time.  I'm calling and getting calls all day.  I was running into a situation where I was missing important inbound calls because I had just picked up the phone.  So I decided to write a mashup that would notify me of inbound calls.   My first crack at this was using Twitter.   As an avid Twitter user, I always have it open.   And the Twitter API is VERY easy to use.  I eventually moved on to use Google Talk for inbound notification, just because it was slightly faster and more reliable (although the Fail Whale has been absent in recent weeks smile).

Within my IBP account I created a stub Survo that does a post to my web page, passing along the Caller ID of the caller.  As soon as that post is done, it transfers the call to my existing Virtual Receptionist.   In order to send a direct (private) Tweet, you need a second Twitter account. Here is the code that sends the  Tweet:

$ch = curl_init();
$tweet= "You have a new message. CallerID:".$callerid;
$mydata = array('user' => 'RECIPIENT', 'text' => $tweet);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_URL,"http://twitter.com/direct_messages/new.xml");
curl_setopt($ch, CURLOPT_USERPWD, "USER:PASSWORD");
curl_setopt($ch, CURLOPT_POSTFIELDS, $mydata);

curl_exec ($ch);
curl_close ($ch);


Where RECIPIENT = The Twitter account that is receiving the Tweet; USER=the Twitter account that is sending the tweet.   Other than that, all you have to do is get the Caller ID from the URL, and you're set.

Page 1 of 1 sorted by

Quick Reply
Please log in to post quick replies.
Ifbyphone Home Page -> Ifbyphone Developer Zone -> Interesting Ifbyphone Applications -> Screen Pops for Inbound Calls w/IfByPhone using Twitter
Jump To:


Post to Del.icio.usPost to FacebookPost to Digg


This is an open and public forum so Ifbyphone is unable to ensure that all code and suggestions posted to this forum are correct. Please use all code posted here at your own risk. Ifbyphone assumes no liability for code, recommendations and suggestions posted to this forum.

Users and developers will find hundreds of useful posts at the Ifbyphone company blog.