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

Method GetMonthData

work/checkin/record.go:265–280  ·  view source on GitHub ↗

GetMonthData 获取打卡月报数据 @see https://developer.work.weixin.qq.com/document/path/96499

(req *GetCheckinDataRequest)

Source from the content-addressed store, hash-verified

263// GetMonthData 获取打卡月报数据
264// @see https://developer.work.weixin.qq.com/document/path/96499
265func (r *Client) GetMonthData(req *GetCheckinDataRequest) (result *GetMonthDataResponse, err error) {
266 var (
267 response []byte
268 accessToken string
269 )
270 if accessToken, err = r.GetAccessToken(); err != nil {
271 return
272 }
273 if response, err = util.PostJSON(fmt.Sprintf(getMonthDataURL, accessToken), req); err != nil {
274 return
275 }
276
277 result = new(GetMonthDataResponse)
278 err = util.DecodeWithError(response, result, "GetMonthData")
279 return
280}
281
282// GetCorpOptionResponse 获取企业所有打卡规则响应
283type GetCorpOptionResponse struct {

Callers

nothing calls this directly

Calls 3

PostJSONFunction · 0.92
DecodeWithErrorFunction · 0.92
GetAccessTokenMethod · 0.65

Tested by

no test coverage detected