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

Method AddRecord

work/checkin/checkin.go:430–443  ·  view source on GitHub ↗

AddRecord 添加打卡记录 see https://developer.work.weixin.qq.com/document/path/99647

(req *AddRecordRequest)

Source from the content-addressed store, hash-verified

428// AddRecord 添加打卡记录
429// see https://developer.work.weixin.qq.com/document/path/99647
430func (r *Client) AddRecord(req *AddRecordRequest) error {
431 var (
432 accessToken string
433 err error
434 )
435 if accessToken, err = r.GetAccessToken(); err != nil {
436 return err
437 }
438 var response []byte
439 if response, err = util.PostJSON(fmt.Sprintf(addRecordURL, accessToken), req); err != nil {
440 return err
441 }
442 return util.DecodeWithCommonError(response, "AddRecord")
443}

Callers

nothing calls this directly

Calls 3

PostJSONFunction · 0.92
DecodeWithCommonErrorFunction · 0.92
GetAccessTokenMethod · 0.65

Tested by

no test coverage detected