Slide 7
Slide 7 text
© 2018 CData Software Japan, LLC | www.cdata.com/jp
API 仕様が独自フォーマットでつらみ・・・
POST /access/ HTTP/1.1
Host: webapi.smaregi.jp
Content-Type: application/x-www-form-urlencoded
Accept: application/json
X_contract_id: XXXXX
X_access_token: XXXXX
proc_name=category_ref¶ms=
{
"fileds": ["categoryId","categoryName",],
"conditions": [{"categoryId =": "111"}],
"order": ["categoryId asc"],
"limit": 100,
"page": 1,
"table_name": "Category"
}
・「application/x-www-form-
urlencoded」と
「application/json」の合せ技
・シンタックスハイライトやバリデーショ
ン泣かせ
・conditionsもちょっと独特