Download the PHP package pimkaptein/box-sdk without Composer
On this page you can find all versions of the php package pimkaptein/box-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pimkaptein/box-sdk
More information about pimkaptein/box-sdk
Files in pimkaptein/box-sdk
Package box-sdk
Short Description Box content / view sdk with added functions
License MIT
Informations about the package box-sdk
Box Sdk
Description
This is an unofficial Box Php Sdk.
Toc
Support
Installation
Install it through composer.
tip: you should browse the adammbalogh/box-sdk
page to choose a stable version to use, avoid the @stable
meta constraint.
Authorization
Your goal is to obtain a valid access token.
Authorize
The object is responsible for obtain/save the access token. The example above uses a for a , this means it does not obtain or save anything, so authorizes on each call.
If you want to save the access (and the refresh) token persistently, you should check the other adapters of the KeyValueStore package, here.
Revoke tokens
Get access token Ttl
Request
Extended Request
Here you can see an example request to the View Api. It calls the UrlDocumentUpload command.
Many of the commands are able to include an Extended Request object. With an Extended Request object you can inject your extra Headers, Url Parameters or Request Body Attributes.
Response
Handle Response
You can get 5 important response values:
- $response->getStatusCode(); # e.g. '201'
- $response->getReasonPhrase(); # e.g. 'Created'
- $response->getHeaders(); # array of response headers ['header name' => 'header value']
- $response->json(); # parse json response as an array
- (string)$response->getBody();
Content Api
Create Client
Commands
User Commands
Get Current User Command
Folder Commands
Copy Folder Command
Create Folder Command
Create Shared Folder Link Command
Delete Folder Command
✔ Extended Request
Get Folder Info Command
List Folder Command
✔ Extended Request
List Folder Collaborations Command
Update Folder Info Command
File Commands
Copy File Command
Create Shared File Link Command
Delete File Command
✔ Extended Request
Download File Command
✔ Extended Request
Get File Info Command
Pre Flight Existing File Check Command
Pre Flight New File Check Command
Update File Info Command
Upload File Command
Upload New File Version Command
✔ Extended Request
Search Commands
Search Content Command
✔ Extended Request
View Api
Create Client
Commands
Document Commands
Delete Document Command
Get Document Content Command ☢
Get Document Info Command
✔ Extended Request
Get Document Thumbnail Command
✔ Extended Request
List Document Command
✔ Extended Request
Multipart Document Upload Command
✔ Extended Request
Update Document Info Command
Url Document Upload Command
✔ Extended Request
Session Commands
Create Document Session Command
✔ Extended Request
Wrappers
Search Path Wrapper
It wraps the Search Content Command to able to get an Entry object from a path string (like /root/dir_1/dir_2, or /pictures/img.png)
Create Folders Wrapper
It wraps the Create Folder Command to able to create folders implicitly.
All versions of box-sdk with dependencies
guzzlehttp/guzzle Version ~5.3.0
adammbalogh/key-value-store Version ~0.5.1