Not able to perform any operation with Files and Folders
Hi to all box community members,
Basically I have create a free developer user account and a App named "HexaviewDMS" and I wanted to integrated box with my website. In order to this, I have autorized user and generated token via oauth2.0 and saved token in DB and using that token I maked connection with box api connection.
But whenever I tried to perform any operation with my files and folders like - Getting items of a Folder, uploading new file within any folder, downloading of files etc. I always got box api response with status 401 and bad request exception.
I have given read and write permission of app scope but still I am getting bad request exception.
So please help me out.
Thanks in advance.
Regards,
Dinesh
-
Hey , thanks for posting! What's happening in your case is that your token is expired - a 401 will usually mean an invalid or expired access token. I strongly recommend reading up on how authentication with Box works here:
https://developer.box.com/v2.0/docs/oauth-20
Especially noting the first lines of step 6!
Hope that helps!
Thanks,
Jason
Please sign in to leave a comment.
Comments
1 comment