<s> """<STR_LIT>""" <EOL> import httplib , urllib , json <EOL> '''<STR_LIT>''' <EOL> PATH = "<STR_LIT>" <EOL> GET = "<STR_LIT:GET>" <EOL> POST = "<STR_LIT:POST>" <EOL> def http_connect ( method , params , api_key ) : <EOL> conn = httplib . HTTPSConnection ( "<STR_LIT>" ) <EOL> headers = { "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT:application/json>" , "<STR_LIT>" : api_key } <EOL> params = urllib . urlencode ( params ) <EOL> conn . request ( method , PATH , params , headers ) <EOL> res = conn . getresponse ( ) . read ( ) <EOL> return json . loads ( res ) </s>
