Is there any way to get all files and folder in box without knowing their id? Also, how to get all collaboration objects if I don't know collaboration id?
You can get root folders and files by specifying folder id = 0. And with this result further folders or files can also be fetched.