api.go 1.5KB

12345678910111213141516171819202122232425262728293031323334
  1. package api
  2. // BindComponentByPC 构建PC端授权链接
  3. const BindComponentByPC = "https://mp.weixin.qq.com/cgi-bin/componentloginpage"
  4. // BindComponentByH5 构建移动端授权链接
  5. const BindComponentByH5 = "https://mp.weixin.qq.com/safe/bindcomponent"
  6. // StartPushTicket 启动票据推送服务
  7. const StartPushTicket = "https://api.weixin.qq.com/cgi-bin/component/api_start_push_ticket"
  8. // ComponentToken 获取令牌
  9. const ComponentToken = "https://api.weixin.qq.com/cgi-bin/component/api_component_token"
  10. // CreatePreAuthCode 获取预授权码
  11. const CreatePreAuthCode = "https://api.weixin.qq.com/cgi-bin/component/api_create_preauthcode"
  12. // QueryAuth 获取授权信息
  13. const QueryAuth = "https://api.weixin.qq.com/cgi-bin/component/api_query_auth"
  14. // AuthorizerToken 获取/刷新接口调用令牌
  15. const AuthorizerToken = "https://api.weixin.qq.com/cgi-bin/component/api_authorizer_token"
  16. // GetAuthorizerInfo 获取授权帐号信息
  17. const GetAuthorizerInfo = "https://api.weixin.qq.com/cgi-bin/component/api_get_authorizer_info"
  18. // GetAuthorizerList 拉取所有已授权的帐号信息
  19. const GetAuthorizerList = "https://api.weixin.qq.com/cgi-bin/component/api_get_authorizer_list"
  20. // GetAuthorizerOption 获取授权方选项信息
  21. const GetAuthorizerOption = "https://api.weixin.qq.com/cgi-bin/component/api_get_authorizer_option"
  22. // SetAuthorizerOption 设置授权方选项信息
  23. const SetAuthorizerOption = "https://api.weixin.qq.com/cgi-bin/component/api_set_authorizer_option"