2012-06-28 3 views
0

PHP를 통해 Dropbox에 Desire2Learn Learning Suite로 파일을 제출하려고합니다. 파일을 포함하도록 문서화 된 필드 이름이 표시되지 않습니다. 내가 놓친 게 있니?Desire2Learn Dropbox에 파일 제출

답변

1

아니요, 누락 된 것이 없습니다. 드롭 박스 제출을위한 파일의 필드 이름은 없습니다. 제출 파일을 게시 할 때 이름 속성을 빈 문자열로 두십시오.

POST http://{domain_name}/d2l/api/le/{version}/{org_unit}/dropbox/folders/{folder_id}/submissions/mysubmissions/?x_a={app_id}&x_b={token_id}&x_d={token_sig}&x_c={app_sig}&x_t={time} HTTP/1.1 
Content-Type: multipart/mixed; boundary=8cf23611201b7ae 
Host: {domain_name} 
Content-Length: 775926 

--8cf23611201b7ae 
Content-Type: application/json 

{"Text":"Here you go","HTML":null} 
--8cf23611201b7ae 
Content-Disposition: form-data; name=""; filename="Jellyfish.jpg" 
Content-Type: image/jpeg 

{binary data} 
--8cf23611201b7ae-- 
: 여기

는 제출 요청이 어떻게 보일지입니다
관련 문제