All things API and SDK related
Recently active
Dear Forum, For several months, I’ve been using Box drive for sync’ign with local folders - with no issue. Since last week, I can still login to the online box, but get an SSL error when trying to connect to the Box drive. I checked with my IT team (no change on that side), tried resetting password, no effect. I uninstalled/re-installed, but get to the same point. Coudl it be comign from a recent updates? Any ideas on how to address it? Thanks! 2023-12-16 19:17:49.975 14628 INFO CompleteAuthenticati network_layer Got a SSLError so calling refresh_proxy_settings: BoxHTTPSConnectionPool(host=‘api.box.com’, port=443): Max retries exceeded with url: /oauth2/token (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate signature failure (_ssl.c:997)’)))
Hello world, I’m writing some code trying to integrate Box Java SDK into my own Android Java code. The URL to invoke Box OAuth2 is built using code like below BoxAPIConnection.getAuthorizationURL(clientId, URI.create("oauth://box.oauth2/redirect"), state, scopes) Whereas state is a random UUID string and scopes is just root_readonly. Using some non-standard protocol name here since I expect app deeplinks will capture the above redirect, then I will be processing the redirect callback in my code to get the access token. However, upon invoking the above code, my Android code isn’t capturing the deeplink URL at all. Traced down a bit revealed the URL returned by box.com server is being https://app.box.com/login/mfa?redirectUrl=%2Fapi%2Foauth2%2Fauthorize%3Fclient_id%3D<REDACTED>%26response_type%3Dcode%26redirect_uri%3Doauth%253A%252F%252Fbox.oauth2%252Fredirect%26state%3D<REDACTED>%26scope%3Droot_readonly# That made box came to nowhere but a missing page. I thought I should
Collaborations are at the core of Box. They allow users to share content with other users in a similar way as access control lists (ACLs) do in traditional file systems. This is a companion discussion topic for the original entry at https://medium.com/box-developer-blog/box-python-next-gen-sdk-managing-collaborations-473ce9af33fd?source=rss----a995c24848a3---4
I tried to create an access token using the following details { grant_type: ‘client_credentials’, client_id: “2yuh6hjmzagiw5hr8tqhxvcqkcgyiw4c”, client_secret: “my client secret”, box_subject_type: ‘user’, // box_subject_id: ‘my user id’, // }; I am getting following error even after providing the correct credentials: data: { error: ‘invalid_grant’, error_description: ‘Grant credentials are invalid’ } my app setup is : 1.server authentication (Client credential) 2. app access only please let me know how to resolve it
Hello, I am experiencing an issue with the NodeSDK, whenever I apply any data shape, to boxClient.folders.addMetadata() it throws a 400 with “message”: “Request contains invalid parameters.”, If I apply a empty object {}, it works without issue. (So I know that i am able to connect, and have permissions ect) The shape of the metadata template is: The relevant code: const metadataValues = { ENTITY_ID: “1234”, is_Active: “1”, is_Found: “1”, }; let response_metadata_applied = await this.boxClient.folders.addMetadata(folder_id, “enterprise_534608”, “ciptemplate”, metadataValues); It throws a 400, with that error. If I apply let response_metadata_applied = await this.boxClient.folders.addMetadata(folder_id, “enterprise_534608”, “ciptemplate”, {}); It works 100%, but the values are of course empty. I have tried all methods of controlling the body: when I look at the error response { “statusCode”: 400, “response”: { “statusCode”: 400, “body”: { “message”: “Request contains invalid parameters
We are trying to access the file name using the box api. To do that we are using OAuth authentication. But we authorization is pending and we reached out to Admin contact still waiting for the reply. Can someone pls suggest best way to integrate box with our application to read the file name which is in Box. Please do the needful Thanks in Advance.
Hoping someone can help and point me in the right direction Using the .Net SDK using the Access and Refresh Token authentication and when the token expires (via the HttpRequestHandler 401 status code) and the SDK calls the RetryExpiredTokenRequest I get a Bad Request error. If I refresh the tokens outside of the SDK, the code authenticates correctly with no errors. What am I doing wrong? Any help would be greatly appreciated Thanks
Join us live tomorrow with Kyle Adams, Senior Staff Partner Architect at Box, who will be available to answer your questions. Getting Started with Box and Salesforce Experience Cloud Events
We are taking Box Platform on the road 🚗 — and we are starting in my home city Austin, Texas. This is a companion discussion topic for the original entry at https://medium.com/box-developer-blog/box-platform-developer-day-austin-747a96e86274?source=rss----a995c24848a3---4
I have tried to create a signer and and approver order, but it always takes the second email. Referring to the attached code below: When there is a order 1 & order 2, no emails send out When there is a order 2 but no order 1 set, then the approver gets the email. When there is a order 1 but no order 2 set, then the approve When there is no order defined, the approver email sends. I should note, that each email does work when pushed alone. We are using the python SDK “signers”: [ { “email”: signer_email, “role”: “signer”, “embed_url_external_user_id”: signer_email, “password”: “xxxxx”, “order”: 1 }, { “email”: approver_email, “role”: “approver”, “password”: “xxxxx”, “order”: 2 }
I have a question about the conditions under which the following error occurs when using the zip archive download API. developer.box.com Download zip archive - API Reference - Box Developer Documentation Explore the Box APIs and SDKs to use for app development, API documentation, developer support resources, and access the Box Developer Console The error in question is ‘enterprise_too_many_concurrent_downloads’. Is the following understanding correct? For example, if 11 users, each belonging to different companies, use the same custom app at the same time and perform zip downloads, enterprise_too_many_concurrent_downloads will not occur (assuming parallel downloads are not performed in each company). I would like to see if the enterprise_too_many_concurrent_downloads error is related to the number of parallel downloads for my company rather than the total number of parallel downloads for my custom app’s users.
Hi, I am currently using the Sign Request API to prefill a pre-created sign template with some data for a signer. Most of the time, my fields prefill completely as expected. (I’m passing them in prefill_tags => {document_tag_id: "tag_name", "text_value": "value" } format, and that seems to be working.) However, every once in a while (maybe like one in every 4 sign requests?) my fields don’t populate correctly and are blank for the signer. I haven’t been able to identify any consistent similarities between these cases, and the success/failure cases have been with the exact same code and request pattern. Any thoughts on what might be going on here?
Box released a generated Python SDK a couple of months ago for beta testing. With these new SDK’s you get full API support, fast API updates, embedded documentation, and enhanced convenience methods. This is a companion discussion topic for the original entry at https://medium.com/box-developer-blog/box-python-next-gen-sdk-getting-started-with-jwt-95d4be08f07e?source=rss----a995c24848a3---4
Hi, @ajankowski @lsocha, @rbarbosa I use a client credentials grant for accessing my enterprise account. I successfully called the enterprise user API using the boxsdk for python. But now when I try to call any box API using the client I get the following error. DEBUG 2023-11-24 04:13:25,474 oauth2 Refreshing tokens. (oauth2.py:214) INFO 2023-11-24 04:13:52,500 default_network e[36mPOST https://api.box.com/oauth2/token {'data': {'box_subject_id': '30187662834', 'box_subject_type': 'user', 'client_id': '---9or2', 'client_secret': '---nKID', 'grant_type': 'client_credentials'}, 'headers': {'User-Agent': 'box-python-sdk-3.9.2', 'X-Box-UA': 'agent=box-python-sdk/3.9.2; env=python/3.10.12', 'content-type': 'application/x-www-form-urlencoded'}}e[0m (default_network.py:79) I debugged and found that the refresh call is made inside the oauth2.py file in the boxsdk. right when this code is called under the refresh() access_tok
In this article we are going to explore how to electronically sign a document from a template using the Box Platform. This is a companion discussion topic for the original entry at https://medium.com/box-developer-blog/working-with-box-sign-templates-35ef3f12e3fc?source=rss----a995c24848a3---4
I created an Embedded widget and included it into a page. The shared link that is used for the widget is restricted to users with access. When I need to sign in, it opens a new tab, I sign in and it refreshes the original widget. However, when it refreshes, it still asks to sign in. This issue only happens in Firefox. I have cleared my cache and cookies, tried using a different Box environment for the shared link, used Firefox on a server (separate from my local machine) and tried rebooting. None of these have worked. However, I do believe that it was working at some point and then within the widget, I tried to sign out of my account. Ever since then it hasn’t worked. However, I don’t know if this is a cause/coincidence or mis-remembering how it was working before. It doesn’t seem like logging out within the widget would cause it to break for different Box environments and different servers. I have included a screenshot of the view I see before and after it refreshes
Hello, I have a question about the box API when OAuth 2.0 is used. My end goal is to upload a file to box using a bot. The first part of my test is to set up the API and do this manually for now. With this goal in mind, I created a personal box account (my organization suggested doing this) to do testing. Then, I created an application and followed the instructions from box to authenticate using Python and SDK. The problem that I’m facing is that I cannot view my root folder. I get a message saying <Box Folder - 0 (All Files)>. I can create folders, search for files, and upload file to box root folder. I read some of the posts on the forum and I already discarded the possibility that I am using a service account because when I look at my client.user() i see my user ID and email. Also, I’m using a developer token and to my understanding, a developer token is associated with the user who’s logged into the developer console. The code that I’m using is below, thank you! from boxsdk
We know that getting started with a new SaaS product can be challenging, but starting today, your journey learning how to use the Box API just got a little simpler. The Box Developer Relations team is proud to launch the brand new Learn Box Platform section of our developer site. This is a companion discussion topic for the original entry at https://medium.com/box-developer-blog/new-box-platform-learn-section-d66364c9cdfc?source=rss----a995c24848a3---4
Hi, When I use the metadata-query command and try to add more options to query more data about the file creation date using the Fields option or the Extra-Fields option, no results show up, only file name and file id Here is the command box metadata-query enterprise_******.department 1736501103 --fields=created_at ----- File 1342427526557 ----- Type: file ID: ‘1342427526557’ Also need to know the list of options that I can use under Fields and Extra-Fields as the Box CLI is not showing any help or examples for it. Thanks
Hi teams, We are facing an issue with the search API of Box. For example, if I have files named ‘image-1’, ‘image-2’, and ‘image-3’ in Box, and my search term is ‘image,’ I noticed that the ordering of results is not consistent. The order of results varies each time I invoke the API. This inconsistency affects the API results, especially when we use pagination. For instance, if I query to get the first 20 results and then use the ‘offset’ value to retrieve the next page of results, I observe that there are repeated results from the previous API call. Please consider this issue and provide us with a resolution. Thank you
Hi! I noticed in the docs that there’s a limit to 10 enabled box skills per enterprise instance. Box Support Enabling and Configuring Box Custom Skills This article presents the basic information Box administrators must know to enable, maintain, and manage Box Skills for their enterprise. You must be upgraded to the latest version of the Admin Con... I’m new to box, so I’m not sure what an enterprise instance is. Is that a billing or organizational concept? Here’s our use case: our customer is a subsidiary of another company that runs events. Our customer drops their assets into a folder per event. There are other subsidiaries that also run events and at some point we’d also like to get them as customers. What do I need to ask them about their installation so I can figure out how many custom skills we can add? If each subsidiary has its own box instance then it’s 10 per subsidiary. But if they have one enterprise instance (l
In my previous post, I explored our newly released Box TS and used it in a simple Node.js app. As we get more and more questions regarding the usage of this SDK in a browser-based project, here is a very quick tutorial. No frameworks, no bundlers — just a simple static page enhanced with the capabilities of Box Platform. This is a companion discussion topic for the original entry at https://medium.com/box-developer-blog/use-box-ts-sdk-in-browser-based-projects-41fce49d24f5?source=rss----a995c24848a3---4
Hi, We would like to implement a flow to delete folder after 30 days of case being closed. Support have advised we should use the Send Request Action in a flow however it isn’t visible to us, any ideas why this may be? We are using Version 4.28 Thank you
We are integrating using SF and would like to assign a zone to files depending on the region on the account record. Does anyone have any suggestions on how we can achieve this using SF flow? Thank you
However you celebrate this season of harvest, the Box Developer Relations team wishes you a warm and happy thanksgiving. This is a companion discussion topic for the original entry at https://medium.com/box-developer-blog/from-our-developer-relations-family-to-yours-181ba24e20b4?source=rss----a995c24848a3---4
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.