Example #1
0
 def submit_file(self, file: File):
     self.api_subf.data = {"file": file.fd(), **self.get_apikey()}
     data, _ = request(self.api_subf)
     return data
Example #2
0
 def submit_file(self, file: File):
     self.api_subf.cookie = self.get_apikey()
     self.api_subf.file = {"file": file.fd()}
     data, _ = request(self.api_subf)
     data = frmt.jsontree(data)
     return out.pformat(data)