文档
测试

微信登录-获取code跳转url

POST
http://crm.houcaller.com/htest/openapi/v1/getRedirectForWxCode

接口描述

获取微信code跳转url,跳转的url会带上微信认证code信息

请求头

参数名
类型
描述
必填
Content-Type
String
application/json
必填

请求参数

参数名
类型
描述
必填
channel
String
渠道名
必填
timestamp
String
时间戳
必填
param
String
参数(对json字符串进行DES加密)
必填
scope
String
微信认证scope(可选参数:snsapi_userinfo;snsapi_base)
必填
url
String
跳转url(会带上code信息)
必填

响应参数

参数名
类型
描述
必填
code
Integer
响应code
必填
msg
String
响应说明
必填
data
Object
响应参数
必填
redirect
String
访问url
必填

说明 / 示例

请求示例: ``` { "param": "7E3F90B13A009A9D52190A8B4A1800ED1C653E1B40A8BB80894E80D020FAF5C1A7A274B549613494F7D2A71BAAF05DE4E74AAFF1FA25FB38B155528E1294617126D242D152AF607DC65A709972BEAF06", "channel": "hkl-test", "timestamp": "1571301963456" } ``` param明文示例: ``` { "scope": "snsapi_base", "url": "http://crm.houcaller.com/hb/hbshop/webType?t=1" } ``` 响应示例: ``` { "msg": "操作成功", "code": 0, "data": { "redirect": "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx65cefa01e6ed381c&redirect_uri=http%3A%2F%2Fcrm.houcaller.com%2Fhb%2Fhbshop%2FwebType%3Ft%3D1&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect" } } ```