Have you ever wanted to integrate SMS or voice communications into your app? We’ve been working with our friends over at Twilio to make it easier to do so. Today we’re announcing native Python and Java libraries for working with Twilio APIs onto Google Cloud Platform.
Lots of apps on App Engine have already been built with phone functionality. Check out the sample code for a group messaging app and the sample code for an app that dispatches voicemails and SMS messages to PagerDuty. Learn how to send business cards via sms through this step by step guide.
You can start building voice and SMS features into your App Engine apps today. Together with Twilio, we’ll help you get started with 2,000 free text message or voice minutes.
Ready to get started?
- Sign up for App Engine.
- Get your Twilio account and 2,000 free text message or voice minutes.
- Check out our guide on how to integrate Twilio services into your app.
Here’s a quick peek at how easy it can be to send a text message from App Engine using Python. After installing the Twilio library, it just takes a few lines of code to send an SMS.
import webapp2 from twilio import twiml from twilio.rest import TwilioRestClient class SendSMS(webapp2.RequestHandler): def get(self): # replace with your credentials from: https://www.twilio.com/user/account account_sid = "ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" auth_token = "xxxxxxxxxxxxxxxxxxxxxxxxxx" client = TwilioRestClient(account_sid, auth_token) # replace "to" and "from_" with real numbers rv = client.sms.messages.create(to="+14155551212", from_="+14085551212", body="Hello Monkey!") self.response.write(str(rv)) app = webapp2.WSGIApplication([('/send_sms', SendSMS)], debug=True)
To show our appreciation for developers, and to make it easy to get started with Plivo, we now offer free developer accounts for life to all new registrants!
What does this mean?
You will be given $120 credit every year which can be used to build voice applications. While these accounts are meant for getting your feet wet with our platform, they also provide the freedom needed to prototype and test applications before fully committing.
1. Plivo numbers cannot be purchased nor can you receive inbound voice calls and SMS on Plivo phone numbers; however, you can bring your own phone numbers. Services like virtualphoneline.com (comes with free minutes!) let you get numbers that you can use with your developer account. A comprehensive list of services and documentation which will describe this in more detail to come.
2. Outgoing voice calls and SMS to regular phones, including mobile and landline phones, will not be possible.
Now the Possibilities!
Apart from the above two restrictions listed above, you can do everything else on a developer account, such as:
1. Place and route calls between Endpoints. Endpoints could be any regular SIP phone, browser phones using our Web SDK or even Mobile SDK. You can even use any physical SIP devices like Polycom/Cisco phones. Find documentation here, here and here.
2. Use all of our powerful APIs and XML and build advanced applications like PBXs, conferencing bridges, and IVRs. There are no restrictions on this. You can even use our high quality text to speech feature with the developer accounts.
3. Bring your own phone numbers (DIDs) from various external providers at no extra cost. These can be services offering free or paid international DIDs. In fact , once you upgrade to a regular account these DIDs will still work. 🙂
The Fine Print
1. $120 is credited to your account @ $10/every calendar month. There are no rollovers of remaining credit.
2. When you charge your account for the first time, your account becomes a regular account. A regular account has no limitations.
Create your first real application, blog about it to the world and we will upgrade you a $240 per year developer account. That gives you $20 every month for life.
If you need help getting started, or would like more information, please e-mail email@example.com or ping our 24/7 live chat support at www.plivo.com. Attending Pycon US 2013? Stop by our booth (#322) to receive a larger free dev account and register in person.
dev account: Outgoing voice calls and SMS to regular phones, including mobile and landline phones, will not be possible.
however, you can use SIP endpoints to test voice calling