All things API and SDK related
Recently active
Hi,i am getting below error after entering client ID and key using BOX CLI commands, Could you please confirm if i am missing any prerequisites?
By using node sdk , file is uploaded and then after uploading file , I would like to get that uploaded file id. File is uploaded successfully response code s200. Althought I try out , I cannot get that uploaded file id. I cannot understand how can I get data from return Promise<Object> data type.Therefore, could you support and find out solution for that issue. My code snippest is as below. // Initialize the Box SDK var sdk = new BoxSDK({ clientID: sdkConfig.clientID, clientSecret: sdkConfig.clientSecret, appAuth: { keyID: sdkConfig.appAuth.keyID, privateKey: sdkConfig.appAuth.privateKey, passphrase: sdkConfig.appAuth.passphrase } }); var appUserClient = sdk.getAppAuthClient('user',userId); var stream =fs.createReadStream(newPath); // upload file’s path var parentFolderId = parentFolderId
I would like to preview content of file when searching, like actual box search screen.can anyone tell me how can I do this?
Hi!I would know how the throttling/rate limit on a user basis (1000 API calls per minute) is applied when you use a JWT application (service account) to act on behalf of another user by leveraging the as-user header.The limit is applied to...The service account itself Or the impersonated user (as-user)And if I create another service account, the user based limit is reset for this new account (1000 API calls per minute)?
I’ve seen the example of how to use an app token for a limited access app in the original .NET SDK but have yet to figure it out for the .NET GEN SDK. Basically, I’ve got a Client ID and an App Token that need to create a BoxClient but none of the methods I’ve tried work. Both CcgConfig and JwtConfig objects want clientSecrets or other information. What am I missing?
I'm looking for a way to optimize my current Box folder scanning function to reduce the number of API calls made to Box.Currently, I have a desktop application that scans specific Box folders within my organization. Below is the scanning function in Java:private static BoxItem getBoxItemRec(BoxFolder initialFolder, Path locations, int index) throws NotFoundException { Path currentPath = locations.subpath(0, index + 1); String location = locations.getName(index).toString(); for (BoxItem.Info info : initialFolder.getChildren()) { if (info.getName().equalsIgnoreCase(location)) { if (locations.getNameCount() == index + 1) return (BoxItem) info.getResource(); else return getBoxItemRec((BoxFolder) info.getResource(), locations, index + 1); } } throw new NotFoundException(currentPath + " not exist!");} Is there a way to retrieve only the new files that were added within the last X days without scanning the entire Box folder? Ideally, instead
Is there a more efficient way to retrieve a BoxItem (either a Folder or File) directly by its path in Box?Currently, my approach involves starting at the root folder and recursively scanning through the items, matching each part of the path until I reach the desired item.For example, with the path "Logs/Ben", I start at the root, iterate through its children until I find the "Logs" folder, then iterate through its children until I find the "Ben" folder.This method works, but it involves multiple API calls, which I believe could be optimized.Is there a way to directly access a BoxItem using its full path, thereby reducing the number of API calls my application needs to make?Any guidance or alternative approaches would be greatly appreciated.
I am working on a PowerShell script to automate archiving files that are 5GB each. I am working directly with the API in PowerShell since BoxCLI does not utilize chunked uploads. When running the “POST Upload Part of a File” command for the final chunk of a file, I am getting an error that the content-range is invalid. The final part of the file is not the same length as the rest of the parts, and the documentation states that is an allowed exception. All initial parts upload without error, and return the expected values for the upload. When I run the final part using a content-range header value of “83886080-95925607/95925607” I get the following error:{ "code": "range_out_of_bounds", "message": "Part with offset 83886080 and size 12039528 exceeds limits of file size 95925607", "request_id": "8642639592d5d19e401d2d252ba83641"}It looks like the API is ignoring the higher bound value provided in the content-range and using the higher bound that would be set if using the full pa
I have upgraded my box SDK version (2.32.0 → 4.11.1)In 2.32.0 there is a way to create shared link to BoxItem object:private String createSharedPath(BoxItem item) {if (Objects.isNull(item)) return null;BoxSharedLink.Permissions permissions = new BoxSharedLink.Permissions();permissions.setCanDownload(true);permissions.setCanPreview(false);BoxSharedLink sharedLink = item.createSharedLink(BoxSharedLink.Access.COMPANY, null, permissions);return sharedLink.getDownloadURL();}In 4.11.1 BoxItem does not include createSharedLink function.How can I perform the same thing in the new version? I could not found anything familiar in the docs
Hello!If anyone has worked or have been working on retrieving the Collaborations Report using Box API in Python and not from the Admin Console? If yes, I’m looking for possibilities to create the report and your knowledge/suggestions would be greatly appreciated!Thank you,Suvidha Vaddula
I have some Python code that has successfully been making API calls for months (to specifically start a Workflow). It suddenly stopped working the week before last. When I went to investigate, the code that gets me an access token has suddenly stopped working, returning the normal error of {'error': 'invalid_grant', 'error_description': 'Grant credentials are invalid'}My question is, is there some kind yearly “account refresh” I need to do? Or is there a backend token I am not aware of that needs a refresh? I did check and my client secret, client id, and service account id are all correct. Here is a simplified version of the code. def get_access_token(client_id_var, client_secret_var, service_account_id): #This URL gets us our access token # Define the URL url = "https://api.box.com/oauth2/token" # Define the request parameters payload = { "client_id": client_id_var, "client_secret": client_secret_var, "grant_type": "client_credentials", "box_subject_type"
Hello!If anyone has worked/ have been working on retrieving the Collaborations Report using Box API in Python and not from the Admin Console, I’m looking for possibilities to create the report and your knowledge/suggestions would be greatly appreciated!Thank you,Suvidha Vaddula
I'm the developer of an online logbook for pilots. For years, I've had oAuth2 support to allow users to back up their data to Dropbox, Google Drive, and OneDrive. I'd like to add Box.com as an option. The technical piece of this is pretty straightforward - but one thing I need is a Box.com logo that I can use in the UI where people set up the oAuth connection. Dropbox, Onedrive, and Google Drive all grant permission to use - and provide approved logos! - for this legitimate purpose (with conditions, of course!). I can't find anything about how to do this with Box.
For the search interface, Search for content - API Reference - Box Developer DocumentationI am wondering how to know the folder layers from the response. I see there is a property named Path_Collection, which seems has all folder names, but the sequence_id property is always 0 or null. How can we know which is the direct parent folder, which is the second level? Can we relay on the item sequence of the collection? For example, for below response, can we consider the folder path is All Files/B/A ? "path_collection": { "total_count": 4, "entries": [ { "type": "folder", "id": "0", "sequence_id": null, "etag": null, "name": "All Files" }, { "type": "folder", "id": "230155851619", "sequence_id": "0",
The number of custom and partner built Box Sign integrations is rapidly growing. Box Sign integrations with HCM tools (such as Workday) via Workato, ServiceNow via Reva, Jira via Valiantys, and HubSpot via Eustace Consulting are the latest additions. Take a look at this blog post for more details.Want to learn how to unlock the power of Box Sign? Register for this on-demand webinar.
I have tick all the permissions from App Console but still not able to update collaborator role from co-owner to owner of a user(Member not admin,co-admin) I am using PUT method /collaborations/{collaboration_id}\
Can anyone suggest the latest way to get shared file Download url? I got next js 13 with react 18 project . There is no JS SDK currently so using CDN v21.0.0. I need to get picked file download url from the file picker window and send it to the Back End to be downloaded there and fetch it then from different endpoint to my project. Thanks.
Google Cloud Platform (GCP) is your go-to for cloud computing solutions. With powerful tools and global infrastructure, it simplifies app development, machine learning, and infrastructure management. This is a companion discussion topic for the original entry at https://medium.com/box-developer-blog/working-with-gcp-functions-and-box-webhooks-5f9a0fb2ae97?source=rss----a995c24848a3---4
While perusing the Box web app, you may have noticed that if you click on the ellipsis button to the right of a file or folder, there is an option in the dropdown labeled integrations. Hovering over that selection reveals another dropdown with a list of built in actions that can be triggered off the content selected. For example, a user can simply click “Send with Gmail” and a shared link for the content can be emailed to another party. This is a companion discussion topic for the original entry at https://medium.com/box-developer-blog/building-a-box-web-app-integration-with-vercel-21bdd6b48c35?source=rss----a995c24848a3---4
Hello,I tried to use box webhooks to catch a new collaboration acceptation after having created it with box API. I notice that it works perfectly when the account already exists for this new collaboration on a folder. But if the account doesn't exist, there is no trigger on "COLLABORATION.ACCEPTED".I’m looking for a solution for the webhook to let me know when a user creates his box account and accept the collaboration at the same time.Thanks a lot.Christophe
Hi, I want to set up a webhook or event detection whenever we request signature via Docusign on a Box file.We are using the Docusign integration where you can click into a PDF file, open up the Activity Sidebar, and then click on “Send with Docusign”. I’ve attached a screenshot below displaying how we are currently doing this. Anytime this happens, I would like for a Box Webhook or the Events API to detect this event.
Hi everyone,I'm seeking assistance with configuring a Box application to retrieve files from a specific folder using their API. I have an admin account on Box.com where the files reside.My goal is to achieve this using Client Credentials Grant authentication. However, when I create a new app in the Developer Console, it requires authorization before I can obtain an access token.Here's the challenge: I want to deploy a script on my WordPress website that automatically downloads a file daily from the Box folder and utilizes it for specific tasks. However, the Developer Console currently identifies me as an admin, not a developer. This restricts my app from accessing the files via API.Previous Attempt:I tried creating a separate developer account and adding it as a collaborator to the main (admin) account. This allowed me to verify and authorize the app, obtaining an access token. However, I'm concerned that a developer account wouldn't grant access to the specific files within the folder
I heard there may be the ability to connect my own LLM to Box via API. Is that on the roadmap or a known feature coming?
Hello community, Need your help i’m always getting this error when hitting that api
While using the Box .NET(Gen) SDK I noticed that the TemplateSigner class is missing the label field. However when calling the Box API via curl to get sign templates the label field is a part of the signer objects in the signers array on sign templates. I assume it is supposed to be accessible as this forum post describes the signer object as having the label field. https://community.box.com/topic/show?tid=477&fid=9 Unfortunately, the label field is missing on the Signers object on this page Box Sign template - API Reference - Box Developer Documentation of the Box Developer Documentation. Upon closer inspection it also appears to be missing on all of the SDKs TemplateSigner classes.
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.