MCPcopy
hub / github.com/silenceper/wechat / GetPermList

Method GetPermList

work/addresslist/linkedcorp.go:31–46  ·  view source on GitHub ↗

GetPermList 获取应用的可见范围 see https://developer.work.weixin.qq.com/document/path/93172

()

Source from the content-addressed store, hash-verified

29// GetPermList 获取应用的可见范围
30// see https://developer.work.weixin.qq.com/document/path/93172
31func (r *Client) GetPermList() (*GetPermListResponse, error) {
32 var (
33 accessToken string
34 err error
35 )
36 if accessToken, err = r.GetAccessToken(); err != nil {
37 return nil, err
38 }
39 var response []byte
40 if response, err = util.HTTPPost(fmt.Sprintf(getPermListURL, accessToken), ""); err != nil {
41 return nil, err
42 }
43 result := &GetPermListResponse{}
44 err = util.DecodeWithError(response, result, "GetPermList")
45 return result, err
46}
47
48// GetLinkedCorpUserRequest 获取互联企业成员详细信息请求
49type GetLinkedCorpUserRequest struct {

Callers

nothing calls this directly

Calls 3

HTTPPostFunction · 0.92
DecodeWithErrorFunction · 0.92
GetAccessTokenMethod · 0.65

Tested by

no test coverage detected