box-api

How to use box-api to get the Shared item?

ぐ巨炮叔叔 提交于 2019-12-24 08:18:29
问题 Can I have a example of how to use the box-api V2 for getting the shared item details using shared link api. For example, if the folder is shared for public 1. Do I need use authorization in calling the API get the folder details ? Thanks, 回答1: You'll want to check out the documentation for generating shared links (http://developers.box.com/docs/#files-create-a-shared-link-for-a-file) and getting information about files and folders. If you have access to the file, you can 'Get Information

Box File upload not setting content_created_at attribute c#

风流意气都作罢 提交于 2019-12-24 05:22:09
问题 I want to be able to set the content_created_at attribute when I upload a file and for some reason I can't get it to set. The file uploads just fine to the correct location, correct name, but the content_created_at doesn't get set. Any thoughts? Here is the code that is uploading the file. try { // Build URL string service = "https://upload.box.com/api/2.0/files/"; string strContent = "content"; string urlStr = service + strContent; // File and form data together // - Because our base is .NET

Box File upload not setting content_created_at attribute c#

放肆的年华 提交于 2019-12-24 05:22:05
问题 I want to be able to set the content_created_at attribute when I upload a file and for some reason I can't get it to set. The file uploads just fine to the correct location, correct name, but the content_created_at doesn't get set. Any thoughts? Here is the code that is uploading the file. try { // Build URL string service = "https://upload.box.com/api/2.0/files/"; string strContent = "content"; string urlStr = service + strContent; // File and form data together // - Because our base is .NET

File size information for folder object

こ雲淡風輕ζ 提交于 2019-12-24 00:14:05
问题 For the Folder object, it lists files under that folder (item_collection), with file names and file IDs. It will be helpful to include also the file size, as currently one would need to query each file to get the size. Thanks 回答1: Thanks for the feedback. We've received a lot of requests for filtering the item collection returned in the GET /folders call, so this will help inform what we ultimately build. 来源: https://stackoverflow.com/questions/11058154/file-size-information-for-folder-object

Box Rest APIv2: Move File or Folder

主宰稳场 提交于 2019-12-23 14:50:47
问题 There is a move operation in v1 API. But is there any equivalent for v2 Rest API? There is copy function in V2, I tried to replace it as move but no love, with operation not permitted error or something like that: curl https://api.box.com/2.0/files/FILE_ID/move \ -H "Authorization: BoxAuth api_key=API_KEY&auth_token=AUTH_TOKEN" \ -d '{"parent": {"id" : FOLDER_ID}}' \ -X MOVE 回答1: You can do this by updating the parent of the item via a PUT request i.e. curl https://api.box.com/2.0/files/FILE

Box Rest APIv2: Move File or Folder

你。 提交于 2019-12-23 14:50:14
问题 There is a move operation in v1 API. But is there any equivalent for v2 Rest API? There is copy function in V2, I tried to replace it as move but no love, with operation not permitted error or something like that: curl https://api.box.com/2.0/files/FILE_ID/move \ -H "Authorization: BoxAuth api_key=API_KEY&auth_token=AUTH_TOKEN" \ -d '{"parent": {"id" : FOLDER_ID}}' \ -X MOVE 回答1: You can do this by updating the parent of the item via a PUT request i.e. curl https://api.box.com/2.0/files/FILE

How to download files with Box API & Python

我的梦境 提交于 2019-12-23 14:36:09
问题 I have currently the upload portion of my code working, how would I go about converting this into a program that will download the respective files from the box folder? This is the upload program: import requests import json #the user acces token access_token = 'UfUNeHhv4gIxFCn5WEXHgBJwfG8gHT2o' #the name of the file as you want it to appear in box dst_filename = 'box_file' #the actual file path src_directory = 'C:\Python\cache\\' #the name of the file to be transferred src_filename =

Tracking codes data type and manipulation

柔情痞子 提交于 2019-12-20 06:33:56
问题 Tracking codes allow an enterprise (such as us) to store some local ID in the users' data on Box. I realize that the functionality needs to be enabled on the enterprise (which our contacts are working on). First question: The documentation says it's an "array", and other answers indicate that it's an array of "name/value pairs". In datatypes, what exactly does Box API consider to be a "name/value"-pair? Is it a list of dictionaries with string keys and string values (and in that case - what

save and use auth data in box android API

匆匆过客 提交于 2019-12-19 11:34:53
问题 I am creating an box android app that allows user to upload media files on their account. I have set up my client id and client secret,it is authenticating my app too. Uploading part is also done,but the problem i am facing is to save the auth data [which is obviously needed so user is not needed to login again and again] Load, save and use of authentication data in Box Android API the solution given above is not working [may b they have removed 'Utils.parseJSONStringIntoObject' method] i can

Use SAML Single Sign-On to obtain OAuth access token or code for using Box.com API

ⅰ亾dé卋堺 提交于 2019-12-19 03:39:07
问题 We have SAML-based single sign-on (SSO) enabled between our company's Intranet Portal and Box so that the users do not use username and passwords to login to Box.com. They just click on a button on Intranet Portal which posts a SAML assertion to Box.com to authenticate. We would like to provide the ability to our users to search their Box documents directly from the Intranet Portal and the Box.com API looks like a perfect fit. However, it requires OAuth access token. The question is: Is there