I'm trying to add collaborators to a folder using the python SDK and the collaboration object. Support for the collaboration object is not built in to the python SDK, but the SDK writers helpfully note that you can construct other requests using something like:
json_response = client.make_request(
'GET',
client.get_url(parameter, parameter, parameter),
).json()
However, I don't know how to get from the kind of collaboration request I want to send:
curl https://api.box.com/2.0/collaborations \
-H "Authorization: Bearer ACCESS_TOKEN" \
-d '{"item": { "id": "FOLDER_ID", "type": "folder"}, "accessible_by": { "id": "USER_ID", "type": "user" }, "role": "editor"}' \
-X POSTto the correct client.make_request() or client.get_url() syntax. In particular, I don't know how to pass in the item and accessible_by parameters, and as far as I can tell, the collaboration object doesn't actually have a get_url method.
Thank you very much for any help you can provide!