How to get file ID from the API?
AnsweredI currently have the path of the file with a webdav mounted box system where 'cat /etc/fstab'
https://dav.box.com/dav /box davfs defaults,uid=username,gid=username,_netdev,auto 0 0
results in:
/box/spollock# cd Demo-Rack/
root@fscrawl:/box/spollock/Demo-Rack# ls -al
total 30237
drwxr-xr-x 2 root root 336 Sep 14 2017 .
drwxr-xr-x 41 root root 4112 Nov 16 02:11 ..
-rw-r--r-- 1 root root 4892251 Jul 17 2017 AWS_5_Install_and_Configure.pdf
-rw-r--r-- 1 root root 1843954 Sep 14 2017 EXPO-RACK-BlackHat-SUMMARY.pdf
-rw-r--r-- 1 root root 4131929 Jul 17 2017 EXPO-RACK-SUMMARY20170707.docx
-rw-r--r-- 1 root root 4209655 Jul 17 2017 EXPO-RACK-SUMMARY20171707.docx
-rw-r--r-- 1 root root 15878061 Jul 30 2017 Rack Diagram.eddx
How can I get the file information from the API based on path/file rather than ID which I do not have here.
The API wants: https://api.box.com/2.0/files/462926201657
I need something like {totally made up}
https://api.box.com/2.0/files/path=spollock/Demo-Rack/AWS_5_Install_and_Configure.pdf
which returns that unique ID.
Please sign in to leave a comment.
Comments
1 comment