<s> import plivohelper <EOL> import sys <EOL> try : <EOL> calluuid = sys . argv [ <NUM_LIT:1> ] <EOL> sounds = sys . argv [ <NUM_LIT:2> ] <EOL> time = sys . argv [ <NUM_LIT:3> ] <EOL> except IndexError : <EOL> print "<STR_LIT>" <EOL> sys . exit ( <NUM_LIT:1> ) <EOL> try : <EOL> legs = sys . argv [ <NUM_LIT:4> ] <EOL> except IndexError : <EOL> legs = "<STR_LIT>" <EOL> REST_API_URL = '<STR_LIT>' <EOL> API_VERSION = '<STR_LIT>' <EOL> SID = '<STR_LIT>' <EOL> AUTH_TOKEN = '<STR_LIT>' <EOL> plivo = plivohelper . REST ( REST_API_URL , SID , AUTH_TOKEN , API_VERSION ) <EOL> call_params = { '<STR_LIT>' : calluuid , '<STR_LIT>' : sounds , '<STR_LIT>' : time , '<STR_LIT>' : legs } <EOL> try : <EOL> print plivo . schedule_play ( call_params ) <EOL> except Exception , e : <EOL> print e </s>
