ECJiaWiki:Api:captcha/image

来自ECJiaWiki
跳转至: 导航搜索

应用场景

 获取图形验证码

接口名称

 captcha/image

Header请求参数

字段名 变量名 必填 类型 示例值 描述 since deprecated
设备唯一ID device-udid String a46d663d675d4858ea7d0a21c2de06e9 设备的唯一编号 1.3.0
设备客户端类型 device-client String android,iphone,h5,weapp 设备类型的描述 1.3.0
产品编号 device-code String 6015 产品编号 1.3.0
API版本 api-version String 1.6 API接口版本号 1.3.0

举例如下

{
    "device-udid" : "a46d663d675d4858ea7d0a21c2de06e9",
    "device-client" : "weapp",
    "device-code " : "6015",
    "api-version" : "1.6",
}

请求参数

字段名 变量名 必填 类型 示例值 描述
token请求凭证 token 是(通过shop/token接口获取的) String d122e3c72332c5af12a71d77c9f1462f5901d276

举例如下

{
      "token" : "d122e3c72332c5af12a71d77c9f1462f5901d276"
}

返回参数

字段名 变量名 必填 类型 示例值 描述
返回状态码 status Json {"succeed" : 1} 返回请求接口后的数据,succeed为1代表成功,0则为失败,失败后则返回error_code(错误code)及error_desc(错误说明)
返回信息 data data字典 请求接口提供的返回信息
└ 图片base64加密数据 base64 string 图片base64加密数据

成功举例如下

{
    "data": {
        "base64": "iVBORw0KGgoAAAANSUhEUgAAAIIAAAAyCAIAAAAfq5TfAAALXElEQVR4nO2baVhTVxrH39wsrLJEAgRIZN93RVBQCoJSB6ultaVWO0WpjlOnzzy11tGxnWqXp4Pa6WKXcUBorVVwA6kbKBQtIgoCStjXQISwrwGy3MyHa6+XJCZgCKRP8/t0z8k55/65/3vvOe97DySpVAo65hpkrgXoANDZoCXobNAKdDZoBTobtAKdDVqBzgatQGeDVqCzQSvQ2aAV6GzQCnQ2aAU6G7QCykD3MLf6YVtNB7e2Y2RAsCtly1xLUpehvpGSnEpu9cOOpm7B8DhNj8pg0T1DnBY/66tvpDfX6hRD2hWdRCzvO7XdhG48V2rURCyS/Hw0v/hiBQA881Kwf4S7uZWpRCzpbOm5fbGirrTl1T2xzgEL5lqmAshhztHEsr2XnSV7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k/F4olbWfeIiUh144apw63pKDh9p7GizTPEydmfzXRk9PAGMg5fjogPjozX7KaVuUIiQVP2niFmXskU5J2ULe11nWQKmZjlnT0bMITjoqYHbV2tveMCobGZoVuQw3ym2WwKmGUkEjT/1O2b50rHhh/d+wbz9Nduj5T5BDvbNvwxEQnFrRxef9eQsZmhkx+b+AUCQ2eDVqClmyH/aOhs0Ap0NmgF/wey5pQYZDonagAAAABJRU5ErkJggg=="
    },
    "status": {
        "succeed": 1
    }
}

失败举例如下

注:错误编码