Documentation ¶
Index ¶
- Variables
- type 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 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
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 { Hire *hire.Service Report *report.Service Mdm *mdm.Service Acs *acs.Service Attendance *attendance.Service Auth *auth.Service Block *block.Service DocumentAi *document_ai.Service Event *event.Service Mail *mail.Service Tenant *tenant.Service Application *application.Service Authen *authen.Service Baike *baike.Service Docx *docx.Service OpticalCharRecognition *optical_char_recognition.Service Sheets *sheets.Service Admin *admin.Service Compensation *compensation.Service Contact *contact.Service Corehr *corehr.Service MeetingRoom *meeting_room.Service Moments *moments.Service SecurityAndCompliance *security_and_compliance.Service Calendar *calendar.Service GrayTestOpenSg *gray_test_open_sg.Service Im *im.Service Passport *passport.Service SpeechToText *speech_to_text.Service Workplace *workplace.Service Bitable *bitable.Service Drive *drive.Service Lingo *lingo.Service Translation *translation.Service Task *task.Service Aily *aily.Service Board *board.Service Docs *docs.Service Ehr *ehr.Service Helpdesk *helpdesk.Service PersonalSettings *personal_settings.Service Search *search.Service Vc *vc.Service Approval *approval.Service HumanAuthentication *human_authentication.Service Okr *okr.Service Verification *verification.Service Wiki *wiki.Service Ext *larkext.ExtService // contains filtered or unexported fields }
func NewClient ¶
func NewClient(appId, appSecret string, options ...ClientOptionFunc) *Client
func (*Client) GetAppAccessTokenByMarketplaceApp ¶ added in v3.0.1
func (*Client) GetAppAccessTokenBySelfBuiltApp ¶ added in v3.0.1
func (*Client) GetTenantAccessTokenByMarketplaceApp ¶ added in v3.0.1
func (*Client) GetTenantAccessTokenBySelfBuiltApp ¶ added in v3.0.1
type ClientOptionFunc ¶
type ClientOptionFunc func(config *larkcore.Config)
func WithAppType ¶
func WithAppType(appType larkcore.AppType) ClientOptionFunc
func WithEnableTokenCache ¶
func WithEnableTokenCache(enableTokenCache bool) ClientOptionFunc
func WithHeaders ¶ added in v3.0.3
func WithHeaders(header http.Header) ClientOptionFunc
设置每次请求都会携带的 header
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 WithSerialization ¶ added in v3.0.10
func WithSerialization(serializable larkcore.Serializable) 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
|
|
Click to show internal directories.
Click to hide internal directories.