Skip to main content

Currently I want to use the “Open With” function of the box and follow this docs https://developer.box.com/guides/embed/ui-elements/open-with



Currently I’m stuck at the add-integration-to-user step.





Like the image I shared, it seems like I got the wrong authenticate but the error code is 404 so I can’t predict the specific error.



I see that the Open with UI is displayed but is disabled and error 500.





Pls help me.

Hi @user122 , welcome to the forum.



I can barely see the image, but it looks like the endpoint is incorrect.



Here is an example using an OAuth configured application:



curl --location 'https://api.box.com/2.0/app_integrations/' \

--header 'Authorization: Bearer d7...5a' \



Results in:



{

"entries": [

{

"type": "app_integration",

"id": "10897"

},

{

"type": "app_integration",

"id": "1338"

},

{

"type": "app_integration",

"id": "13418"

},

{

"type": "app_integration",

"id": "3282"

}

],

"limit": 100

}



I can also specifically request an integration:



curl --location 'https://api.box.com/2.0/app_integrations/10897' \

--header 'Authorization: Bearer d7...5a'



Results in:



{

"type": "app_integration",

"id": "10897",

"app": {

"type": "app",

"id": "336417"

},

"name": "Edit with G Suite",

"description": "Securely manage your Google Docs, Sheets and Slides in Box",

"executable_item_types": [

"file"

],

"restricted_extensions": [

"docx",

"gdoc",

"xlsx",

"gsheet",

"pptx",

"gslides",

"gslide"

],

"scoped_to": "parent"

}



Let us know if this works for you.



Cheers


Just an FYI









So although the endpoints might still work, or at least be able to list current integrations, you might not be able to use them in your use case.



Cheers


Hi You,



Do you have any way to handle this case?. Because if you can’t use Open-with, it’s quite inconvenient to use Box in the app. Every time I want to edit, I have to open the entire Box to edit, while I want to build so that I don’t need to open the Box.



For me, I have a question: why didn’t you support it and still leave the installation instructions Open-with?



Thanks you Rep.


Hi @user122 ,



I’m not sure what your use case is.



Can you elaborate?



Sounds like you have a web app, and you have files stored in box.



You want to open the files using some other app.



Tell me more about all the steps in your process, and how the other app can accept the file from box.



There may be other ways to accomplish this.



Cheers


Reply