All things API and SDK related
Recently active
Opting for type safety? Awesome! Let me get you acquainted with the new Box TypeScript SDK GENERATED 💙. Our engineers decided to hop on a path of SDK unification and auto-generation. This is a companion discussion topic for the original entry at https://medium.com/box-developer-blog/new-box-typescript-sdk-generated-9b3b452385a?source=rss----a995c24848a3---4
I’m new to the Box API, and I’m trying (and failing) to get JWT Authetication working I’ve created a Custom App in my free individual account which shows enterprise id 0 I downloaded the JSON file that was generated containing the app settings. auth = JWTAuth.from_settings_file(‘0_i21yxr8x_config.json’) auth.authenticate_instance() client = Client(auth) When I run my code I get an error boxsdk.exception.BoxOAuthException: Message: Please check the ‘sub’ claim. The ‘sub’ specified is invalid. Status: 400 URL: https://api.box.com/oauth2/token Method: POST I read somewhere the “enterpriseID”: “0” in the json file might be causing this issue. How do I get a working enterprise ID? Or is there a way to use the User ID?
Hi, when creating group with this Box API: developer.box.com Create group - 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 There are 3 options to choose from for member_viewability_level: admins_only - the enterprise admin, co-admins, group’s group admin admins_and_members - all admins and group members all_managed_users - all managed users in the enterprise Also in admin UI there is Permission Setting on group page with also 3 options, but they don’t match. When creating group with API, this is how chosen options are reflected in UI: admins_only → Admins only admins_and_members → Admins only all_managed_users → Company But I can’t figure out they way to set Permission Setting to “Group members” no matter what options I pass through API, how can I do this?
TL;DR —Discover Box Platform’s authentication methods (OAuth 2.0, JWT, CCG, & App Token) that apps use to access its services, explained through a real world analogies and examples. This is a companion discussion topic for the original entry at https://medium.com/box-developer-blog/box-platform-basics-authentication-methods-101-2e79065b165f?source=rss----a995c24848a3---4
私は、Boxインスタンスで発生している特定の事象への対応を中心に展開するユースケースについてお客様と会話する機会がよくあります。例えば、ファイルが特定のフォルダにアップロードされたとき、特定の機密性の高いコンテンツにコラボレーションが追加されたとき、ドキュメントが署名されたとき、またはファイルがプレビューされたときに、さらに操作を実行したいと考えます。この操作は、ワークフローを開始または続行するよう別のシステムに通知することから、別のソースからBoxのメタデータを検索して適用することまで、何でもかまいません。ご存知のとおり、Boxが提供するアプリケーションはこれらのシナリオに対応したユーザー通知をすでにサポートしているため、この記事では、このバックエンドでの自動化という側面へのいくつかのアプローチの概要を説明します。 This is a companion discussion topic for the original entry at https://medium.com/box-developer-blog/%E3%82%A4%E3%83%99%E3%83%B3%E3%83%88%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6-fe09bd0c02e1?source=rss----a995c24848a3---4
Any tips for testing Box integrations that are used in apex? I’m not sure whether it’s better to Surround all Box methods/auth/api calls in apex with if(!Test.isRunningTest()) so that those lines of code are skipped? Create mock HTTP responses to be able to step through the lines of code if a test is running? eg. HttpResponse response = Test.isRunningTest() ? new Http().send(request) : toolkit.sendRequest(request); Something better? I can see #2 perhaps being best practice, however we use many different box methods (createFolder(), createFolderForRecordId(), commitChanges(), moveFolder(), getFolderByRecordId(), etc) and this could be very tedious to create custom responses for each one. Thoughts?
Hi, I am a dev for a research project. Each month a dataset is collected and uploaded to a particular Box folder to be shared with research partners. I am not the owner of the target Box folder, just a dev assigned to automate the upload process. I have looked at the docs but have confused myself. The Owner of the upload folder needs to create an API key/token or otherwise grant access for an automated process to upload a file. I am not sure though what level/type of access to ask the folder Owner to grant. The code I write will run unattended once a month. It should not run “as me” as I will be reassigned to a different project after this uploader is running. Is a “Service Account” all that is needed? I will need to educate the Owner on what to enable and I am not sure what to tell him at this time. Thank you in advance
Hi All, We are facing an issue w.r.t. box file picker on iOS devices. We have integrated file picker as per documentation but while sharing the files and after selection of files, we need to press select button twice to complete the operation and dismissing the file picker. Thanks.
Good afternoon, there is a project for react typescript. All the integration has already been fully done, but we got a problem with the display of UI Elements. When importing a component, I got the error Could not find a declaration file for module ‘box-ui-elements/es/elements/content-explorer’. ‘***/node_modules/box-ui-elements/es/elements/content-explorer/index.js’ implicitly has an ‘any’ type. (any component, this one as an example). How can I import and make it work instead of with a typescript?
Box Workshops are a great way to get yourself familiarized with the Box Platform or event explore some feature you haven’t used before. These workshops have been designed to be hands on and self paced, so you can explore them on your own terms. Feel free to post feedback and comments.
trying to request token from c#.net using grant type: authorization_code, I’m getting the error “The grant type is unauthorized for this client_id” I don’t know where to set the redirect url, I have set CORS Domains as http://0.0.0.0 Add information about the configuration settings of your app. : Custom Authentication Method : OAuth 2.0 with JSON Web Tokens (Server Authentication) (pre populated.) Please help. Thanks. Prasanna.
Update: The Good, the Bad, and the Ugly… I made a fresh test template for this stuff and setting the Dropdown text via the API worked, so I’m happy about that. I ran into something which I don’t remember being the case before, which was that Sender fields did not even appear to the Signer/Recipient. –I would assume that they’d just be non-modifiable but visible. –Is there some setting I forgot about? Regarding the Radio buttons I tried on Brave browser where they were better performing than Firefox, but not perfect I still see this as a Radio Button conceptual problem, as they aren’t fully taken as a group As the issue seems to be the Arrow indicator can get out of sync with the button-click Meaning that if an entire Radio Button group was considered one item, there’d be no issue Regarding the Text field “Ownership Change” What starts out as a Sender field seems to turn into a Signer field upon text change via API Even if I’m not doing something right, this seems like a bad behavi
Hi there folks. Version 0.4.0-alpha of rusty-box has been released. Rusty-Box 0.4.0-alpha This version now supports the following authentication types: Developer Token Client Credentials Grant (CCG) OAuth 2.0 Check it out in crates.io or take a look at the repo: GitHub GitHub - barduinor/rusty-box Contribute to barduinor/rusty-box development by creating an account on GitHub. Cheers
Can I use the SDK with JWT authentication on the free plan? If not, what plans allow me to use the SDK with JWT authentication? Currently, I’m not very familiar with BOX’s pricing plans…
Welcome to the first Box Developer Community Spotlight! The community itself is focused on supporting developers working with our technical solutions to bring the power of Box to their systems. It’s also about sharing experiences and tips and tricks on how to maximize the Box Platform. This is a companion discussion topic for the original entry at https://medium.com/box-developer-blog/box-developer-community-spotlight-with-mark-reynolds-a9dbe4181aaf?source=rss----a995c24848a3---4
Hi! I have a question about Box’s OAuth2. How many refresh tokens can be obtained simultaneously per client ID for Box? For instance, GOOGLE allows up to 100 refresh tokens to be obtained for one Client ID. There is currently a limit of 100 refresh tokens per Google Account per OAuth 2.0 client ID. If the limit is reached, creating a new refresh token automatically invalidates the oldest refresh token without warning. This limit does not apply to service accounts Google for Developers Using OAuth 2.0 to Access Google APIs | Authorization...
If I have an id but I don’t know is it a file or folder id, what is the easiest way to find it out? In another words, how to get type (file or folder) by object id?
When requesting a the information about a File using GET /files/:id?fields=representations each entry is supposed to contain a content property that has the url_template. Is that incorrect? If so, why would that not be included?
I wanted to register for a developer account from the Box page (Creating Your Developer Account – Box Support), so I clicked on the Developer Sign Up Page (https://account.box.com/signup/developer) linked on that page. On the page after clicking, I couldn’t find the section that would allow me to become a Developer, and instead, the usual sign-up page for a regular account was displayed. I would like to develop and test Box applications, but it seems I cannot do that with a Personal account. Could you please provide guidance on how I can proceed with development? best.
Hi, I am attempting to integrate an application in box with IBM App connect designer. In app connect, I need to provide the following authentication data: Access token Refresh token Client ID Client Secret I have already found the client ID and client secret, however the only token I was able to find was called a developer token. Can anyone help me understand how I could aqcuire the access and refresh tokens for my application? kind regards
When using the endpoint to list items in a folder is there any way to include representations in the nested items?
I have been testing Create Box Sign Request API using my free Developer Account, and it has been working fine until July 3rd, 2023. developer.box.com Create sign request - 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 However, when I tried the same request today (July 31st, 2023), the API request itself succeeded but the created Sign Request resulted in Error On Convert status. When I created Sign Request via WebUI, the created Sign Request successfully proceeded to In Progress status. Has there been any changes in the Box Sign API, or on its usage restriction for free Developer Accounts?
[First post – please bear with me.] Box recently sent me a notice about deprecating some SSL protocols. Legacy SSL Ciphers Deprecation The suggestion is to use “api-test(.)box(.)com” instead of the normal “api(.)box(.)com” to test whether you need to make security changes to your app. The problem I’m facing is I use the BOX SDK v.2 (with C#) which has “api(.)box(.)com” hardcoded in the library so I can’t change it to use the testing URL. [The (.) is to get around the new user 1 link only restrictions.] Any suggestions? Please let me know if you need more info. thanks, randy
Hi, I am trying to find the best way to display images stored in Box on an ASP.NET web app. I have read about “Box View” but it looks like Box View files can only be displayed using an iFrame. I would prefer to directly display the images, rather than dealing with the clunkiness of an iFrame. In addition, using Box View requires uploading the files to an App Token application. I have hundreds of images, and unless I can upload them simply or automatically, I’d prefer to avoid an extra step like this. I tried to look through the other APIs and their capabilities, and couldn’t find anything that simply allows me to display an image stored in Box. I could be mistaken though. For context, I am trying to display multiple images pertaining to physical items. The other data for the items is stored in Azure, but the images are in Box. I would also like to display a pdf (stored in Box) for each of these items but figured I would tackle images first. I am a fairly new developer so I may be lacki
We are excited to introduce a new embedded signing experience, enabling developers to leverage the power of Box Sign within custom applications! Developers and users can now embed the Box Sign signing experience into their own custom applications without the need to navigate to Box Sign and back into their custom application to complete the signature process. To integrate Box Sign experience within your own website, you need the iframeable_embed_url parameter that is specifically designed to allow signing documents within the HTML iframe tag. A sample iframable_embed_url looks as follows: https://app.box.com/embed/sign/document/f14d7098-a331-494b-808b-79bc7f3992a3/f14d7098-a331-494b-808b-79bc7f3992a4 To get the iframeable_embed_url pass the embed_url_external_user_id parameter for each signer when calling the create sign request endpoint. The returned response will contain a unique iframeable_embed_url for that signer. To embed Sign features and make them available to the users, use
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.