Featured post

Using Twilio to answer phone calls

In a  previous post , I wrote about how to use  Twilio  to send an SMS message. This time, I'm going to show you how you can u...

Popular Posts

FREE SOFTWARE OF MOBILE AND COMPUTER.....FREE NIMBUZZ SOFTWARE....FREE TRICK TO HACKING WITH UC BROWESSER....ALL free PROXY SOFTWARE...all wall paper...alll.games

Search This Blog

This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

Saturday 7 December 2013

Using Twilio to answer phone calls




In a previous post, I wrote about how to use Twilio to send an SMS message. This time, I'm going to show you how you can use Twilio in conjunction with a web app to answer phone calls made to your Twilio phone number.

First, you will want to have a Twilio developer account. If you did not create one last time, go ahead and create one now.

The Twilio dashboard provides a place for you enter an address to send HTTP POST requests. Using the App.HandleSpecialURL event handler, you can send these requests to a web application running on a publicly available server.

To get started, you need to create a web application. In the App object, go to theHandleSpecialURL event handler. This event handler has one parameter: Request As WebRequest. You can use this parameter to handle the request sent by Twilio and to send information back to Twilio.

Twilio uses something they call TwiML (Twilio Markup Language), which is essentially XML with Twilio-specific commands.

In this case, the special command you want to use is the Say command. This command will speak the provided text to the person that called the number. It is wrapped in a Response, so some simple TwiML looks like this:

<Response>
  <Say>This call was answered by my web application!"</Say>
</Response>

Going back to the HandleSpecialURL event handler, you just need to return the TwiML as part of the request. This is done using the Print method:

If Request.Path = "twilio" Then
  // Use TwiML to say something
  Dim now As New Date
  Request.Print("<Response>" + EndOfLine)
  Request.Print("<Say>This call was answered by my web application!</Say>" + EndOfLine)
  Request.Print("<Say>The time is " + Now.LongTime + "</Say>" + EndOfLine)
  Request.Print("</Response>")
   
  Return True
End If

Notice that I have not created a web page. That's because this web app won't use one as its only purpose is to handle direct requests using HandleSpecial URL.

Give this app a name (TwilioCall), built it as a standalone app (or CGI if you prefer) for your deployment platform. 

Now you need to configure Twilio to use this web app.  Go back to your Twilio Dashboard and navigate to Dev Tools and select TWIML apps. Click "Create TWiML App" to create a new app.



This opens a screen to specify information about your web app:



In the "Friendly Name" field just give your app a name such as TwilioCall. In the Voice section, you specify the URL for your uploaded web app in the "Request URL" field. The URL of your app will be something like this:

http://www.example.com:8080/special/twilio

With all this in place, you can now call your Twilio phone number. Twilio will then send a request to your web app which will respond by sending back a request to speak some text and the current time.

You can find more information about TwiML here: https://www.twilio.com/docs/api/twiml

An example project demonstrating this will be included with Xojo and is also availablehere.

Friday 6 December 2013

Real Studio


!

We have some big announcements! 2013 Release 1 is now available for download and is definitely our biggest release ever! Our IDE has had a major makeover, giving it a very sleek and modern look and making it faster and much more intuitive than ever before! Also, Cocoa is now officially shipping, we have a new forum, and our new pricing is now available!

To compliment all of these new and exciting changes, Real Studio is now Xojo!

The New IDE.  

Besides the all-new look and feel, the new IDE launches up to 33% faster!

Features of the new IDE include:
  • All-new Window Editor
  • All-new Navigator for quick project access
  • All-new Inspector for updating properties and settings
  • All-new Library for easy access to Controls and Objects
  • All-new Project Filter
  • All-new Search
  • All-new Message Pane for viewing run-time log messages
  • All-new Build Settings
  • Improved Web Page Editor
  • Improved Code Editor
  • Improved Database Editor
  • Improved Debugger Layout
  • Improved Tab Usage
  • Improved Event Handler Editing with inline event descriptions
  • Improved Profiler
  • Improved Build Script Editor
Our beta testers have reported the new IDE to be faster, more intuitive, and easier to use.

Last, but certainly not least, Cocoa is now the default OS X build setting for Xojo. In fact, Xojo itself is built with 2013 Release 1!


The IDE is free.


Xojo comes with all new pricing! To start with, the IDE is free to use for developing, testing and debugging on any platform - so tell your friends it's time to learn to code! When you need to create stand-alone builds of your apps, you buy a license. 


You can add on a new target platform at any time. When you are up for renewal, only renew the platforms you want to continue using! It's that simple.

While you can always use previous versions of Xojo, to deploy with the current version, your license must also be current. If you have questions about the new pricing or your specific license, please contact Xojo Customer Service.


Xojo Pro.Xojo Pro is now available! Xojo Pro provides everything serious developers need in a single package:
  • Single license for Desktop, Web, Database and Console
  • Priority Support
  • Guaranteed access to future betas
  • Access to a special Xojo Pro-only forum
  • 3x Feedback multiplier when ranking cases
  • License will work on 3 machines, instead of 2
Real Studio Enterprise Edition users are now Xojo Pro users, and you can upgrade at any time to get the great benefits included with Xojo Pro!

Documentation.

Along with Xojo 2013 Release 1 we will be including a free upgrade guide to help you learn the differences between Real Studio and Xojo. And, we are now introducing an all new user guide with 4 books -- available in PDF and iBooks formats. Each book focuses on a different element of Xojo to provide you with the most information possible to help you be a success. The 4 books are: Fundamentals, User Interface, Framework, and Development.

We have also put together an all-new Quick Start Guide for Desktop and Web applications and all-new tutorials for Desktop and Web applications, along with improved example projects. Get the new documentation!

Xojo.com.


At our new website, xojo.com, you can login using the same username and password you previously used at realsoftware.com. Your account and all the information about your license keys, past orders, etc., is all still available there.

A few important links: Xojo DownloadsXojo Documentation, and Xojo FAQ.

New Support Forum!


We have an all-new support forum at http://forum.xojo.com. The new forum has a more modern look and feel, is easier to read and has more advanced searching features. There’s no need to create an account to log in. Instead you just use the same username and password that you use on our website. You will need to enable forum access in your account settings here before you login: https://www.xojo.com/account/settings/


Emails.


Need to contact us? Any realsoftware.com email address has been updated to xojo.com so update your address book!

Get Connected!


We are so excited about everything we've been working on and we hope you are too! Our new blog will be ready very soon, but in the mean time you can join in on the fun by following us on Twitter or joining our Facebook Group! We want to stay connected with you so we can keep you updated on all of the great stuff we are working on and we want to hear about your projects too! 


Download Xojo Now!