FeishuSheet (feishu_sheet v0.1.0)
Summary
Functions
Get sheet data by sheet-index(0-based)
Get worksheet data by sheet-index(0-based), raise exception when error occured.
Parse rows data as map with headers.
Functions
Link to this function
auth_headers(access_token)
Link to this function
default_headers()
Link to this function
do_get(path, req_opts \\ [])
Link to this function
do_post(path, req_opts \\ [])
Link to this function
fetch_app_access_token(opts \\ [])
Link to this function
fetch_tenant_access_token(opts \\ [])
Link to this function
field_name(i)
Link to this function
get_access_token!(tp \\ :tenant, opts \\ [])
Link to this function
get_app_access_token!(opts \\ [])
Link to this function
get_metadata_of_root_folder(opts \\ [])
Link to this function
get_metadata_of_spreadsheet(spreadsheet_token, opts \\ [])
Link to this function
get_sheet_data(spreedsheet_token, sheet_index, from_cell, to_cell_or_column, opts \\ [])
Get sheet data by sheet-index(0-based)
args:
- sheet_index, 0 based sheet index in the whole spreedsheet
- from_cell, start cell, e.g. "A1"
- to_cell_or_column, e.g. "C3", "C"
Link to this function
get_sheet_data!(spreedsheet_token, sheet_index, from_cell, to_cell_or_column, opts \\ [])
Get worksheet data by sheet-index(0-based), raise exception when error occured.
Link to this function
get_sheet_info(spreadsheet_token, sheet_id, opts \\ [])
Link to this function
get_sheet_values(spreedsheet_token, range, opts \\ [])
Link to this function
get_sheets_info(spreadsheet_token, opts \\ [])
Link to this function
get_tenant_access_token!(opts \\ [])
Link to this function
headers_with_auth(opts \\ [])
Link to this function
load_app_config!()
Link to this function
parse_header_and_values(rows, opts \\ [])
Link to this function
parse_rows_data(rows, opts \\ [])
Parse rows data as map with headers.
Options:
:headers – When set to true, will take the first row of the csv and use it as header values. When set to a list, will use the given list as header values. When set to false (default), will use no header values. When set to anything but false, the resulting rows in the matrix will be maps instead of lists.
Smaple rows: [
["name", "job", nil, nil, nil],
["alice", "developer", nil, nil, nil],
["bob", "tester", nil, nil, nil]
]
Link to this function