def _get_upload_data(self):
        account_info = self.api.account_info
        upload_url, upload_auth_token = account_info.take_bucket_upload_url(self.id_)
        if None not in (upload_url, upload_auth_token):
            return upload_url, upload_auth_token

        response = self.api.session.get_upload_url(self.id_)
        return response['uploadUrl'], response['authorizationToken']
Takes ownership of an upload URL / auth token for the bucket and
dataset/ETHPy150Open Backblaze/B2_Command_Line_Tool/b2/bucket.py/Bucket._get_upload_data