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 { Docs *docs.Service Helpdesk *helpdesk.Service Hire *hire.Service Mail *mail.Service PersonalSettings *personal_settings.Service Acs *acs.Service Authen *authen.Service Block *block.Service Task *task.Service Workplace *workplace.Service Translation *translation.Service Application *application.Service Lingo *lingo.Service MeetingRoom *meeting_room.Service OpticalCharRecognition *optical_char_recognition.Service Tenant *tenant.Service Board *board.Service Corehr *corehr.Service HumanAuthentication *human_authentication.Service DocumentAi *document_ai.Service Drive *drive.Service Mdm *mdm.Service Aily *aily.Service Auth *auth.Service Contact *contact.Service GrayTestOpenSg *gray_test_open_sg.Service Sheets *sheets.Service Approval *approval.Service Attendance *attendance.Service Docx *docx.Service Moments *moments.Service Wiki *wiki.Service Admin *admin.Service Bitable *bitable.Service Calendar *calendar.Service Verification *verification.Service Passport *passport.Service SecurityAndCompliance *security_and_compliance.Service SpeechToText *speech_to_text.Service Event *event.Service Im *im.Service Okr *okr.Service Report *report.Service Search *search.Service Baike *baike.Service Compensation *compensation.Service Ehr *ehr.Service Vc *vc.Service Ext *larkext.ExtService // contains filtered or unexported fields }
func NewClient ¶
func NewClient(appId, appSecret string, options ...ClientOptionFunc) *Client
func (*Client) GetAppAccessTokenByMarketplaceApp ¶
func (*Client) GetAppAccessTokenBySelfBuiltApp ¶
func (*Client) GetTenantAccessTokenByMarketplaceApp ¶
func (*Client) GetTenantAccessTokenBySelfBuiltApp ¶
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 ¶
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 ¶
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.