member_admin

package
v1.0.0-beta.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package member_admin 成员管理

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindTester

func BindTester(ctx *miniprogram.Miniprogram, payload []byte) (resp []byte, err error)

绑定微信用户为体验者

第三方平台在帮助旗下授权的小程序提交代码审核之前,可先让小程序运营者体验,体验之前需要将运营者的个人微信号添加到该小程序的体验者名单中。使用过程中如遇到问题,可在开放平台服务商专区发帖交流。

See: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/Mini_Programs/Admin.html

POST https://api.weixin.qq.com/wxa/bind_tester?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/miniprogram"
	"github.com/fastwego/miniprogram/wxopen/apis/member_admin"
)

func main() {
	var ctx *miniprogram.Miniprogram

	payload := []byte("{}")
	resp, err := member_admin.BindTester(ctx, payload)

	fmt.Println(resp, err)
}

func MemberAuth

func MemberAuth(ctx *miniprogram.Miniprogram, payload []byte) (resp []byte, err error)

获取体验者列表

通过本接口可以获取小程序所有已绑定的体验者列表。使用过程中如遇到问题,可在开放平台服务商专区发帖交流。

See: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/Mini_Programs/memberauth.html

POST https://api.weixin.qq.com/wxa/memberauth?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/miniprogram"
	"github.com/fastwego/miniprogram/wxopen/apis/member_admin"
)

func main() {
	var ctx *miniprogram.Miniprogram

	payload := []byte("{}")
	resp, err := member_admin.MemberAuth(ctx, payload)

	fmt.Println(resp, err)
}

func UnbindTester

func UnbindTester(ctx *miniprogram.Miniprogram, payload []byte) (resp []byte, err error)

解除绑定体验者

调用本接口可以将特定微信用户从小程序的体验者列表中解绑。使用过程中如遇到问题,可在开放平台服务商专区发帖交流。

See: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/Mini_Programs/unbind_tester.html

POST https://api.weixin.qq.com/wxa/unbind_tester?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/miniprogram"
	"github.com/fastwego/miniprogram/wxopen/apis/member_admin"
)

func main() {
	var ctx *miniprogram.Miniprogram

	payload := []byte("{}")
	resp, err := member_admin.UnbindTester(ctx, payload)

	fmt.Println(resp, err)
}

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL