def _get(self, method, **kwargs):
payload = kwargs.copy()<EOL>payload['<STR_LIT>'] = self.api_key<EOL>payload['<STR_LIT>'] = self.api_secret<EOL>to = payload.pop('<STR_LIT:to>', None)<EOL>if to:<EOL><INDENT>if isinstance(to, basestring):<EOL><INDENT>payload['<STR_LIT:to>'] = to<EOL><DEDENT>else:<EOL><INDENT>for num_i, fax_num in enumerate(to):<EOL><INDENT>payload['<STR_LIT>' % num_i] = fax_num<EOL><DEDENT><DEDENT><DEDENT>files = payload.pop('<STR_LIT>', [])<EOL>if not isinstance(files, (list, tuple)): files = (files,)<EOL>req_files = {}<EOL>for file_i, f in enumerate(files):<EOL><INDENT>if isinstance(f, basestring):<EOL><INDENT>req_files['<STR_LIT>' % file_i] = open(f, '<STR_LIT:rb>')<EOL><DEDENT>else:<EOL><INDENT>f.seek(<NUM_LIT:0>)<EOL>req_files['<STR_LIT>' % file_i] = f<EOL><DEDENT><DEDENT>url = '<STR_LIT>' % (self.BASE_URL, self.VERSION, method)<EOL>r = requests.post(url, data=payload, files=req_files)<EOL>return self.parse_response(r)<EOL>
Builds the url for the specified method and arguments and returns
        the response as a dictionary.