I have the SDK installed and am trying to follow the code example in the readme and docs.
from imagekitio.models.RenameFileRequestOptions import RenameFileRequestOptions
options = RenameFileRequestOptions(file_path='/file_path.jpg',
new_file_name='new_file_name.jpg',
purge_cache=True)
result = imagekit.rename_file(options=options)
# Final Result
print(result)
# Raw Response
print(result.response_metadata.raw)
# print the purge request id
print(result.purge_request_id)
however the import is not correct, it can't find models or RenameFileRequestOptions. Are the dice just wrong?
I have the SDK installed and am trying to follow the code example in the readme and docs.
however the import is not correct, it can't find models or RenameFileRequestOptions. Are the dice just wrong?