All things API and SDK related
Recently active
i am try to do some action in box , like add new task , get comments etc … i only know the user email but in api side we need account id , so do we have API to get account id by email ? or the api can using email to repacle account id ? BTW , i am using box-python-sdk-main , thank you!!
Hello box folks, I’ve created a new app with JWT authentication and while most everything so far has worked as expected, I’m getting a 403 error when trying to create an app user: ‘The request requires higher privileges than provided by the access token.’ Question for you: do I need a paid enterprise account to create app users or can it be done with a developer account. If it can be done with a developer account, can you point me to any documentation about what app permissions need to be enabled to create an app user? Thank you.
Hi. I’m trying to find the best way to give a consumer using my mobile app a set of files created by my app when they click a button. Most of my users will not have a desktop computer or a printer. They will need to either (a) forward the documents to a FedEx email for printing or (b) upload the files to an online e-filing system. I don’t want the user to create a Box.com account, because that would be confusing to consumers using a mobile app. The simplest thing would be to email the attachments to the user, but I’ve gathered Box.com can only email share links that cannot be easily forwarded to FedEx for printing or uploaded to an online e-filing system from a mobile device. Any suggestions on the best way to go about this? Need a secure way to make it easy for a user to email the docs to a FedEx printing email or upload them to an online portal, from their phone.
There is a Box folder that has over 360,000 items. When I attempt to list items in the folder I receive the following error: Context Info: {‘errors’: [{‘reason’: ‘invalid_parameter’, ‘name’: ‘offset’, ‘message’: ‘The offset plus limit must not exceed the maximum limit of 300000’}]} How can I limit the number of items returned? Is there a technique I can use to adjust the limit and offset when listing over 300,000 items?
Do you have questions about the Box AI API? This is the place to ask!
It use to be easy but i do not see an option anymore on how too see how many folders I have.
We use the Content Preview UI element to display a variety of files that are different dimensions. Some are long portrait, some are narrow landscaped. Is there a way to have the height property of the Content Preview automatically adjust or be in better proportion to the content. I have considered inserting metadata into the file at the time of file generation with the dimensions so I could calculate an appropriate dimension but to do that it looks like I would need to pass the file from box to another service.
Its Trailblazer DX 2024 week!As I previously mentioned in our upcoming events post, Box is sponsoring TrailblazerDX this year. Stop by booth 32 to learn how to extend the value of Box for Salesforce. You’ll also want to check out Box’s session “Supercharge your Content in Salesforce with Box AI & Slack” on March 6th at 1:30pm PT presented by our chief product officer Diego Dugatkin, Nick Read, and myself! This is a companion discussion topic for the original entry at https://medium.com/box-developer-blog/box-salesforce-flows-with-metadata-c8979b02acb1?source=rss----a995c24848a3---4
I’ve encountered an issue with conflicting styles between the modal and btn elements in our site’s Bootstrap framework and the styles in https://cdn01.boxcdn.net/platform/elements/19.0.0/en-US/explorer.css. There might be additional conflicting styles that I haven’t identified yet. Any suggestions on how to resolve this? Currently, the only solution I can think of is to create a customised version of explorer.css. It would have been beneficial if the Box styles were prefixed to mitigate conflicts. Any insights would be appreciated. Thanks.
Is it possible to configure the non-private custom URL in Shared Link Settings using the BOX API? I want to automate the process of linking files from local storage to BOX and setting a non-private custom URL using the BOX API. Since I couldn’t find information in the API reference, I would appreciate your guidance.
Hi there, I’m trying to download files created by someone within the same organization with Python SDK, but I get [403] access_denied_insufficient_permissions I can get file’s information (file id and name) with client.file(file_id).get(), but I get the above error when I try client.file(file_id).content(). Here’s my app’s status Authentication with Client Credentials Grant (already authorized) Both reading/writing files are allowed The service account has the access to the folder as Editor. Could anybody give me advice on the cause of this error? Thank you.
In the ever-evolving landscape of enterprise documents, metadata plays a pivotal role in how you organize, discover, and extract value from your unstructured content. This is a companion discussion topic for the original entry at https://medium.com/box-developer-blog/box-ai-driven-metadata-extraction-4af9f52feb83?source=rss----a995c24848a3---4
I’m running an API call to /files/[fileid]/content with just the file id in the URL and the access token in the header. It says the api call is completing successfully, but it does not actually prompt a download in the browser. It worked a while back, but I’m not sure what I changed causing it not to work any more. Any tips on what I can check would be helpful. Thanks in advance for any assistance.
When attempting to extract tracking codes for a particular user via Python script, I am receiving an AttributeError as follows: ‘User’ object has no attribute ‘tracking_codes’. Based on the documentation I’ve read, I should be able to pull tracking codes using the ‘tracking_codes’ attribute. Any input on addressing this issue would be greatly appreciate.
I have created a webhook as part of an application in Box. The application has a service account. The service account has all scopes possible (just make sure I didn’t miss anything). The service account is a co-owner of the folder that the webhook monitors. However, when I use the code examples from here and here I am unable to see the webhook (I receive a 404). Is this a permissions issue or am I doing something wrong? I have tried impersonating as the owner of the folder but I get a 403 response. import boxsdk import json from boxsdk import JWTAuth from boxsdk import Client def build_client(): auth = JWTAuth.from_settings_file('box_settings.json') client = Client(auth) return client client = build_client() webhooks = client.get_webhooks()
Hi, I can query for various thumbnail representations of an uploaded image, but is there any endpoint/query that will return the original dimensions of the file? Thanks
I want to give users of my FlutterFlow mobile/web app full access to a dynamic folder path from within my app, without the user knowing they are in Box. This means a custom app using JWT authentication using key pairs and the config.json for authentication: https://developer.box.com/guides/authentication/jwt/without-sdk/ However, FlutterFlow does not have native support for SDKs, python, or any of the languages supported in the documentation. I was wondering if anyone else has any experience using Box.com integrations with Flutter/FlutterFlow apps and if so how they did it.
While creating application,clicked the “Generate Public/Private Keypair” & get the JSON file. From the JSON file,we have copied the content from “privateKey” & create new file (Config.PEM) and updated the “privateKey” values. the run the below code, getting an error. from boxsdk import JWTAuth from boxsdk import Client auth = JWTAuth( client_id=‘xxxxxx’, client_secret=‘xxxxxxxx’, enterprise_id=‘0’, jwt_key_id=‘xxxxxx’, rsa_private_key_file_sys_path=‘C:\Box\config.PEM’, rsa_private_key_passphrase=‘xxxxxxxxxxx’, ) access_token = auth.authenticate_instance() client = Client(auth) Issue : Could not deserialize key data. The data may be in an incorrect format, it may be encrypted with an unsupported algorithm, or it may be an unsupported key type C:\Program Files (x86)\Python\Python310>python.exe “C:\Users\arulap\OneDrive - Symphony Summit\Working\Official\Dev\Box\summitorchestration@gmail.com\JWTAuth_Test.py” Traceback (most recent call last): File “C:\Users\arulap\OneDrive - Sy
In today’s digital landscape, efficient file management is crucial for businesses. With the exponential volume of data being generated, it’s essential to have streamlined processes in place for organizing and disposing of outdated files and folders. This is a companion discussion topic for the original entry at https://medium.com/box-developer-blog/digital-cleanup-day-with-box-api-a751b2e0fd4d?source=rss----a995c24848a3---4
Hi there. I’m looking for a way to download a watermarked file using the API with a viewer user. I saw the platform docs mentioning that when using a Viewer user to download a watermarked file, you need to first open the file for preview and then the download becomes available. How can I do the same thing using the API instead of the UI?
Our app is currently under review. Even though it is in the review process, is it okay for our customers to use it? Are there any restrictions, such as a maximum number of connections?
Hi, Is it possible to Downscope the Box token with java sdk for one folder only if that user is collaborator on multiple folders? e.g. root folder → folder 1 → folder x | | → folder y → more child folders and files | | → folder z → more child folders and files | → folder 2 → folder a | → folder b → more child folders and files (in case format messed up. folder x,y and z are the child folder of folder 1. folder a and b is child folder of folder 2. Folder 1 and 2 is child folders of root folder.) If user “ABC” is collaborated on “folder y”, “folder z” and “folder b”, can we downscope token to show only “folder y”, and “folder z” and not “folder b” on the box ui element with the existing role? Say user “ABC” has “editor” role on “folder y”, and “folder z”. Thanks.
Hi, We have issue where we want to get all the collaborators for file, however, we are not getting all the collaborators. If I call list folder collaboration Api, I am getting all the collaborators whoever have access to that file. If it is waterfall permission model, I should have all the collaborations from the file endpoint, if that file under the parent folder. So why I am not getting all the collaborators when I use list file collaboration API? ref: - List file collaborations - API Reference - Box Developer Documentation
Hi, we are using java1.8 version and trying to get the Token using Java SDK , but we got the below exception. developer.box.com Install Java SDK - 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 above blog suggeste all the jar’s added. Sample Code: Path configPath = Paths.get(“config.json”); try (BufferedReader reader = Files.newBufferedReader(configPath, Charset.forName(“UTF-8”))) { BoxConfig boxConfig = BoxConfig.readFrom(reader); BoxDeveloperEditionAPIConnection client = BoxDeveloperEditionAPIConnection.getAppEnterpriseConnection(boxConfig); //Not able to get this token System.out.println(client.getAccessToken()); }catch(Exception e){ System.out.println(“Error =”+e.getMessage()); } This below exception, we are getting recently. Exception in thread “main” com.box.sdk.BoxAPIException: Error parsing PKC
Box Developer Relations has some exciting news to share — free developer accounts are BACK! This is a companion discussion topic for the original entry at https://medium.com/box-developer-blog/announcing-the-return-of-free-developer-accounts-97c8b9965845?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.