司机评分

说明

  1. 只有订单结束后,才能进行评价

地址URL

/v1/common/Comment

支持格式

Json或普通form

HTTP请求方式

POST

是否需要登录

是 关于登录授权,参见 如何登录授权

访问授权限制

暂无

请求参数

名称 类型 必选 描述
client_id string yes 申请应用时分配的AppKey
access_token string yes 授权后的access token
order_id string yes 订单id
level string yes 司机评分 星级(1-5)
comment string no 司机评价最多40个汉字
timestamp int yes 当前时间戳
sign string yes 签名

注意事项

sign签名请参照 签名算法

请求示例

方式一:
curl -X POST  -H 'Content-Type: application/json' \
-d '{
    "timestamp": "2867831074",
    "access_token": "test",
    "client_id": "testclient",
    "sign": "test",
    "level": "5",
    "order_id": "7547523705968545818"
}' https://api.es.xiaojukeji.com/v1/common/Comment

方式二:
curl -i -X POST -H "Content-type:application/x-www-form-urlencoded" \
-d "client_id=testclient" \
-d "access_token=test" \
-d "timestamp=2867831074" \
-d "sign=test" \
-d "level=5" \
-d "order_id=7547523705968545818" \
https://api.es.xiaojukeji.com/v1/common/Comment

返回参数说明

返回值字段 字段类型 字段说明
errno int 错误码
errmsg string 错误信息
data object

返回示例

{
"errno": 0,
"errmsg": "SUCCESS",
"data":null
}

results matching ""

    No results matching ""