Hi,
We are trying to read files using BOX API. Users to my application will just send the file URL and we need to download the file and process.
My application is written Java ( Spring Boot).
User can send file URL from their own accounts also.
From the docs, i got the below code. But I have couple of basic questions.
How to get authenticated to Box and what is the "id" in the constructor for BoxFile?
BoxFile file = new BoxFile(api, "id");
BoxFile.Info info = file.getInfo();
FileOutputStream stream = new FileOutputStream(info.getName());
file.download(stream);
stream.close();
Can you please help here?
Thanks
SD