Need help on getting a basic code running
Dear Support,
Greetings. I'm trying out a basic code for getting to know the Box API better . Can you please help me to accomplish that . There are wizards for creating an app etc .. where do we enter the basic code like this
BoxAPIConnection api = new BoxAPIConnection("your-developer-token");
BoxFolder rootFolder = BoxFolder.getRootFolder(api);
for (BoxItem.Info itemInfo : rootFolder) {
System.out.format("[%s] %s\n", itemInfo.getID(), itemInfo.getName());
}
thx
k.thulsi
-
Hi ,
Hi @username,
Thanks for your post and question, but this is not support, this is a developer forum for other developers to share use cases.
Check out this article and let us know if that helped your issue - or if not, post some more detail here so the community can assist!Your post seems like it may require account specific information/configuration.
For those, you should contact Box Support to help you directly, or for other support options, visit this page. -
Hi there,
I am assuming that you did include your actual developer token in the BoxAPIConnection() constructor?
You can generate a developer token from the Dev Console on the Configuration page. You should generate one and then use it in your code.
If that's not the issue trying adding some debugging and report back any error messages that you see.
Thanks,
John
Please sign in to leave a comment.
Comments
2 comments