Where to find file_id for download with box-node-sdk

回答済み
新規投稿

コメント

1件のコメント

  • Jason

    Hi  !

     

    Not a dumb question at all 🙂 You're really very close. A file ID is a numeric identifier for a file, unique across all of Box. The shared "hash" in a shared link is technically also a type of ID in the sense that it's a unique identifier for an item, but it's not the actual file ID.

     

    To get the file ID, try this method:

    https://github.com/box/box-node-sdk/blob/master/docs/shared-items.md

     

    It'll return a numeric file ID, assuming that the link is either open or your user has access to the item via a collaboration.

     

    If you want to see an example of what the base API call looks like (and the response), check out this section:

    https://developer.box.com/reference#get-a-shared-item

     

    A sample response is on the right hand side. Hope that helps!

     

    Thanks,

    Jason

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

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