Documentation ¶
Overview ¶
code generated by oapi sdk gen
Index ¶
- Variables
- type Client
- func (cli *Client) Delete(ctx context.Context, httpPath string, body interface{}, ...) (*larkcore.RawResponse, error)
- func (cli *Client) Get(ctx context.Context, httpPath string, body interface{}, ...) (*larkcore.RawResponse, error)
- func (cli *Client) Head(ctx context.Context, httpPath string, body interface{}, ...) (*larkcore.RawResponse, error)
- func (cli *Client) Options(ctx context.Context, httpPath string, body interface{}, ...) (*larkcore.RawResponse, error)
- func (cli *Client) Patch(ctx context.Context, httpPath string, body interface{}, ...) (*larkcore.RawResponse, error)
- func (cli *Client) Post(ctx context.Context, httpPath string, body interface{}, ...) (*larkcore.RawResponse, error)
- func (cli *Client) Put(ctx context.Context, httpPath string, body interface{}, ...) (*larkcore.RawResponse, error)
- func (cli *Client) Trace(ctx context.Context, httpPath string, body interface{}, ...) (*larkcore.RawResponse, error)
- type ClientOptionFunc
- func WithAppType(appType larkcore.AppType) ClientOptionFunc
- func WithEnableTokenCache(enableTokenCache bool) 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 WithTokenCache(cache larkcore.Cache) ClientOptionFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var FeishuBaseUrl = "https://open.feishu.cn"
View Source
var LarkBaseUrl = "https://open.larksuite.com"
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Acs *larkacs.AcsService Admin *larkadmin.AdminService Application *larkapplication.ApplicationService Approval *larkapproval.ApprovalService Attendance *larkattendance.AttendanceService Baike *larkbaike.BaikeService Bitable *larkbitable.BitableService Calendar *larkcalendar.CalendarService Contact *larkcontact.ContactService Docx *larkdocx.DocxService Drive *larkdrive.DriveService Ehr *larkehr.EhrService Event *larkevent.EventService GrayTestOpenSg *larkgray_test_open_sg.GrayTestOpenSgService HumanAuthentication *larkhuman_authentication.HumanAuthenticationService Im *larkim.ImService Mail *larkmail.MailService 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 // contains filtered or unexported fields }
func NewClient ¶
func NewClient(appId, appSecret string, options ...ClientOptionFunc) *Client
type ClientOptionFunc ¶
type ClientOptionFunc func(config *larkcore.Config)
func WithAppType ¶
func WithAppType(appType larkcore.AppType) ClientOptionFunc
func WithEnableTokenCache ¶
func WithEnableTokenCache(enableTokenCache bool) ClientOptionFunc
func WithHelpdeskCredential ¶
func WithHelpdeskCredential(helpdeskID, helpdeskToken string) ClientOptionFunc
func WithHttpClient ¶
func WithHttpClient(httpClient larkcore.HttpClient) ClientOptionFunc
func WithLogLevel ¶
func WithLogLevel(logLevel larkcore.LogLevel) ClientOptionFunc
func WithLogReqAtDebug ¶ added in v3.0.1
func WithLogReqAtDebug(printReqRespLog bool) ClientOptionFunc
func WithLogger ¶
func WithLogger(logger larkcore.Logger) ClientOptionFunc
func WithMarketplaceApp ¶
func WithMarketplaceApp() ClientOptionFunc
func WithOpenBaseUrl ¶
func WithOpenBaseUrl(baseUrl string) ClientOptionFunc
func WithReqTimeout ¶
func WithReqTimeout(reqTimeout time.Duration) ClientOptionFunc
func WithTokenCache ¶
func WithTokenCache(cache larkcore.Cache) ClientOptionFunc
Directories ¶
Path | Synopsis |
---|---|
dispatcher
Package dispatcher code generated by oapi sdk gen
|
Package dispatcher code generated by oapi sdk gen |
service
|
|
acs/v1
Package acs code generated by oapi sdk gen
|
Package acs code generated by oapi sdk gen |
admin/v1
Package admin code generated by oapi sdk gen
|
Package admin code generated by oapi sdk gen |
application/v6
Package application code generated by oapi sdk gen
|
Package application code generated by oapi sdk gen |
approval/v4
Package approval code generated by oapi sdk gen
|
Package approval code generated by oapi sdk gen |
attendance/v1
Package attendance code generated by oapi sdk gen
|
Package attendance code generated by oapi sdk gen |
baike/v1
Package baike code generated by oapi sdk gen
|
Package baike code generated by oapi sdk gen |
bitable/v1
Package bitable code generated by oapi sdk gen
|
Package bitable code generated by oapi sdk gen |
calendar/v4
Package calendar code generated by oapi sdk gen
|
Package calendar code generated by oapi sdk gen |
contact/v3
Package contact code generated by oapi sdk gen
|
Package contact code generated by oapi sdk gen |
docx/v1
Package docx code generated by oapi sdk gen
|
Package docx code generated by oapi sdk gen |
drive/v1
Package drive code generated by oapi sdk gen
|
Package drive code generated by oapi sdk gen |
ehr/v1
Package ehr code generated by oapi sdk gen
|
Package ehr code generated by oapi sdk gen |
event/v1
Package event code generated by oapi sdk gen
|
Package event code generated by oapi sdk gen |
gray_test_open_sg/v1
Package gray_test_open_sg code generated by oapi sdk gen
|
Package gray_test_open_sg code generated by oapi sdk gen |
human_authentication/v1
Package human_authentication code generated by oapi sdk gen
|
Package human_authentication code generated by oapi sdk gen |
im/v1
Package im code generated by oapi sdk gen
|
Package im code generated by oapi sdk gen |
mail/v1
Package mail code generated by oapi sdk gen
|
Package mail code generated by oapi sdk gen |
meeting_room/v1
Package meeting_room code generated by oapi sdk gen
|
Package meeting_room code generated by oapi sdk gen |
optical_char_recognition/v1
Package optical_char_recognition code generated by oapi sdk gen
|
Package optical_char_recognition code generated by oapi sdk gen |
passport/v1
Package passport code generated by oapi sdk gen
|
Package passport code generated by oapi sdk gen |
search/v2
Package search code generated by oapi sdk gen
|
Package search code generated by oapi sdk gen |
sheets/v3
Package sheets code generated by oapi sdk gen
|
Package sheets code generated by oapi sdk gen |
speech_to_text/v1
Package speech_to_text code generated by oapi sdk gen
|
Package speech_to_text code generated by oapi sdk gen |
task/v1
Package task code generated by oapi sdk gen
|
Package task code generated by oapi sdk gen |
tenant/v2
Package tenant code generated by oapi sdk gen
|
Package tenant code generated by oapi sdk gen |
translation/v1
Package translation code generated by oapi sdk gen
|
Package translation code generated by oapi sdk gen |
vc/v1
Package vc code generated by oapi sdk gen
|
Package vc code generated by oapi sdk gen |
wiki/v2
Package wiki code generated by oapi sdk gen
|
Package wiki code generated by oapi sdk gen |
Click to show internal directories.
Click to hide internal directories.