API說明
範例
curl -X GET \
-H " X-Ftcsys-key: {KEY}" \
-H " X-Ftc-Authorization: {token}" \
-H " X- Accept-Language: {language}" \
-H "Content-Type: application/json" \
https:
回傳範例
< HTTP/1.1 200 OK
< Content-Type: application/json; charset=UTF-8
{
"result": {
"uid": "000e9016e6f94540b06b12e7e3cccc33",
"name": "tester",
"reg_type": 1,
"gender": 1,
"birthday": 1419702400000,
"mobile": "0911111111",
"email": "[email protected]",
"email_validation_status": 1,
"mobile_validation_status": 1,
"agreement": 1,
"epaper_movie": 1,
"sms_movie": 1,
"country": "台灣",(<--6/7上線這個欄位先不用傳)
"city": "01",(<--6/7上線這個欄位先不用傳)
"zip_code": "231",(<--6/7上線這個欄位先不用傳)
"address": "寶強路6-3號5樓",(<--6/7上線這個欄位先不用傳)
"photo_url": "http://img.ezding.com.tw/photos/beta_user_avatar/3b04c105c1e4483c9de6a0b961064a6a/3b04c105c1e4483c9de6a0b961064a6a.jpg",
"account_status": 1
},
"code": 200,
"status": "success"
}
回傳錯誤 - 使用者帳號不存在
< HTTP/1.1 404 Not Found
< Content-Type: application/json; charset=UTF-8
{
"result": "",
"code": 404.001,
"status": "failure"
}
回傳json的參數