1
A preview of the new Dropbox API v2 (blogs.dropbox.com)
cloudtu 積分 2 編輯於

Overall, we’ve simplified our use of HTTP. For example, most endpoints always use HTTP POST, including those that return structured data. Requests take JSON in the body and responses return JSON in the body.

未來新版的 dropbox api 發送資料要先包成 json 了,現行版本的發送資料是在 request 裡加 request parameter。這改動不小呀~~~

IngramChen 積分 3

以 restful 的精神,取資料不能用 POST。但實務上 GET + request parameter 的作法其實很麻煩 (都要特別 encode,或是 comma separate... 之類處理)。

改成全程都用 json body 就簡單多了。我自己用的 API 多半會這樣設計,給別人用的才會為了符合 restful ,用 GET