MCPcopy Create free account

hub / github.com/chanxuehong/wechat / functions

Functions669 in github.com/chanxuehong/wechat

FunctionAuth
Auth 检验授权凭证 access_token 是否有效. accessToken: 网页授权接口调用凭证 openId: 用户的唯一标识 httpClient: 如果不指定则默认为 util.DefaultHttpClient
mp/oauth2/oauth2.go:32
FunctionAuthCodeToOpenId2
AuthCodeToOpenId2 授权码查询openid.
mch/tools/authcodetoopenid.go:35
FunctionAuthCodeURL
AuthCodeURL 生成网页授权地址. appId: 公众号的唯一标识 redirectURI: 授权后重定向的回调链接地址 scope: 应用授权作用域 state: 重定向后会带上 state 参数, 开发者可以填写 a-zA-Z0-9 的参数值
open/oauth2/oauth2.go:16
FunctionAuthCodeURL
AuthCodeURL 生成网页授权地址. appId: 公众号的唯一标识 redirectURI: 授权后重定向的回调链接地址 scope: 应用授权作用域 state: 重定向后会带上 state 参数, 开发者可以填写 a-zA-Z0-9 的参数值
mp/oauth2/oauth2.go:19
FunctionAuthCodeURL
AuthCodeURL 生成网页授权地址. appId: 公众号的唯一标识 componentAppId: 服务方的appid,在申请创建公众号服务成功后,可在公众号服务详情页找到 redirectURI: 授权后重定向的回调链接地址 scope:
mp/oauth2/component/oauth2.go:15
FunctionBatchGet
批量获取用户基本信息 注意: 需要对返回的 UserInfoList 的每个 UserInfo.IsSubscriber 做判断
mp/user/user.go:84
FunctionBatchGet
批量查询卡列表.
mp/card/card.go:72
FunctionBatchMoveToGroup
BatchMoveToGroup 批量移动用户分组.
mp/user/group.go:54
FunctionBatchTag
BatchTag 批量打标签.
mp/user/tag/tag.go:143
FunctionBatchUntag
BatchUntag 批量取消标签.
mp/user/tag/tag.go:169
FunctionBenchmarkClassicalSign
(b *testing.B)
mch/core/sign_test.go:82
FunctionBenchmarkMsgSign
(b *testing.B)
internal/util/sign_test.go:49
FunctionBenchmarkMsgSign2
(b *testing.B)
internal/util/sign_test.go:67
FunctionBenchmarkMsgSign2_2
(b *testing.B)
internal/util/sign_test.go:99
FunctionBenchmarkMsgSign_2
(b *testing.B)
internal/util/sign_test.go:85
FunctionBenchmarkSign
(b *testing.B)
mch/core/sign_test.go:54
FunctionBenchmarkStdXmlUnmarshal
(b *testing.B)
mp/core/server_test.go:44
FunctionBenchmarkStringsToLower
(b *testing.B)
internal/util/to_lower_test.go:32
FunctionBenchmarkToLower
(b *testing.B)
internal/util/to_lower_test.go:23
FunctionBenchmarkWXConfigSign
(b *testing.B)
mp/jssdk/sign_test.go:55
FunctionBenchmarkWXConfigSign2
(b *testing.B)
mp/jssdk/sign_test.go:68
FunctionBenchmarkWXConfigSign3
(b *testing.B)
mp/jssdk/sign_test.go:81
FunctionBenchmarkXmlUnmarshal
(b *testing.B)
mp/core/server_test.go:30
FunctionBindLocation
配置设备与门店的关联关系
mp/shakearound/device/bindlocation.go:8
FunctionBindPage
(clt *core.Client, para *BindPageParameters)
mp/shakearound/device/bindpage.go:14
FunctionBool
Bool is a helper routine that allocates a new bool value to store v and returns a pointer to it.
internal/util/helper.go:5
FunctionCategoryList
CategoryList 获取门店类目表.
mp/poi/category.go:8
FunctionCheckin
更新飞机票信息接口
mp/card/boardingpass/checkin.go:20
FunctionClose
Close 关闭会话. openId: 必须, 客户openid kfAccount: 必须, 完整客服账号,格式为:账号前缀@公众号微信号 text: 可选, 附加信息,文本会展示在客服人员的多客服客户端
mp/dkf/session/sesson.go:43
FunctionCloseOrder2
CloseOrder2 关闭订单.
mch/pay/closeorder.go:25
FunctionConsume
核销Code接口.
mp/card/code/consume.go:8
FunctionCreate
Create 创建会话. openId: 必须, 客户openid kfAccount: 必须, 完整客服账号,格式为:账号前缀@公众号微信号 text: 可选, 附加信息,文本会展示在客服人员的多客服客户端
mp/dkf/session/sesson.go:15
FunctionCreate
Create 创建分组.
mp/user/group/group.go:15
FunctionCreate
(clt *core.Client, name string)
mp/user/tag/tag.go:25
FunctionCreate
创建自定义菜单.
mp/menu/api.go:8
FunctionCreate
创建卡券.
mp/card/card.go:8
FunctionCreate
卡券投放, 创建二维码接口.
mp/card/qrcode/create.go:29
FunctionCreatePermQrcode
CreatePermQrcode 创建永久二维码 sceneId: 场景值ID
mp/qrcode/create.go:90
FunctionCreateStrScenePermQrcode
CreateStrScenePermQrcode 创建永久二维码 sceneStr: 场景值ID(字符串形式的ID), 字符串类型, 长度限制为1到64
mp/qrcode/create.go:122
FunctionCreateStrSceneTempQrcode
CreateStrSceneTempQrcode 创建临时二维码. sceneStr: 场景值ID(字符串形式的ID), 字符串类型, 长度限制为1到64 expireSeconds: 二维码有效时间, 以秒为单位
mp/qrcode/create.go:56
FunctionCreateTempQrcode
CreateTempQrcode 创建临时二维码. sceneId: 场景值ID, 为32位非0整型 expireSeconds: 二维码有效时间, 以秒为单位
mp/qrcode/create.go:21
FunctionDebugPrintError
(errcode int64, errmsg string, token string)
internal/debug/api/retry/debug.go:10
FunctionDebugPrintFallthrough
(token string)
internal/debug/api/retry/debug.go:20
FunctionDebugPrintGetRequest
(url string)
internal/debug/api/debug.go:14
FunctionDebugPrintGetRequest
(url string)
internal/debug/mch/api/release.go:12
FunctionDebugPrintGetRequest
(url string)
internal/debug/mch/api/debug.go:15
FunctionDebugPrintNewToken
(token string)
internal/debug/api/retry/debug.go:16
FunctionDebugPrintPlainRequestMessage
(msg []byte)
internal/debug/callback/debug.go:17
FunctionDebugPrintPostJSONRequest
(url string, body []byte)
internal/debug/api/debug.go:18
FunctionDebugPrintPostMultipartRequest
(url string, body []byte)
internal/debug/api/debug.go:29
FunctionDebugPrintPostXMLRequest
(url string, body []byte)
internal/debug/mch/api/debug.go:19
FunctionDebugPrintRequest
(r *http.Request)
internal/debug/mch/callback/debug.go:15
FunctionDebugPrintRequest
(r *http.Request)
internal/debug/callback/debug.go:13
FunctionDebugPrintRequestMessage
(msg []byte)
internal/debug/mch/callback/debug.go:19
FunctionDecodeJSONHttpResponse
(r io.Reader, v interface{})
internal/debug/api/debug.go:33
FunctionDecodeXMLHttpResponse
(r io.Reader)
internal/debug/mch/api/debug.go:25
FunctionDecrypt
Code解码接口
mp/card/code/decrypt.go:8
MethodDefaultEventHandle
DefaultEventHandle 设置 handlers 以处理没有匹配到具体类型的 HandlerChain 的事件.
mp/core/handler.go:247
MethodDefaultMsgHandle
DefaultMsgHandle 设置 handlers 以处理没有匹配到具体类型的 HandlerChain 的消息.
mp/core/handler.go:215
FunctionDelete
Delete 删除门店.
mp/poi/del.go:8
FunctionDelete
Delete 删除客服账号
mp/dkf/account/account.go:84
FunctionDelete
Delete 删除分组.
mp/user/group/group.go:42
FunctionDelete
Delete 删除Tag.
mp/user/tag/tag.go:121
FunctionDelete
删除设备
mp/bizwifi/device/delete.go:8
FunctionDelete
删除自定义菜单.
mp/menu/api.go:44
FunctionDelete
删除卡券
mp/card/card.go:156
FunctionDelete
删除永久素材.
mp/material/material.go:10
FunctionDelete
Delete 删除群发.
mp/message/mass/mass.go:17
FunctionDelete
删除页面
mp/shakearound/page/delete.go:8
FunctionDeleteConditionalMenu
删除个性化菜单.
mp/menu/api_conditional.go:27
FunctionDeletePrivateTemplate
删除模板.
mp/message/template/template.go:120
FunctionDevice
以设备为维度的数据统计接口
mp/shakearound/statistics/device.go:9
FunctionDownload
Download 下载多媒体到文件. 请注意, 视频文件不支持下载
mp/media/download.go:20
FunctionDownload
Download 下载多媒体到文件. 对于视频素材, 先通过 GetVideo 得到 Video 信息, 然后通过 Video.DownloadURL 来下载
mp/material/download.go:22
FunctionDownload
Download 通过ticket换取二维码, 写入到 filepath 路径的文件. 如果 clt == nil 则默认用 util.DefaultHttpClient.
mp/qrcode/download.go:22
FunctionDownloadBill
下载对账单到到文件.
mch/pay/downloadbill.go:36
FunctionDownloadBillToWriter
下载对账单到 io.Writer.
mch/pay/downloadbill.go:55
FunctionEditAddressSign
EditAddressSign 收货地址共享接口签名
mch/core/sign.go:102
FunctionEncodeXMLResponseMessage
(w io.Writer, msg map[string]string)
internal/debug/mch/callback/release.go:17
FunctionEncodeXMLResponseMessage
(w io.Writer, msg map[string]string)
internal/debug/mch/callback/debug.go:23
MethodError
()
mch/core/error.go:42
MethodEventHandle
EventHandle 设置 handlers 以处理特定类型的事件.
mp/core/handler.go:311
FunctionExampleServer_ServeHTTP
()
mp/core/example_test.go:9
MethodExchangeToken
ExchangeToken 通过 code 换取网页授权 access_token. NOTE: 返回的 token == clt.Token
oauth2/api.go:16
MethodExchangeTokenURL
(code string)
open/oauth2/endpoint.go:16
MethodExchangeTokenURL
(code string)
mp/oauth2/endpoint.go:24
MethodExchangeTokenURL
(code string)
mp/oauth2/component/endpoint.go:27
FunctionFloat32
Float32 is a helper routine that allocates a new float32 value to store v and returns a pointer to it.
internal/util/helper.go:29
FunctionFloat32
Float32 is a helper routine that allocates a new float32 value to store v and returns a pointer to it.
util/helper.go:29
FunctionFloat64
Float64 is a helper routine that allocates a new float64 value to store v and returns a pointer to it.
internal/util/helper.go:35
FunctionFloat64
Float64 is a helper routine that allocates a new float64 value to store v and returns a pointer to it.
util/helper.go:35
FunctionGet
Get 查询门店信息.
mp/poi/get.go:35
FunctionGet
Get 获取客户的会话
mp/dkf/session/sesson.go:73
FunctionGet
Get 获取用户基本信息. 注意: 1. 需要判断返回的 UserInfo.IsSubscriber 是等于 1 还是 0 2. lang 指定返回国家地区语言版本,zh_CN 简体,zh_TW 繁体,en 英语, 默认为 zh_CN
mp/user/user.go:50
FunctionGet
(clt *core.Client, shopId int64)
mp/bizwifi/homepage/get.go:13
FunctionGet
获取物料二维码 shopId: 门店ID imgId: 物料样式编号: 0-二维码,可用于自由设计宣传材料; 1-桌贴(二维码),100mm×100mm(宽×高),可直接张贴
mp/bizwifi/qrcode/get.go:13
FunctionGet
查询自定义菜单.
mp/menu/api.go:23
FunctionGet
查看卡券详情.
mp/card/card.go:34
FunctionGet
拉取会员信息(积分查询)接口
mp/card/membercard/userinfo/get.go:21
FunctionGet
查询code.
mp/card/code/get.go:8
← previousnext →201–300 of 669, ranked by callers