Module Expr Str TryExcept body Import alias identifier handlers ExceptHandler type NameLoad body TryExcept body Import alias identifier handlers ExceptHandler body Import alias identifier Import alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str FunctionDef arguments args NameParam NameParam defaults kwarg body Assign AttributeStore NameLoad attr Dict If Call NameLoad NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad Call NameLoad NameLoad attr orelse Assign SubscriptStore AttributeLoad NameLoad attr Index Str SubscriptLoad NameLoad Index Str For NameStore AttributeLoad NameLoad attr body If CompareIn NameLoad NameLoad body If BoolOpAnd CompareEq NameLoad Str Call NameLoad SubscriptLoad NameLoad Index Str NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad Call NameLoad SubscriptLoad NameLoad Index Str attr orelse Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str FunctionDef arguments args NameParam NameParam defaults kwarg body Assign AttributeStore NameLoad attr Dict Str NameLoad For NameStore AttributeLoad NameLoad attr body If CompareIn NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore ListLoad Str Str FunctionDef arguments args NameParam NameParam defaults kwarg body Assign AttributeStore NameLoad attr Dict Str NameLoad For NameStore AttributeLoad NameLoad attr body If CompareIn NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore ListLoad Str Str Str Str Str FunctionDef arguments args NameParam NameParam defaults kwarg body Assign AttributeStore NameLoad attr Dict Str NameLoad For NameStore AttributeLoad NameLoad attr body If CompareIn NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Assign AttributeStore NameLoad attr Dict Str Str SubscriptLoad NameLoad Index Str NameLoad For NameStore AttributeLoad NameLoad attr body If CompareIn NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore ListLoad Str Str Str Str FunctionDef arguments args NameParam NameParam defaults kwarg body Assign AttributeStore NameLoad attr Dict Str NameLoad For NameStore AttributeLoad NameLoad attr body If CompareIn NameLoad NameLoad body If BoolOpAnd CompareEq NameLoad Str Call NameLoad SubscriptLoad NameLoad Index Str NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad Call NameLoad SubscriptLoad NameLoad Index Str attr orelse Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str FunctionDef arguments args NameParam defaults kwarg body Assign AttributeStore NameLoad attr Dict For NameStore AttributeLoad NameLoad attr body If CompareIn NameLoad NameLoad body If BoolOpAnd CompareEq NameLoad Str Call NameLoad SubscriptLoad NameLoad Index Str NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad Call NameLoad SubscriptLoad NameLoad Index Str attr orelse Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore ListLoad Str Str FunctionDef arguments args NameParam NameParam defaults kwarg body Assign AttributeStore NameLoad attr Dict Str NameLoad For NameStore AttributeLoad NameLoad attr body If CompareIn NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore ListLoad Str Str Str Str FunctionDef arguments args NameParam NameParam defaults kwarg body Assign NameStore Dict For NameStore AttributeLoad NameLoad attr body If CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Assign AttributeStore NameLoad attr ListLoad If Call NameLoad NameLoad NameLoad body For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return IfExp CompareEq Call NameLoad AttributeLoad NameLoad attr Num SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return IfExp CompareEq Call NameLoad AttributeLoad NameLoad attr Num Dict AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore ListLoad Str Str Str Str FunctionDef arguments args NameParam NameParam defaults kwarg body Assign AttributeStore NameLoad attr Dict Str NameLoad For NameStore AttributeLoad NameLoad attr body If CompareIn NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore ListLoad Str Str Str Str Str Str FunctionDef arguments args NameParam NameParam defaults kwarg body Assign AttributeStore NameLoad attr Dict Str NameLoad For NameStore AttributeLoad NameLoad attr body If CompareIn NameLoad NameLoad body If CompareEq NameLoad Str body Assign SubscriptStore AttributeLoad NameLoad attr Index Str SubscriptLoad NameLoad Index Str orelse If CompareEq NameLoad Str body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Dict Str SubscriptLoad NameLoad Index Str orelse Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad Str Str Str Str Str Str Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Index Str For NameStore AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr NameLoad NameLoad body Expr Call NameLoad NameLoad BinOpMod Str NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If CompareIs Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad NameLoad Index Num orelse Expr Call AttributeLoad NameLoad attr Str Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return SubscriptLoad NameLoad Index Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Index Str For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad If CompareEq NameLoad Str body Expr Call NameLoad NameLoad Str NameLoad orelse Expr Call NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Expr Str If Call NameLoad NameLoad NameLoad body Assign NameStore AttributeLoad Call NameLoad NameLoad attr orelse Assign NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad Call NameLoad NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad Call NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Dict Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num keyword NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Print Str
N/A N/A 
The TropoPython module. This module implements a set of classes and methods for manipulating the Voxeo Tropo WebAPI.

