box-api

curl: (26) couldn't open file

自古美人都是妖i 提交于 2019-12-17 18:54:11
问题 I am getting this error, when I am trying to call a box api through curl. curl: (26) couldn't open file Can't find why! I am calling this api with a correct file name- curl https://upload.view-api.box.com/1/documents \ -H "Authorization: Token YOUR_API_TOKEN" \ -H "Content-type: multipart/form-data" \ -F file=@A_correct_file_name I have seen all the three already asked questions but 2 of them are unanswered and one is specific to facebook. cURL error 26 couldn't open file Fatal error:

box.com api OAuth authentication

戏子无情 提交于 2019-12-13 12:58:46
问题 Either I'm dense, or the docs assume I already know what they're telling me, but I need some clarification on doing authentication for a box.com app. I really don't understand whate's going on. As I read it: the app running on the user's machine sends a request to Box, including all the little secrets (Which aren't all that secret any more if the user knows how to read the code). The user is directed to the Box login page, which then sends the user to my server (with no page specified)

Automated upload of a Salesforce file to Box.com record-linked folder

杀马特。学长 韩版系。学妹 提交于 2019-12-13 12:42:35
问题 I have a Box for Salesforce intregration app installed and it works great when a user manually adds a file to a SFDC record. I have an Apex class that creates a PDF file that needs to be linked to a SFDC record. I am able to upload the record through the box-api to an existing folder that is linked to the record. But I cannot figure out an automated way to create a folder that is linked to a SFDC record. Did anyone find a solution to this scenario? Thanks, Jose 回答1: We don't currently have a

HTTP 500 when trying to upload a file

谁说我不能喝 提交于 2019-12-13 07:43:59
问题 Here is my Box upload POST to upload a file into a specific folder: POST /api/2.0/files/content HTTP/1.1 Authorization: Bearer ACCESS_TOKEN Accept: application/json User-Agent: SOASoftware/7-HttpCore/4 Transfer-Encoding: chunked Content-Type: multipart/form-data Host: upload.box.com Connection: Keep-Alive attributes='{"name":"lead.txt", "parent":{"id":"2890481033"}}'&file=C:\SOA\Software\sm70\instances\nd\leads.txt -----------------------------9051914041544843365972754266 <file-data> --------

API V2 - Enterprise - Create Managed User

天大地大妈咪最大 提交于 2019-12-13 06:35:18
问题 I am evaluating box for enterprise accounts. Within version 1 docs there are Enterprise Commands such as create_managed_user edit_managed_user etc Is there V2 commands which are the same ? Will the existing V1 Commands for these methods be deprecated ? 回答1: The V2 API has some admin-level APIs, mostly under the /users endpoint (http://developers.box.com/docs/). However, many methods are still being added to the V2 API, and much of the administrative functionality is only available in the V1

Mule Box Connector - Invalid Key Type / Message payload is of type String

旧巷老猫 提交于 2019-12-13 06:28:01
问题 I'm trying to write a Mule flow that uses the Box connector. I'm able to go to http://localhost:8081/auth and authorize successfully. But as soon as I create a file in my box account I get "Failed to Invoke getEvents. Message payload is of type: String." and in the Root Exception Trace I get: "Invalid Key Type" Mule Flow (based on: https://github.com/mulesoft/box-connector/blob/master/demo/src/main/app/box-connector-demo.xml) <?xml version="1.0" encoding="UTF-8"?> <mule xmlns:scripting="http:

'web_link' types in box folder items requests

ε祈祈猫儿з 提交于 2019-12-13 05:24:25
问题 Recently objects with the type 'web_link' started showing up in the items for some of the users that we work with. This currently messes with our application because we expect a 'size' field in all of the entries that Box returns and the 'web_link' type apparently doesn't have a size. I was wondering firstly why this was happening, I think it might be part of some older API that got exposed recent. I am also not sure how to replicate it since the Box API documentation doesn't mention anything

Unable to create a shared link using the Box API V2

偶尔善良 提交于 2019-12-13 04:40:29
问题 UPDATE: I figured it out and posted the answer below. All I'm trying to do is update any file attribute. Description, name, anything, but no matter how I format it I get a 403. I need to be able to modify a file so it can be shared via the Box API from a cloud app. I'm updating someone else's code from V1, but they are no longer available... I've tried many things but mostly just get 403 Forbidden errors. There are no issues with OAuth2, that works fine and I can list files and folders, but

Ordering of get folder items API call

橙三吉。 提交于 2019-12-13 04:38:04
问题 I am using the get folder items API call, and I can tell from my tests that the order appears to be folders first and then alphabetical. Is this call guaranteed to always return items in that order? 回答1: Box Platform team member here ... we do not consider the order of the results returned by any of our collections endpoints part of their public contract and they are subject to change. For GET /folders/id/items at least, the JSON response includes an order array, which shows how the response

how to use python's Request library to make an API call with an attachment and a parameter

风格不统一 提交于 2019-12-13 03:39:42
问题 I am using the Request library to test ReST APIs. I am facing a problem while trying to trasform the below cURL to request library Call. curl https://upload.box.com/api/2.0/files/content \ -H "Authorization: Bearer ACCESS_TOKEN" \ -F filename=@FILE_NAME \ -F parent_id=PARENT_FOLDER_ID I tried many of the suggestions in this forum. But nothing worked. The code which I addedd after the comment is: The code I wrote was: def upload_a_file(url, folder_id, file_name, access_token): field_values = "