問題描述
API Dropbox: phát hiện cập nhật tệp và nhận URL đến tệp? (Dropbox API: detect file updates, and get a URL to a file?)
I want to detect updates to files, as well as retrieve a URL to them.
Can that all be done through the Sync API? Or do I have to use both the Sync and the Core APIs? (Is that even possible?)
Thanks!
參考解法
方法 1:
You can use the following method to observe to changes all files in a folder
‑[DBFilesystem addObserver:forPathAndChildren:]
方法 2:
The Sync API doesn't currently support getting a public URL for a file (like the /shares endpoint in the REST API), but that feature will be coming in a future version.
(by Greg Maletic、Omar、Andrew)