<s> import sys <EOL> import os <EOL> import simplejson <EOL> sys . path . append ( os . path . join ( os . path . dirname ( __file__ ) , '<STR_LIT:..>' , '<STR_LIT>' ) ) <EOL> import zulip <EOL> zulip_client = zulip . Client ( site = "<STR_LIT>" , client = "<STR_LIT>" ) <EOL> payload_dir = "<STR_LIT>" <EOL> for filename in os . listdir ( payload_dir ) : <EOL> with open ( os . path . join ( payload_dir , filename ) ) as f : <EOL> req = simplejson . loads ( f . read ( ) ) <EOL> req [ '<STR_LIT>' ] = zulip_client . api_key <EOL> req [ '<STR_LIT:email>' ] = zulip_client . email <EOL> zulip_client . do_api_query ( req , zulip . API_VERSTRING + "<STR_LIT>" ) </s>
