Docs

From Developer Wiki

This is the section for documentation relating to the Mozes Development API.

Contents

API Overview

The Mozes Developer API expands the power and impact of a text message; it provides a way to use Mozes keywords to interface with systems outside of the Mozes system. A keyword on Mozes can be configured to execute a web script on a different system, receive XML-formatted data and display dynamic content via SMS or the web within the Mozes system.

Getting Started

  • First, make sure you are comfortable working with CGI scripts, and have a Web server on which to host them. The wiki and community resources here are the extent of support resources offered by Mozes currently for the API. Mozes does not provide CGI script hosting at this time - but if you know how to write these scripts, you probably either also have or know how to get hosting elsewhere.
  • Log into www.mozes.com using your mobile number or email address. If you are not registered yet, please go through the registration process and create a keyword.
  • After you are logged in, Click on My Stuff tab and then click on Edit my Mobile Card sub tab.
  • Put <DynamicResult> in the Text Messages field.
  • Under the Developer API section towards the bottom of the page (unless you're setting up your keyword for the first time - in which case, save, then edit the keyword again), you should see Dynamic Content URL field. Enter the full path of your Dynamic Content URL script.
  • Click the Save button.
  • Quick Start Example
  • Common Problems

Sending Data The Other Way

The API as documented here only activates when someone texts your keyword. There is no other opportunity for your scripts to send data back to us.

Not yet, anyway. We're working on this part of the problem, and would love suggestions. We're leaning towards a series of URLs for your scripts to call - requiring HTTPS and authentication if the data is potentially sensitive - which will perform and return the results of canned lookups or other predefined operations.

Documents