Our API makes it easy for developers to send and receive ad-supported SMS messages from any website.
Want to use all 160 chars. of each message? Sign up for a monthly ad-free plan.
From $9.95/month.
Zeep Mobile will notify your app whenever a user subscribes or sends you an SMS message. We call this notification a mobile event.
A mobile event is sent as an HTTP POST to the Callback URL you provided when you created your API keys. If your app returns an HTTP status of 200, we assume your app received and processed the mobile event successfully. Additionally, your app can elect to send a text message back to your user by returning a 'text/plain' message up to 440 characters in length back to our server.
If you have been following our getting started guide, we told you not to reply to the confirmation that Zeep sent you. In this section you'll implement your callback URL so that you can return a custom text message when a user subscribes to your app.
Create a plain text document in the root of your web
server and call it mobile_events.txt. Now paste the following into it...
Hello world!
Save the page and view in your web browser. Check to make sure that
"Hello world!" shows up and that the page's content-type is text/plain.
The content type MUST BE text/plain. Most web servers
will do this for you automatically for documents with a
.txt extension.
Change your Callback URL so that it points at the mobile_events.txt file you just created. Edit your app in your account.
From your mobile device reply 'yes' to the message we sent you. After a few seconds you should receive the words "<SMS Keyword>:Hello world!" on your phone.
We actually post a whole slew of parameters to your callback URL. The most important ones are:
So in reality you would not have your call back URL set to a plain old document. Instead you would want to process the callback on the server and return a dynamic response. You can read more about the events and their parameters in our documentation. Now it's time to learn how to send your users an SMS message.