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

Method GetDayData

work/checkin/record.go:190–205  ·  view source on GitHub ↗

GetDayData 获取打卡日报数据 @see https://developer.work.weixin.qq.com/document/path/96498

(req *GetCheckinDataRequest)

Source from the content-addressed store, hash-verified

188// GetDayData 获取打卡日报数据
189// @see https://developer.work.weixin.qq.com/document/path/96498
190func (r *Client) GetDayData(req *GetCheckinDataRequest) (result *GetDayDataResponse, err error) {
191 var (
192 response []byte
193 accessToken string
194 )
195 if accessToken, err = r.GetAccessToken(); err != nil {
196 return
197 }
198 if response, err = util.PostJSON(fmt.Sprintf(getDayDataURL, accessToken), req); err != nil {
199 return
200 }
201
202 result = new(GetDayDataResponse)
203 err = util.DecodeWithError(response, result, "GetDayData")
204 return
205}
206
207type (
208 // GetMonthDataResponse 获取打卡月报数据

Callers

nothing calls this directly

Calls 3

PostJSONFunction · 0.92
DecodeWithErrorFunction · 0.92
GetAccessTokenMethod · 0.65

Tested by

no test coverage detected