Versions in this module Expand all Collapse all v3 v3.0.22 May 16, 2023 v3.0.21 May 16, 2023 Changes in this version + var FeishuBaseUrl = "https://open.feishu.cn" + var LarkBaseUrl = "https://open.larksuite.com" + type Client struct + Acs *larkacs.AcsService + Admin *larkadmin.AdminService + Application *larkapplication.ApplicationService + Approval *larkapproval.ApprovalService + Attendance *larkattendance.AttendanceService + Auth *larkauth.AuthService + Authen *larkauthen.AuthenService + Baike *larkbaike.BaikeService + Bitable *larkbitable.BitableService + Block *larkblock.BlockService + Calendar *larkcalendar.CalendarService + Contact *larkcontact.ContactService + Corehr *larkcorehr.CorehrService + Docx *larkdocx.DocxService + Drive *larkdrive.DriveService + Ehr *larkehr.EhrService + Event *larkevent.EventService + Ext *larkext.ExtService + GrayTestOpenSg *larkgray_test_open_sg.GrayTestOpenSgService + Helpdesk *larkhelpdesk.HelpdeskService + Hire *larkhire.HireService + HumanAuthentication *larkhuman_authentication.HumanAuthenticationService + Im *larkim.ImService + Mail *larkmail.MailService + Okr *larkokr.OkrService + OpticalCharRecognition *larkoptical_char_recognition.OpticalCharRecognitionService + Passport *larkpassport.PassportService + Search *larksearch.SearchService + Sheets *larksheets.SheetsService + SpeechToText *larkspeech_to_text.SpeechToTextService + Task *larktask.TaskService + Tenant *larktenant.TenantService + Translation *larktranslation.TranslationService + Vc *larkvc.VcService + Wiki *larkwiki.WikiService + func NewClient(appId, appSecret string, options ...ClientOptionFunc) *Client + func (cli *Client) Delete(ctx context.Context, httpPath string, body interface{}, ...) (*larkcore.ApiResp, error) + func (cli *Client) Do(ctx context.Context, apiReq *larkcore.ApiReq, ...) (*larkcore.ApiResp, error) + func (cli *Client) Get(ctx context.Context, httpPath string, body interface{}, ...) (*larkcore.ApiResp, error) + func (cli *Client) GetAppAccessTokenByMarketplaceApp(ctx context.Context, req *larkcore.MarketplaceAppAccessTokenReq) (*larkcore.AppAccessTokenResp, error) + func (cli *Client) GetAppAccessTokenBySelfBuiltApp(ctx context.Context, req *larkcore.SelfBuiltAppAccessTokenReq) (*larkcore.AppAccessTokenResp, error) + func (cli *Client) GetTenantAccessTokenByMarketplaceApp(ctx context.Context, req *larkcore.MarketplaceTenantAccessTokenReq) (*larkcore.TenantAccessTokenResp, error) + func (cli *Client) GetTenantAccessTokenBySelfBuiltApp(ctx context.Context, req *larkcore.SelfBuiltTenantAccessTokenReq) (*larkcore.TenantAccessTokenResp, error) + func (cli *Client) Patch(ctx context.Context, httpPath string, body interface{}, ...) (*larkcore.ApiResp, error) + func (cli *Client) Post(ctx context.Context, httpPath string, body interface{}, ...) (*larkcore.ApiResp, error) + func (cli *Client) Put(ctx context.Context, httpPath string, body interface{}, ...) (*larkcore.ApiResp, error) + func (cli *Client) ResendAppTicket(ctx context.Context, req *larkcore.ResendAppTicketReq) (*larkcore.ResendAppTicketResp, error) + type ClientOptionFunc func(config *larkcore.Config) + func WithAppType(appType larkcore.AppType) ClientOptionFunc + func WithEnableTokenCache(enableTokenCache bool) ClientOptionFunc + func WithHeaders(header http.Header) ClientOptionFunc + func WithHelpdeskCredential(helpdeskID, helpdeskToken string) ClientOptionFunc + func WithHttpClient(httpClient larkcore.HttpClient) ClientOptionFunc + func WithLogLevel(logLevel larkcore.LogLevel) ClientOptionFunc + func WithLogReqAtDebug(printReqRespLog bool) ClientOptionFunc + func WithLogger(logger larkcore.Logger) ClientOptionFunc + func WithMarketplaceApp() ClientOptionFunc + func WithOpenBaseUrl(baseUrl string) ClientOptionFunc + func WithReqTimeout(reqTimeout time.Duration) ClientOptionFunc + func WithSerialization(serializable larkcore.Serializable) ClientOptionFunc + func WithTokenCache(cache larkcore.Cache) ClientOptionFunc