Usage:

----
from tropo import Tropo

tropo = Tropo()
tropo.say("Hello, World")
json = tropo.RenderJson()
----

You can write this JSON back to standard output to get Tropo to perform
the action. For example, on Google Appengine you might write something like:

handler.response.out.write(json)

Much of the time, a you will interact with Tropo by  examining the Result
object and communicating back to Tropo via the Tropo class methods, such
as "say". In some cases, you'll want to build a class object directly such as in :

    choices = tropo.Choices("[5 digits]").obj

    tropo.ask(choices,
              say="Please enter your 5 digit zip code.",
              attempts=3, bargein=True, name="zip", timeout=5, voice="dave")
    ...

NOTE: This module requires python 2.5 or higher.

 N/A N/A N/A json jsonlib N/A N/A N/A ImportError N/A N/A N/A N/A simplejson jsonlib N/A N/A N/A N/A gluon.contrib.simplejson jsonlib N/A logging TropoAction N/A object N/A N/A 
    Class representing the base Tropo action.
    Two properties are provided in order to avoid defining the same attributes for every action.
     json N/A N/A self N/A N/A N/A N/A self _dict N/A property obj N/A N/A self N/A N/A N/A N/A N/A self action N/A self _dict N/A property N/A Ask N/A TropoAction N/A N/A 
    Class representing the "ask" Tropo action. Builds an "ask" JSON object.
    Class constructor arg: choices, a Choices object
    Convenience function: Tropo.ask()
    Class constructor options: attempts, bargein, choices, minConfidence, name, recognizer, required, say, timeout, voice

    Request information from the caller and wait for a response.
    (See https://www.tropo.com/docs/webapi/ask.htm)

        { "ask": {
            "attempts": Integer,
            "bargein": Boolean,
            "choices": Object, #Required
            "minConfidence": Integer,
            "name": String,
            "recognizer": String,
            "required": Boolean,
            "say": Object,
            "timeout": Float,
            "voice": String } }

     N/A action ask N/A options_array N/A attempts bargein choices minConfidence name recognizer required say timeout voice __init__ N/A N/A self choices N/A options N/A N/A N/A self _dict N/A N/A N/A isinstance choices basestring N/A N/A N/A N/A self _dict N/A choices N/A N/A Choices choices json N/A N/A N/A N/A self _dict N/A choices N/A choices N/A choices N/A opt N/A self options_array N/A N/A N/A opt options N/A N/A N/A N/A opt say N/A isinstance N/A options N/A say basestring N/A N/A N/A N/A self _dict N/A say N/A N/A Say N/A options N/A say json N/A N/A N/A N/A self _dict N/A opt N/A options N/A opt N/A N/A Call N/A TropoAction N/A N/A 
    Class representing the "call" Tropo action. Builds a "call" JSON object.
    Class constructor arg: to, a String
    Class constructor options: answerOnMedia, channel, from, headers, name, network, recording, required, timeout
    Convenience function: Tropo.call()

    (See https://www.tropo.com/docswebapi/call.htm)

    { "call": {
        "to": String or Array,#Required
        "answerOnMedia": Boolean,
        "channel": string,
        "from": string,
        "headers": Object,
        "name": String,
        "network": String,
        "recording": Array or Object,
        "required": Boolean,
        "timeout": Float } }
     N/A action call N/A options_array N/A answerOnMedia channel from headers name network recording required timeout __init__ N/A N/A self to N/A options N/A N/A N/A self _dict N/A to to N/A opt N/A self options_array N/A N/A N/A opt options N/A N/A N/A N/A self _dict N/A opt N/A options N/A opt N/A N/A Choices N/A TropoAction N/A N/A 
    Class representing choice made by a user. Builds a "choices" JSON object.
    Class constructor options: terminator, mode

    (See https://www.tropo.com/docs/webapi/ask.htm)
     N/A action choices N/A options_array N/A terminator mode __init__ N/A N/A self value N/A options N/A N/A N/A self _dict N/A value value N/A opt N/A self options_array N/A N/A N/A opt options N/A N/A N/A N/A self _dict N/A opt N/A options N/A opt N/A N/A Conference N/A TropoAction N/A N/A 
    Class representing the "conference" Tropo action. Builds a "conference" JSON object.
    Class constructor arg: id, a String
    Convenience function: Tropo.conference()
    Class constructor options: mute, name, playTones, required, terminator

    (See https://www.tropo.com/docs/webapi/conference.htm)

    { "conference": {
        "id": String,#Required
        "mute": Boolean,
        "name": String,
        "playTones": Boolean,
        "required": Boolean,
        "terminator": String } }
     N/A action conference N/A options_array N/A mute name playTones required terminator __init__ N/A N/A self id N/A options N/A N/A N/A self _dict N/A id id N/A opt N/A self options_array N/A N/A N/A opt options N/A N/A N/A N/A self _dict N/A opt N/A options N/A opt N/A N/A Hangup N/A TropoAction N/A N/A 
    Class representing the "hangup" Tropo action. Builds a "hangup" JSON object.
    Class constructor arg:
    Class constructor options:
    Convenience function: Tropo.hangup()

    (See https://www.tropo.com/docs/webapi/hangup.htm)

    { "hangup": { } }
     N/A action hangup __init__ N/A N/A self N/A N/A N/A N/A self _dict N/A N/A N/A Message N/A TropoAction N/A N/A 
    Class representing the "message" Tropo action. Builds a "message" JSON object.
    Class constructor arg: say_obj, a Say object
    Class constructor arg: to, a String
    Class constructor options: answerOnMedia, channel, from, name, network, required, timeout, voice
    Convenience function: Tropo.message()

    (See https://www.tropo.com/docs/webapi/message.htm)
    { "message": {
            "say": Object,#Required
            "to": String or Array,#Required
            "answerOnMedia": Boolean,
            "channel": string,
            "from": Object,
            "name": String,
            "network": String,
            "required": Boolean,
            "timeout": Float,
            "voice": String } }
     N/A action message N/A options_array N/A answerOnMedia channel from name network required timeout voice __init__ N/A N/A self say_obj to N/A options N/A N/A N/A self _dict N/A say to N/A say_obj N/A say to N/A opt N/A self options_array N/A N/A N/A opt options N/A N/A N/A N/A self _dict N/A opt N/A options N/A opt N/A N/A On N/A TropoAction N/A N/A 
    Class representing the "on" Tropo action. Builds an "on" JSON object.
    Class constructor arg: event, a String
    Class constructor options:  name,next,required,say
    Convenience function: Tropo.on()

    (See https://www.tropo.com/docs/webapi/on.htm)

    { "on": {
        "event": String,#Required
        "name": String,
        "next": String,
        "required": Boolean,
        "say": Object } }
     N/A action on N/A options_array N/A name next required say __init__ N/A N/A self event N/A options N/A N/A N/A self _dict N/A event event N/A opt N/A self options_array N/A N/A N/A opt options N/A N/A N/A N/A opt say N/A isinstance N/A options N/A say basestring N/A N/A N/A N/A self _dict N/A say N/A N/A Say N/A options N/A say json N/A N/A N/A N/A self _dict N/A opt N/A options N/A opt N/A N/A Record N/A TropoAction N/A N/A 
    Class representing the "record" Tropo action. Builds a "record" JSON object.
    Class constructor arg:
    Class constructor options: attempts, bargein, beep, choices, format, maxSilence, maxTime, method, minConfidence, name, password, required, say, timeout, transcription, url, username
    Convenience function: Tropo.record()

    (See https://www.tropo.com/docs/webapi/record.htm)

        { "record": {
            "attempts": Integer,
            "bargein": Boolean,
            "beep": Boolean,
            "choices": Object,
            "format": String,
            "maxSilence": Float,
            "maxTime": Float,
            "method": String,
            "minConfidence": Integer,
            "name": String,
            "password": String,
            "required": Boolean,
            "say": Object,
            "timeout": Float,
            "transcription": Array or Object,
            "url": String,#Required ?????
            "username": String } }
     N/A action record N/A options_array N/A attempts bargein beep choices format maxSilence maxTime method minConfidence name password required say timeout transcription url username __init__ N/A N/A self N/A options N/A N/A N/A self _dict N/A N/A opt N/A self options_array N/A N/A N/A opt options N/A N/A N/A N/A opt say N/A isinstance N/A options N/A say basestring N/A N/A N/A N/A self _dict N/A say N/A N/A Say N/A options N/A say json N/A N/A N/A N/A self _dict N/A opt N/A options N/A opt N/A N/A Redirect N/A TropoAction N/A N/A 
    Class representing the "redirect" Tropo action. Builds a "redirect" JSON object.
    Class constructor arg: to, a String
    Class constructor options:  name, required
    Convenience function: Tropo.redirect()

    (See https://www.tropo.com/docs/webapi/redirect.htm)

    { "redirect": {
        "to": Object,#Required
        "name": String,
        "required": Boolean } }
     N/A action redirect N/A options_array N/A name required __init__ N/A N/A self to N/A options N/A N/A N/A self _dict N/A to to N/A opt N/A self options_array N/A N/A N/A opt options N/A N/A N/A N/A self _dict N/A opt N/A options N/A opt N/A N/A Reject N/A TropoAction N/A N/A 
    Class representing the "reject" Tropo action. Builds a "reject" JSON object.
    Class constructor arg:
    Class constructor options:
    Convenience function: Tropo.reject()

    (See https://www.tropo.com/docs/webapi/reject.htm)

    { "reject": { } }
     N/A action reject __init__ N/A N/A self N/A N/A N/A N/A self _dict N/A N/A N/A Say N/A TropoAction N/A N/A 
    Class representing the "say" Tropo action. Builds a "say" JSON object.
    Class constructor arg: message, a String, or a List of Strings
    Class constructor options: attempts, bargein, choices, minConfidence, name, recognizer, required, say, timeout, voice
    Convenience function: Tropo.say()

    (See https://www.tropo.com/docs/webapi/say.htm)

    { "say": {
        "voice": String,
        "as": String,
        "name": String,
        "required": Boolean,
        "value": String #Required
        } }
     N/A action say N/A options_array N/A as name required voice __init__ N/A N/A self message N/A options N/A N/A dict N/A N/A opt N/A self options_array N/A N/A N/A opt options N/A N/A N/A dict N/A opt N/A options N/A opt N/A N/A self _list N/A N/A N/A isinstance message list N/A N/A mess message N/A N/A new_dict N/A N/A dict copy N/A N/A new_dict N/A value mess N/A N/A N/A N/A self _list append new_dict N/A N/A N/A dict N/A value message N/A N/A N/A N/A self _list append dict N/A json N/A N/A self N/A N/A N/A N/A N/A N/A len N/A self _list 1 N/A N/A self _list N/A 0 N/A self _list N/A property obj N/A N/A self N/A N/A N/A N/A N/A N/A len N/A self _list 1 N/A N/A self action N/A N/A self _list N/A 0 N/A N/A self action N/A self _list N/A property N/A StartRecording N/A TropoAction N/A N/A 
    Class representing the "startRecording" Tropo action. Builds a "startRecording" JSON object.
    Class constructor arg: url, a String
    Class constructor options: format, method, username, password
    Convenience function: Tropo.startRecording()

    (See https://www.tropo.com/docs/webapi/startrecording.htm)

    { "startRecording": {
        "format": String,
        "method": String,
        "url": String,#Required
        "username": String,
        "password": String } }
     N/A action startRecording N/A options_array N/A format method username password __init__ N/A N/A self url N/A options N/A N/A N/A self _dict N/A url url N/A opt N/A self options_array N/A N/A N/A opt options N/A N/A N/A N/A self _dict N/A opt N/A options N/A opt N/A N/A StopRecording N/A TropoAction N/A N/A 
    Class representing the "stopRecording" Tropo action. Builds a "stopRecording" JSON object.
    Class constructor arg:
    Class constructor options:
    Convenience function: Tropo.stopRecording()

   (See https://www.tropo.com/docs/webapi/stoprecording.htm)
      { "stopRecording": { } }
    N/A action stopRecording __init__ N/A N/A self N/A N/A N/A N/A self _dict N/A N/A N/A Transfer N/A TropoAction N/A N/A 
    Class representing the "transfer" Tropo action. Builds a "transfer" JSON object.
    Class constructor arg: to, a String, or List
    Class constructor options: answerOnMedia, choices, from, name, required, terminator
    Convenience function: Tropo.transfer()

    (See https://www.tropo.com/docs/webapi/transfer.htm)
    { "transfer": {
        "to": String or Array,#Required
        "answerOnMedia": Boolean,
        "choices": Object,
        "from": Object,
        "name": String,
        "required": Boolean,
        "terminator": String,
        "timeout": Float } }
     N/A action transfer N/A options_array N/A answerOnMedia choices from name required terminator __init__ N/A N/A self to N/A options N/A N/A N/A self _dict N/A to to N/A opt N/A self options_array N/A N/A N/A opt options N/A N/A N/A opt from N/A N/A N/A N/A self _dict N/A from N/A options N/A from N/A N/A N/A opt choices N/A N/A N/A N/A self _dict N/A choices N/A value N/A options N/A choices N/A N/A N/A N/A self _dict N/A opt N/A options N/A opt N/A N/A Result N/A object N/A N/A 
    Returned anytime a request is made to the Tropo Web API.
    Method: getValue
    (See https://www.tropo.com/docs/webapi/result.htm)

        { "result": {
            "actions": Array or Object,
            "complete": Boolean,
            "error": String,
            "sequence": Integer,
            "sessionDuration": Integer,
            "sessionId": String,
            "state": String } }
     N/A options_array N/A actions complete error sequence sessionDuration sessionId state __init__ N/A N/A self result_json N/A N/A N/A N/A N/A logging info N/A result POST data: %s result_json N/A result_data N/A N/A jsonlib loads result_json N/A result_dict N/A result_data N/A result N/A opt N/A self options_array N/A N/A N/A N/A result_dict get opt False N/A N/A N/A setattr self N/A _%s opt N/A result_dict N/A opt N/A getValue N/A N/A self N/A N/A N/A 
        Get the value of the previously POSTed Tropo action.
         N/A actions N/A self _actions N/A N/A N/A type actions list N/A N/A N/A N/A logging info Actions is a list N/A dict N/A actions N/A 0 N/A N/A N/A N/A logging info Actions is a dict N/A dict actions N/A N/A N/A logging info N/A Actions is: %s actions N/A N/A dict N/A interpretation N/A N/A Session N/A object N/A N/A 
    Session is the payload sent as an HTTP POST to your web application when a new session arrives.
    (See https://www.tropo.com/docs/webapi/session.htm)
     __init__ N/A N/A self session_json N/A N/A N/A N/A N/A logging info N/A POST data: %s session_json N/A session_data N/A N/A jsonlib loads session_json N/A session_dict N/A session_data N/A session N/A key session_dict N/A N/A val N/A session_dict N/A key N/A N/A N/A logging info N/A key: %s val: %s N/A key val N/A N/A key from N/A N/A N/A setattr self fromaddress val N/A N/A N/A setattr self key val N/A N/A setattr self dict session_dict N/A N/A Tropo N/A object N/A N/A 
      This is the top level class for all the Tropo web api actions.
      The methods of this class implement individual Tropo actions.
      Individual actions are each methods on this class.

      Each method takes one or more required arguments, followed by optional
      arguments expressed as key=value pairs.

      The optional arguments for these methods are described here:
      https://www.tropo.com/docs/webapi/
     __init__ N/A N/A self N/A N/A N/A N/A self _steps N/A N/A ask N/A N/A self choices N/A options N/A N/A 
	 Sends a prompt to the user and optionally waits for a response.
         Arguments: "choices" is a Choices object
         See https://www.tropo.com/docs/webapi/ask.htm
         N/A N/A N/A N/A self _steps append N/A N/A Ask choices options obj N/A call N/A N/A self to N/A options N/A N/A 
	 Places a call or sends an an IM, Twitter, or SMS message. To start a call, use the Session API to tell Tropo to launch your code.

	 Arguments: to is a String.
	 Argument: **options is a set of optional keyword arguments.
	 See https://www.tropo.com/docs/webapi/call.htm
         N/A N/A N/A N/A self _steps append N/A N/A Call to options obj N/A conference N/A N/A self id N/A options N/A N/A 
        This object allows multiple lines in separate sessions to be conferenced together so that the parties on each line can talk to each other simultaneously.
	This is a voice channel only feature.
	Argument: "id" is a String
        Argument: **options is a set of optional keyword arguments.
	See https://www.tropo.com/docs/webapi/conference.htm
         N/A N/A N/A N/A self _steps append N/A N/A Conference id options obj N/A hangup N/A N/A self N/A N/A N/A 
        This method instructs Tropo to "hang-up" or disconnect the session associated with the current session.
	See https://www.tropo.com/docs/webapi/hangup.htm
         N/A N/A N/A N/A self _steps append N/A N/A Hangup obj N/A message N/A N/A self say_obj to N/A options N/A N/A 
	A shortcut method to create a session, say something, and hang up, all in one step. This is particularly useful for sending out a quick SMS or IM.

 	Argument: "say_obj" is a Say object
        Argument: "to" is a String
        Argument: **options is a set of optional keyword arguments.
        See https://www.tropo.com/docs/webapi/message.htm
         N/A N/A isinstance say_obj basestring N/A N/A say N/A N/A Say say_obj obj N/A N/A say say_obj N/A N/A N/A N/A self _steps append N/A N/A Message say to options obj N/A on N/A N/A self event N/A options N/A N/A 
        Adds an event callback so that your application may be notified when a particular event occurs.
	Possible events are: "continue", "error", "incomplete" and "hangup".
	Argument: event is an event
        Argument: **options is a set of optional keyword arguments.
        See https://www.tropo.com/docs/webapi/on.htm
         N/A N/A N/A N/A self _steps append N/A N/A On event options obj N/A record N/A N/A self N/A options N/A N/A 
	 Plays a prompt (audio file or text to speech) and optionally waits for a response from the caller that is recorded.
         Argument: **options is a set of optional keyword arguments.
	 See https://www.tropo.com/docs/webapi/record.htm
         N/A N/A N/A N/A self _steps append N/A N/A Record options obj N/A redirect N/A N/A self id N/A options N/A N/A 
        Forwards an incoming call to another destination / phone number before answering it.
        Argument: id is a String
        Argument: **options is a set of optional keyword arguments.
        See https://www.tropo.com/docs/webapi/redirect.htm
         N/A N/A N/A N/A self _steps append N/A N/A Redirect id options obj N/A reject N/A N/A self N/A N/A N/A 
        Allows Tropo applications to reject incoming sessions before they are answered.
        See https://www.tropo.com/docs/webapi/reject.htm
         N/A N/A N/A N/A self _steps append N/A N/A Reject obj N/A say N/A N/A self message N/A options N/A N/A 
	When the current session is a voice channel this key will either play a message or an audio file from a URL.
	In the case of an text channel it will send the text back to the user via i nstant messaging or SMS.
        Argument: message is a string
        Argument: **options is a set of optional keyword arguments.
        See https://www.tropo.com/docs/webapi/say.htm
         N/A N/A N/A N/A self _steps append N/A N/A Say message options obj N/A startRecording N/A N/A self url N/A options N/A N/A 
        Allows Tropo applications to begin recording the current session.
        Argument: url is a string
        Argument: **options is a set of optional keyword arguments.
        See https://www.tropo.com/docs/webapi/startrecording.htm
         N/A N/A N/A N/A self _steps append N/A N/A StartRecording url options obj N/A stopRecording N/A N/A self N/A N/A N/A 
        Stops a previously started recording.
	See https://www.tropo.com/docs/webapi/stoprecording.htm
         N/A N/A N/A N/A self _steps append N/A N/A StopRecording obj N/A transfer N/A N/A self to N/A options N/A N/A 
        Transfers an already answered call to another destination / phone number.
	Argument: to is a string
        Argument: **options is a set of optional keyword arguments.
        See https://www.tropo.com/docs/webapi/transfer.htm
         N/A N/A N/A N/A self _steps append N/A N/A Transfer to options obj N/A RenderJson N/A N/A self pretty N/A False N/A N/A 
        Render a Tropo object into a Json string.
         N/A steps N/A self _steps N/A topdict N/A N/A N/A topdict N/A tropo steps N/A N/A N/A logging info N/A topdict: %s topdict N/A pretty N/A N/A N/A N/A json N/A N/A jsonlib dumps topdict indent 4 sort_keys False N/A N/A N/A TypeError N/A N/A json N/A N/A jsonlib dumps topdict N/A N/A json N/A N/A jsonlib dumps topdict N/A json N/A N/A N/A N/A __name__ __main__ N/A N/A 

 This is the Python web API for http://www.tropo.com/

 To run the test suite, please run:

    cd test
    python test.py


