How to obtain file_id from "file name" in Box.com API
Not sure which call will I make from this https://developer.box.com/reference/#searching-for-content.
I want to pass filename and get file id of that filename.
I am using python SDK
How to obtain file_id from "file name" in Box.com API
Not sure which call will I make from this https://developer.box.com/reference/#searching-for-content.
I want to pass filename and get file id of that filename.
I am using python SDK
The method to retrieve file information is found in the documentation here
So if you are using python, it should look something like this according to the API documentation:
file_id = '11111'
file_info = client.file(file_id).get()
print('File name: "{0}" '.format(file_info.name))