Beispiel #1
0
 def get_temporary_file(self, uuid):
     try:
         return TemporaryFileResource.get(
             self.build_url(TEMPORARY_FILE_DETAIL_PATH.format(uuid=uuid)), session=self._session, lazy=False
         )
     except HTTPException as e:
         raise_for_authorization(e.response, self.username is not None)
         raise
Beispiel #2
0
 def upload_temporary_file(self, f, filename=None):
     return TemporaryFileResource.upload(
         self.build_url(TEMPORARY_FILE_UPLOAD_PATH), f, filename=filename, session=self._session
     )