Looking for New Box API calls to replace the old View API calls
We are converting our application to the New Box API for the January 15th deadline and these are the calls we need to convert. I can't seem to find anything in the docs for the upgrade - only new documentation. So I am asking those who went through the conversion process, is there documentation somewhere that I am missing? What are the recommended code changes? Pitfalls? Gotchas?
Specifically, what are the Box Java SDK equivalents to these calls?
https://view-api.box.com/1/sessions
and
https://upload.view-api.box.com/1/documents
-
Hello! Have you read through https://developer.box.com/docs/getting-started-with-new-box-view?
At a high level:
- Create a new Box application with 'App Auth' - this gets you a (potentially) permanent access token you can use to make the following requests
- https://view-api.box.com/1/sessions maps to https://api.box.com/2.0/files/FILE_ID?fields=expiring_embed_link (see https://developer.box.com/reference#get-embed-link)
- https://upload.view-api.box.com/1/documents maps to https://upload.box.com/api/2.0/files/content (see https://developer.box.com/reference#upload-a-file)
Our customer support reps can walk you through the exact differences between the two. There's also a migration guide available at https://cloud.app.box.com/notes/100002123367?s=twr1wxf9fdtfoojqogi0wgbqaa0w840s.
Happy holidays!
Please sign in to leave a comment.
Comments
1 comment