好看视频上传证书算法 正常
更多API推荐>>
好看视频上传证书头部authorization算法

接口地址: https://api.itfaba.com/hkAuth

返回格式: JSON

请求方式: POST

请求示例: https://api.itfaba.com/hkAuth?apiKey=testkey

直连路由服务地址1: https://api-1.itfaba.com/hkAuth?apiKey=xxx

直连路由服务地址2: https://api-2.itfaba.com/hkAuth?apiKey=xxx

注意:{apiKey}参数接口密钥登陆用户平台获取

请求参数说明:

名称 必填 类型 说明
ak string 好看视频请求上传密钥ak
sk string 好看视频请求上传密钥sk
token string 好看视频请求上传token
method string 请求方法GET,POST,PUT
url string 请求好看视频地址
contentLength string 上传文件的字节大小,不需则为空
contentType string 头部文件类型 不需要则为空
contentmd5 string 内容MD5加密 不需要则为空

返回参数说明:

名称 类型 说明

返回示例:

{
	"result": 1,
	"info": "成功",
	"data": {
		"authorization": "bce-auth-v1/cde4694d82a011ed94e38b3b931f8069/2022-12-23T11:45:55Z/1800/content-length;content-type;host;x-bce-date;x-bce-security-token/1d2803c01ea4112ee38edb923a977eb4887852160ec4cc300ea39ea66736940f",
		"host": "bj.bcebos.com",
		"content-length": "88854",
		"content-type": "image/jpeg",
		"x-bce-security-token": "ZjkyZmQ2YmQxZTQ3NDcyNjk0ZTg1ZjYyYjlkZjNjODB8AAAAAMMCAABVkQXRbpfWwPeaXIkIXM3KoGy9dtt2o8Et5ty3mluP06mpdRJGl7ulRe+YGTTKdv8ES4hSziNAVmE7FP9hCVevFYvC2Mn+ZJoaikJhRqJ70C81TD77HlWaGRtRq8vFlsHbenH+o9qFRYxiPAuxP\\/dM1J0ZEJXU5mStXc9M7Ljp94YYt3HJcCRdh\\/szyEs05+FYx5LPbQkMIrE+WkxUxJQxagLgSnuytkxywoANEZslRr4aW0eYvJem4J44IYczrzrUxH0sxPjk0qN5dEcRRWVMIn1pqP7rWZkeJoeJh212T1ty1xh+wJ3jE30P94lIXkzaOe60awBcx5IWV4KN6sW9A8UoFIrZx2+wZdJjIiJCBdduNtqvhMCAdHJc+Glo+P9UAq02s2u3X3vBtNhQaeqi7yUuzl7GZRjsK7x8i9490RmPM0H9sscKz2BCQh9784SphMsp7WG9iWHuaVgAn7O39TxpEMScuT5wchFi+062RHNCd4qulmhOyDiGhgfjxoSWLrwsLyLOyNyjilT6HNLU7upuqHSV2GWnj8e+wEytcQ==",
		"x-bce-date": "2022-12-23T11:45:55Z"
	}
}

请求参数设置:

参数名称 参数值


{
	"result": 1,
	"info": "成功",
	"data": {
		"authorization": "bce-auth-v1/cde4694d82a011ed94e38b3b931f8069/2022-12-23T11:45:55Z/1800/content-length;content-type;host;x-bce-date;x-bce-security-token/1d2803c01ea4112ee38edb923a977eb4887852160ec4cc300ea39ea66736940f",
		"host": "bj.bcebos.com",
		"content-length": "88854",
		"content-type": "image/jpeg",
		"x-bce-security-token": "ZjkyZmQ2YmQxZTQ3NDcyNjk0ZTg1ZjYyYjlkZjNjODB8AAAAAMMCAABVkQXRbpfWwPeaXIkIXM3KoGy9dtt2o8Et5ty3mluP06mpdRJGl7ulRe+YGTTKdv8ES4hSziNAVmE7FP9hCVevFYvC2Mn+ZJoaikJhRqJ70C81TD77HlWaGRtRq8vFlsHbenH+o9qFRYxiPAuxP\\/dM1J0ZEJXU5mStXc9M7Ljp94YYt3HJcCRdh\\/szyEs05+FYx5LPbQkMIrE+WkxUxJQxagLgSnuytkxywoANEZslRr4aW0eYvJem4J44IYczrzrUxH0sxPjk0qN5dEcRRWVMIn1pqP7rWZkeJoeJh212T1ty1xh+wJ3jE30P94lIXkzaOe60awBcx5IWV4KN6sW9A8UoFIrZx2+wZdJjIiJCBdduNtqvhMCAdHJc+Glo+P9UAq02s2u3X3vBtNhQaeqi7yUuzl7GZRjsK7x8i9490RmPM0H9sscKz2BCQh9784SphMsp7WG9iWHuaVgAn7O39TxpEMScuT5wchFi+062RHNCd4qulmhOyDiGhgfjxoSWLrwsLyLOyNyjilT6HNLU7upuqHSV2GWnj8e+wEytcQ==",
		"x-bce-date": "2022-12-23T11:45:55Z"
	}
}

错误码格式说明:

名称 类型 说明
code int 0:异常消息,1:正常,2:警告
result int 0:异常消息,1:正常

代码示例:

apiKey登录用户平台获取