box / box-python-sdk

Box SDK for Python
http://opensource.box.com/box-python-sdk/
Apache License 2.0
421 stars 215 forks source link

I can't get a collaboration informations. #880

Closed c-rei closed 4 months ago

c-rei commented 4 months ago

I got a collaboration id '50647533176' by "collaborations = client.folder(folder_id="1234").get_collaborations(), but when I want to get some collaboration informations by "collaboration = client.collaboration(collab_id='50647533176').get()", I got some error like below.

"GET https://api.box.com/2.0/collaborations/50647533176" 400 334 {'date': 'Mon, 22 Jul 2024 02:34:38 GMT', 'content-type': 'application/json', 'x-envoy-upstream-service-time': '252', 'box-request-id': '06ed07ea33aff1a53e86a66980289e191', 'cache-control': 'no-cache, no-store', 'strict-transport-security': 'max-age=31536000', 'via': '1.1 google', 'Alt-Svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000', 'Transfer-Encoding': 'chunked'} {'code': '---uest', 'context_info': {'errors': [{'message': "Invalid value 'collab_id => " '50647533176, skip_find_filters => ' "non_group_tag_collab'.", 'name': 'collab', 'reason': 'invalid_parameter'}]}, 'help_url': 'http://developers.box.com/docs/#errors', 'message': 'Bad Request', 'request_id': 'lhkib9hrwm1s1xrs', 'status': 400, 'type': 'error'}

Versions Used

Python SDK: 3.11.0 Python: 3.10.12 OS: MacOS 12.7.5

c-rei commented 4 months ago

Sorry! Perhaps I don't have a permission for this collaboration.