Box Python SDK Update Shared Links from Open to Company
Hi All, I am having some trouble finding some resources on how to change a link from open to company. Using the official documentation for the API, I saw that you can change the "Access" parameters on the .get_shared_link module on the File/Folder object in the documentation here. I've also went through the interactive API and the curl examples, so if I understood that correctly, I think what I am asking can be done.
I understood the curl example, but I can't figure out the syntax to translate that to python as to where to put the new access parameters. If I can't change the access to company, I would at lease like to know how to change them to "cannot preview" and "cannot download."
The goal is eventually change over 100,000 of them from open to company via a for loop from a csv.
I have something like this written:
shared_link = client.folder(folder_id='SOME_FOLDER_ID').get_shared_link(access="company")
サインインしてコメントを残してください。
コメント
0件のコメント