Вы находитесь на странице: 1из 4

Box

Token
{"access_token":"mEke53TV0ySd6tC52w4sQmjjGKxW5ogr","expires_in":3862,"restricted
_to":[],"refresh_token":"aMLNjwXKwEuihd8R0P7uhFt3FAtt33bqAfhgpDZTVRzEYiSjhdLsOzm
i4sNlsD0o","token_type":"bearer"}

{"type":"user","id":"206491652","name":"Fractus My","login":"MyFractus@163.com",
"created_at":"2013-11-27T03:16:44-08:00","modified_at":"2013-12-04T19:17:21-08:0
0","language":"en","space_amount":10737418240,"space_used":0,"max_upload_size":2
147483648,"status":"active","job_title":"","phone":"13821733563","address":"","a
vatar_url":"https:\/\/app.box.com\/api\/avatar\/large\/206491652"}

200 Success
{"type":"folder","id":"0","etag":null,"name":"All Files","item_collection":{"tot
al_count":5,"entries":[{"type":"folder","id":"1356832596","etag":"0","name":"tes
t3"},{"type":"folder","id":"1356810226","etag":"0","name":"xxx"},{"type":"file",
"id":"12112637532","etag":"0","name":"test1.txt"},{"type":"file","id":"121126204
68","etag":"0","name":"test2.txt"},{"type":"file","id":"12112172932","etag":"0",
"name":"test3.txt"}],"offset":0,"limit":100,"order":[{"by":"type","direction":"A
SC"},{"by":"name","direction":"ASC"}]}}

404 ProtocolErr
{"type":"error","status":404,"code":"not_found","context_info":{"errors":[{"reas
on":"invalid_parameter","name":"item","message":"Invalid value 'd_1356810221'. '
item' with value 'd_1356810221' not found"}]},"help_url":"http:\/\/developers.bo
x.com\/docs\/#errors","message":"Not Found","request_id":"109313278529ff8b20295a
"}

405
{"type":"error","status":405,"code":"method_not_allowed","help_url":"http:\/\/de
velopers.box.com\/docs\/#errors","message":"Method Not Allowed","request_id":"18
87031758529ff38a2661d"}

{"type":"folder","id":"0","etag":null,"name":"All Files","item_collection":{"tot
al_count":1,"entries":[{"type":"folder","id":"1356810226","etag":"0","name":"xxx
"}],"offset":0,"limit":100,"order":[{"by":"type","direction":"ASC"},{"by":"name"
,"direction":"ASC"}]}}

{"type":"error","status":404,"code":"not_found","context_info":{"errors":[{"reas
on":"invalid_parameter","name":"parent","message":"Invalid value ''. 'parent' wi
th value '' not found"}]},"help_url":"http:\/\/developers.box.com\/docs\/#errors
","message":"Not Found","request_id":"339136388529ff28fc373b"}

200
{"type":"folder","id":"1356810226","sequence_id":"0","etag":"0","name":"xxx","cr
eated_at":"2013-12-04T19:34:04-08:00","modified_at":"2013-12-04T19:47:04-08:00",
"description":"","size":18,"path_collection":{"total_count":1,"entries":[{"type"
:"folder","id":"0","sequence_id":null,"etag":null,"name":"All Files"}]},"created
_by":{"type":"user","id":"206491652","name":"Fractus My","login":"MyFractus@163.
com"},"modified_by":{"type":"user","id":"206491652","name":"Fractus My","login":
"MyFractus@163.com"},"trashed_at":null,"purged_at":null,"content_created_at":"20
13-12-04T19:34:04-08:00","content_modified_at":"2013-12-04T19:47:04-08:00","owne

d_by":{"type":"user","id":"206491652","name":"Fractus My","login":"MyFractus@163
.com"},"shared_link":null,"folder_upload_email":null,"parent":{"type":"folder","
id":"0","sequence_id":null,"etag":null,"name":"All Files"},"item_status":"active
","item_collection":{"total_count":1,"entries":[{"type":"file","id":"12112089856
","sequence_id":"0","etag":"0","sha1":"d62c3c2411e8a9ee54080281ec94625f3c79fd3a"
,"name":"test3.txt"}],"offset":0,"limit":100,"order":[{"by":"type","direction":"
ASC"},{"by":"name","direction":"ASC"}]}}

{"type":"error","status":404,"code":"not_found","context_info":{"errors":[{"reas
on":"invalid_parameter","name":"parent","message":"Invalid value ''. 'parent' wi
th value '' not found"}]},"help_url":"http:\/\/developers.box.com\/docs\/#errors
","message":"Not Found","request_id":"339136388529ff28fc373b"}

201
{"type":"folder","id":"1356810226","sequence_id":"0","etag":"0","name":"xxx","cr
eated_at":"2013-12-04T19:34:04-08:00","modified_at":"2013-12-04T19:34:04-08:00",
"description":"","size":0,"path_collection":{"total_count":1,"entries":[{"type":
"folder","id":"0","sequence_id":null,"etag":null,"name":"All Files"}]},"created_
by":{"type":"user","id":"206491652","name":"Fractus My","login":"MyFractus@163.c
om"},"modified_by":{"type":"user","id":"206491652","name":"Fractus My","login":"
MyFractus@163.com"},"trashed_at":null,"purged_at":null,"content_created_at":"201
3-12-04T19:34:04-08:00","content_modified_at":"2013-12-04T19:34:04-08:00","owned
_by":{"type":"user","id":"206491652","name":"Fractus My","login":"MyFractus@163.
com"},"shared_link":null,"folder_upload_email":null,"parent":{"type":"folder","i
d":"0","sequence_id":null,"etag":null,"name":"All Files"},"item_status":"active"
,"item_collection":{"total_count":0,"entries":[],"offset":0,"limit":100,"order":
[{"by":"type","direction":"ASC"},{"by":"name","direction":"ASC"}]}}

404 ProtocolErr
{"type":"error","status":404,"code":"not_found","context_info":{"errors":[{"reas
on":"invalid_parameter","name":"parent","message":"Invalid value 'dadadasdas'. '
parent' with value 'dadadasdas' not found"}]},"help_url":"http:\/\/developers.bo
x.com\/docs\/#errors","message":"Not Found","request_id":"1714797320529ff413a832
c"}

409
{"type":"error","status":409,"code":"item_name_in_use","context_info":{"conflict
s":[{"type":"folder","id":"1356810226","sequence_id":"0","etag":"0","name":"xxx"
}]},"help_url":"http:\/\/developers.box.com\/docs\/#errors","message":"Item with
the same name already exists","request_id":"399890697529ff44e32ebf"}

409
{"type":"error","status":409,"code":"item_name_in_use","context_info":{"conflict
s":[{"type":"folder","id":"1356810226","sequence_id":"0","etag":"0","name":"xxx"
}]},"help_url":"http:\/\/developers.box.com\/docs\/#errors","message":"Item with
the same name already exists","request_id":"399890697529ff44e32ebf"}
()

201
{"total_count":1,"entries":[{"type":"file","id":"12112620468","sequence_id":"0",
"etag":"0","sha1":"d62c3c2411e8a9ee54080281ec94625f3c79fd3a","name":"test2.txt",
"description":"","size":18,"path_collection":{"total_count":1,"entries":[{"type"
:"folder","id":"0","sequence_id":null,"etag":null,"name":"All Files"}]},"created
_at":"2013-12-04T20:27:23-08:00","modified_at":"2013-12-04T20:27:23-08:00","tras

hed_at":null,"purged_at":null,"content_created_at":"2013-12-04T20:27:23-08:00","
content_modified_at":"2013-12-04T20:27:23-08:00","created_by":{"type":"user","id
":"206491652","name":"Fractus My","login":"MyFractus@163.com"},"modified_by":{"t
ype":"user","id":"206491652","name":"Fractus My","login":"MyFractus@163.com"},"o
wned_by":{"type":"user","id":"206491652","name":"Fractus My","login":"MyFractus@
163.com"},"shared_link":null,"parent":{"type":"folder","id":"0","sequence_id":nu
ll,"etag":null,"name":"All Files"},"item_status":"active"}]}

409
{"type":"error","status":409,"code":"item_name_in_use","context_info":{"conflict
s":{"type":"file","id":"12112089856","sequence_id":"0","etag":"0","sha1":"d62c3c
2411e8a9ee54080281ec94625f3c79fd3a","name":"test3.txt"}},"help_url":"http:\/\/de
velopers.box.com\/docs\/#errors","message":"Item with the same name already exis
ts","request_id":"312660385529ff826e4941"}
(3.txt)
409
{"type":"error","status":409,"code":"item_name_in_use","context_info":{"conflict
s":[{"type":"file","id":"12112172932","sequence_id":"0","etag":"0","sha1":"d62c3
c2411e8a9ee54080281ec94625f3c79fd3a","name":"test3.txt"}]},"help_url":"http:\/\/
developers.box.com\/docs\/#errors","message":"Item with the same name already ex
ists","request_id":"1114753975529ff9bb15368"}

404 ProtocolErr
{"type":"error","status":404,"code":"not_found","context_info":{"errors":[{"reas
on":"invalid_parameter","name":"parent","message":"Invalid value 'dadadasdas'. '
parent' with value 'dadadasdas' not found"}]},"help_url":"http:\/\/developers.bo
x.com\/docs\/#errors","message":"Not Found","request_id":"1714797320529ff413a832
c"}

200 null
:
404
{"type":"error","status":404,"code":"not_found","help_url":"http:\/\/developers.
box.com\/docs\/#errors","message":"Could not find the specified resource","reque
st_id":"61403850352a003e198a29"}

404 ProtocolErr
{"type":"error","status":404,"code":"not_found","context_info":{"errors":[{"reas
on":"invalid_parameter","name":"parent","message":"Invalid value 'dadadasdas'. '
parent' with value 'dadadasdas' not found"}]},"help_url":"http:\/\/developers.bo
x.com\/docs\/#errors","message":"Not Found","request_id":"1714797320529ff413a832
c"}

204 null
:
404
{"type":"error","status":404,"code":"not_found","context_info":{"errors":[{"reas
on":"invalid_parameter","name":"file","message":"Invalid value '12112172932'. 'f
ile' with value '12112172932' not found"}]},"help_url":"http:\/\/developers.box.
com\/docs\/#errors","message":"Not Found","request_id":"96732655652a00428772a7"}

404 ProtocolErr
{"type":"error","status":404,"code":"not_found","context_info":{"errors":[{"reas
on":"invalid_parameter","name":"parent","message":"Invalid value 'dadadasdas'. '
parent' with value 'dadadasdas' not found"}]},"help_url":"http:\/\/developers.bo

x.com\/docs\/#errors","message":"Not Found","request_id":"1714797320529ff413a832
c"}

405
{"type":"error","status":405,"code":"method_not_allowed","help_url":"http:\/\/de
velopers.box.com\/docs\/#errors","message":"Method Not Allowed","request_id":"11
01021749529ff977c2e7a"}

201
{"type":"file","id":"12114823668","sequence_id":"0","etag":"0","sha1":"d62c3c241
1e8a9ee54080281ec94625f3c79fd3a","name":"test3.txt","description":"","size":18,"
path_collection":{"total_count":2,"entries":[{"type":"folder","id":"0","sequence
_id":null,"etag":null,"name":"All Files"},{"type":"folder","id":"1356832596","se
quence_id":"0","etag":"0","name":"test3"}]},"created_at":"2013-12-04T23:36:30-08
:00","modified_at":"2013-12-04T23:36:30-08:00","trashed_at":null,"purged_at":nul
l,"content_created_at":"2013-12-04T19:47:03-08:00","content_modified_at":"2013-1
2-04T19:47:04-08:00","created_by":{"type":"user","id":"206491652","name":"Fractu
s My","login":"MyFractus@163.com"},"modified_by":{"type":"user","id":"206491652"
,"name":"Fractus My","login":"MyFractus@163.com"},"owned_by":{"type":"user","id"
:"206491652","name":"Fractus My","login":"MyFractus@163.com"},"shared_link":null
,"parent":{"type":"folder","id":"1356832596","sequence_id":"0","etag":"0","name"
:"test3"},"item_status":"active"}

{"type":"folder","id":"1356810226","sequence_id":"0","etag":"0","name":"xxx","cr
eated_at":"2013-12-04T19:34:04-08:00","modified_at":"2013-12-04T23:36:33-08:00",
"description":"","size":0,"path_collection":{"total_count":1,"entries":[{"type":
"folder","id":"0","sequence_id":null,"etag":null,"name":"All Files"}]},"created_
by":{"type":"user","id":"206491652","name":"Fractus My","login":"MyFractus@163.c
om"},"modified_by":{"type":"user","id":"206491652","name":"Fractus My","login":"
MyFractus@163.com"},"trashed_at":null,"purged_at":null,"content_created_at":"201
3-12-04T19:34:04-08:00","content_modified_at":"2013-12-04T23:36:33-08:00","owned
_by":{"type":"user","id":"206491652","name":"Fractus My","login":"MyFractus@163.
com"},"shared_link":null,"folder_upload_email":null,"parent":{"type":"folder","i
d":"0","sequence_id":null,"etag":null,"name":"All Files"},"item_status":"active"
,"item_collection":{"total_count":0,"entries":[],"offset":0,"limit":100,"order":
[{"by":"type","direction":"ASC"},{"by":"name","direction":"ASC"}]}}

404 null

404 null

409
{"type":"error","status":409,"code":"item_name_in_use","context_info":{"conflict
s":{"type":"file","id":"12114712854","sequence_id":"0","etag":"0","sha1":"d62c3c
2411e8a9ee54080281ec94625f3c79fd3a","name":"test3.txt"}},"help_url":"http:\/\/de
velopers.box.com\/docs\/#errors","message":"Item with the same name already exis
ts","request_id":"105552500252a02d3d023f1"}

Вам также может понравиться