12345678910111213141516171819202122232425262728293031323334 |
-
-
- package authorization
-
- import (
- "gitee.com/yansen_zh/wxcomponent/config"
- "gitee.com/yansen_zh/wxcomponent/utils/request"
- )
-
- const (
- apiStartPushTicket = "https://apies.weixin.qq.com/cgi-bin/component/api_start_push_ticket"
- )
-
-
- func StartPushTicket() error {
- data := map[string]string{
- "component_appid": config.GetAppID(),
- "component_secret": config.GetAppSecret(),
- }
-
- _, err := request.PostJSON(apiStartPushTicket, nil, data)
-
- return err
- }
|