コメント

6件のコメント

  • Kourtney

    Hello, 

     

    Thanks so much for using our platform and development forum! 

     

    The folder ID is 8881124638. 

     

    You can find this on your own by navigating into this folder in the webapp and taking a look at the end of the URL. For example, https://kourtneybiz.app.box.com/folder/38348454731. The folder ID would be 38348454731. However, you would need to be added as a collaborator and not just accessing the content via a shared link in order to do this. 

     

    Best, 

    Kourtney 

    0
    コメントアクション パーマリンク
  • rbelew

    Thanks ! (but did you just agree to be Box's 411 service for anyone else searching for public files like this?!)

     

    and this isn't working for me:

    root_folder = client.folder(folder_id='***number removed for privacy***8').get()

    returns

    boxsdk.exception.BoxAPIException: 
    Message: Not Found
    Status: 404
    Code: not_found
    Request id: rsj4zsfvhut5bw1u
    Headers: {'Date': 'Fri, 21 Sep 2018 21:11:31 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Strict-Transport-Security': 'max-age=31536000', 'Cache-Control': 'no-cache, no-store', 'Content-Encoding': 'gzip', 'Vary': 'Accept-Encoding', 'BOX-REQUEST-ID': '067fvr0nutri959s65o953d6fb', 'Age': '1'}
    URL: https://api.box.com/2.0/folders/***number removed for privacy***8
    Method: GET
    Context info: {'errors': [{'reason': 'invalid_parameter', 'name': 'item', 'message': "Invalid value 'd_8881124638'. 'item' with value 'd_8881124638' not found"}]}

    same behavior if i give the folder ID as an int vs. string.

     

    and same behavior on one of the subfolders (2018 --> ***number removed for privacy***06)?

    0
    コメントアクション パーマリンク
  • Kourtney

    Hello, 

     

    You're going to need the owner to add you as a collaborator on the content in order to interact with it via the API. You cannot just access the content after getting a shared link like this. 

     

    Best, 

    Kourtney 

    0
    コメントアクション パーマリンク
  • rbelew

    Sigh.  ok, thanks for confirming that that is the issue.

     

    Is there no way for public agencies providing  data to the public to permit it in a way allowing "read world"  permissions for access via the API similar to what you can do via the web?

    0
    コメントアクション パーマリンク
  • Kourtney

    Yes, this is where the different collaborator levels come into play. You will want to take a look at the table on this page: 

     

    https://community.box.com/t5/Collaborate-By-Inviting-Others/Understanding-Collaborator-Permission-Levels/ta-p/144

     

    These correspond to what's passed into the 'role' body parameter of the create collaboration endpoint

    0
    コメントアクション パーマリンク
  • rbelew

    thanks for these details , I appreciate them.

    but i guess you are also saying that Box does not provide any "read world" permissions on stored files?  the Collaborator level makes it seems as if the (Oakland Police Department) data provider would need to enumerate all potential readers (eg, City of Oakland citizens) to allow them API access?

    0
    コメントアクション パーマリンク

サインインしてコメントを残してください。