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

Method DeleteCropTag

work/externalcontact/tag.go:162–177  ·  view source on GitHub ↗

DeleteCropTag 删除企业客户标签 @see https://developer.work.weixin.qq.com/document/path/92117

(req DeleteCropTagRequest)

Source from the content-addressed store, hash-verified

160// DeleteCropTag 删除企业客户标签
161// @see https://developer.work.weixin.qq.com/document/path/92117
162func (r *Client) DeleteCropTag(req DeleteCropTagRequest) error {
163 accessToken, err := r.GetAccessToken()
164 if err != nil {
165 return err
166 }
167 var response []byte
168 jsonData, err := json.Marshal(req)
169 if err != nil {
170 return err
171 }
172 response, err = util.HTTPPost(fmt.Sprintf("%s?access_token=%v", delCropTagURL, accessToken), string(jsonData))
173 if err != nil {
174 return err
175 }
176 return util.DecodeWithCommonError(response, "DeleteCropTag")
177}
178
179// MarkTagRequest 给客户打标签请求
180// 相关文档地址:https://developer.work.weixin.qq.com/document/path/92118

Callers

nothing calls this directly

Calls 3

HTTPPostFunction · 0.92
DecodeWithCommonErrorFunction · 0.92
GetAccessTokenMethod · 0.65

Tested by

no test coverage detected