文档
测试

提交授权

POST
http://hongdou.erkaisi.cn:88/api/Order/CreateOrder

请求头

参数名
类型
描述
必填
Authorization
string
登录成功后返回的token
必填

请求参数

参数名
类型
描述
必填
type
int
订单类型(0=网页GetA8Key授权 ,3=扫码授权 ,5=app一键授权 99=app扫码通道)
必填
projectid
string
项目id (项目列表的编号ID,如不清楚可咨询客服)
必填
url
string
授权连接(需先UTF-8编码后提交),type=5 无需填写url
必填

成功返回

参数名
类型
描述
必填
fullurl
string
授权后返回的fullurl连接 为后续取需要的cookie或 code参数用
必填
id
string
订单ID(补扫 二次授权时 需要这个订单ID)
必填
oid
string
订单号
必填
wxid
string
授权微信的WXID
必填
nickname
string
授权微信的昵称
必填

失败返回

参数名
类型
描述
必填
status
int
错误码,200正确,其他表示有错误,错误信息会通过msg返回
必填
msg
string
错误提示信息。这是一个可选参数,可选参数用灰色显示
必填

说明 / 示例

# **授权类型说明** ## ==GetA8Key网页授权(h5网页这些)== url 参数示例: https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx1b66d52f224636cc&redirect_uri=https://api.golinkcn.com/wx/auth-return&response_type=code&scope=snsapi_userinfo&state=1262fd07bcfd57bccb9e98ea74dfc0ac#wechat_redirect ## ==扫码授权(PC网页或App的扫码授权) 注意:提交的url参数就是二维码解析出来的连接== url 参数示例: https://open.weixin.qq.com/connect/confirm?uuid=XXXXXXXXX # 示例代码 head = “Authorization: ” + token url = “http://hongdou.erkaisi.cn:88/api/Order/CreateOrder” data = “type=” + 到文本 (type) + “&projectid=” + 项目id + “&url=” + 编码_URL编码 (授权连接, 真, 真) str = 编码_URL解码 (到文本 (网页_访问_对象 (url, 1, data, , , head, , , , , , , , , , , , , )), 真)