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 {
Acs *acs.Service
Cardkit *cardkit.Service
Performance *performance.Service
Compensation *compensation.Service
Wiki *wiki.Service
Minutes *minutes.Service
Sheets *sheets.Service
Task *task.Service
Directory *directory.Service
Event *event.Service
Payroll *payroll.Service
Vc *vc.Service
Calendar *calendar.Service
Mdm *mdm.Service
HumanAuthentication *human_authentication.Service
MeetingRoom *meeting_room.Service
Attendance *attendance.Service
Baike *baike.Service
Contact *contact.Service
DocumentAi *document_ai.Service
SpeechToText *speech_to_text.Service
Auth *auth.Service
Base *base.Service
OpticalCharRecognition *optical_char_recognition.Service
Authen *authen.Service
Corehr *corehr.Service
Drive *drive.Service
Admin *admin.Service
Apaas *apaas.Service
Report *report.Service
Board *board.Service
Ehr *ehr.Service
Im *im.Service
Passport *passport.Service
Approval *approval.Service
Hire *hire.Service
Okr *okr.Service
Lingo *lingo.Service
Aily *aily.Service
Docs *docs.Service
Verification *verification.Service
Application *application.Service
Moments *moments.Service
Docx *docx.Service
Mail *mail.Service
Search *search.Service
SecurityAndCompliance *security_and_compliance.Service
Tenant *tenant.Service
PersonalSettings *personal_settings.Service
Helpdesk *helpdesk.Service
Translation *translation.Service
Workplace *workplace.Service
Bitable *bitable.Service
Block *block.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.