Documentation
¶
Index ¶
- Constants
- func FromRange(sheetRange string) (string, string)
- func FromURL(u1 string) (string, error)
- type Client
- func (lc *Client) GetAsCSV(ctx context.Context, url, sheetRange string, ...) (int, string, error)
- func (lc *Client) GetRevisionID(ctx context.Context, url string) (int, error)
- func (lc *Client) GetSheetContent(ctx context.Context, sheetToken, sheetRange string, ...) ([][]interface{}, error)
- func (lc *Client) GetSheetMetadata(ctx context.Context, sheetToken string) (*SheetMetadata, error)
- func (lc *Client) Invoke(ctx context.Context, r larkRequest) ([]byte, error)
- type Data
- type GetSpreadSheetResponse
- type Properties
- type Sheet
- type SheetMetadata
- type SpreadSheetData
- type TokenResponse
- type ValueRange
Constants ¶
View Source
const ( EntityLark = "lark" Host = "open.larksuite.com" GetAccessTokenURL = "/open-apis/auth/v3/tenant_access_token/internal" GetLSheetContent = "/open-apis/sheets/v2/spreadsheets/%s/values/%s" GetLSheetMeta = "/open-apis/sheets/v2/spreadsheets/%s/metainfo" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
TenantAccessToken string
// contains filtered or unexported fields
}
func (*Client) GetRevisionID ¶
func (*Client) GetSheetContent ¶
func (*Client) GetSheetMetadata ¶
type Data ¶
type Data struct {
Properties Properties `json:"properties"`
Sheets []Sheet `json:"sheets"`
SpreadsheetToken string `json:"spreadsheetToken"`
}
type GetSpreadSheetResponse ¶
type GetSpreadSheetResponse struct {
Code int `json:"code"`
SpreadSheetData SpreadSheetData `json:"data"`
Msg string `json:"msg"`
}
type Properties ¶
type SheetMetadata ¶
type SheetMetadata struct {
Code int `json:"code"`
Data Data `json:"data"`
Msg string `json:"msg"`
}
func (SheetMetadata) GetRevisionID ¶
func (s SheetMetadata) GetRevisionID() int
type SpreadSheetData ¶
type SpreadSheetData struct {
Revision int `json:"revision"`
SpreadsheetToken string `json:"spreadsheetToken"`
ValueRange ValueRange `json:"valueRange"`
}
type TokenResponse ¶
type ValueRange ¶
Click to show internal directories.
Click to hide internal directories.