public class FsApiUtil extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DEFAULT_ROW_NUM |
| 构造器和说明 |
|---|
FsApiUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Object |
addRowColumns(String sheetId,
String spreadsheetToken,
String type,
int length,
FeishuClient client) |
static Object |
batchPutValues(String sheetId,
String spreadsheetToken,
CustomValueService.ValueRequest batchPutRequest,
FeishuClient client) |
static String |
copySheet(String sourceSheetId,
String title,
FeishuClient client,
String spreadsheetToken) |
static String |
createSheet(String title,
FeishuClient client,
String spreadsheetToken) |
static void |
createTemplateHead(String head,
String sheetId,
FeishuClient client,
String spreadsheetToken) |
static void |
downloadMaterial(String fileToken,
String outputPath,
FeishuClient client,
String extra)
下载素材
|
static String |
downloadTmpMaterialUrl(String fileToken,
FeishuClient client) |
static ValuesBatch |
getSheetData(String sheetId,
String spreadsheetToken,
String startPosition,
String endPosition,
FeishuClient client)
获取工作表数据
从指定的飞书表格中读取指定范围的数据
|
static Sheet |
getSheetMetadata(String sheetId,
FeishuClient client,
String spreadsheetToken)
获取工作表元数据
获取指定工作表的元数据信息,包括行列数、工作表名称等
|
static Object |
getTableInfo(String sheetId,
String spreadsheetToken,
FeishuClient client) |
static Object |
imageUpload(String filePath,
String fileName,
String position,
String sheetId,
String spreadsheetToken,
FeishuClient client) |
static void |
mergeCells(String cell,
String sheetId,
FeishuClient client,
String spreadsheetToken)
合并单元格
在指定工作表中合并指定范围的单元格
|
static Object |
putValues(String spreadsheetToken,
CustomValueService.ValueRequest putValuesBuilder,
FeishuClient client) |
static void |
removeSheet(String sheetId,
FeishuClient client,
String spreadsheetToken) |
static void |
setCellType(String sheetId,
String formatter,
String startPosition,
String endPosition,
FeishuClient client,
String spreadsheetToken)
字符串类型: formatter: "@"
|
static void |
setDateType(String sheetId,
FeishuClient client,
String spreadsheetToken,
String conf,
Integer headLine) |
static void |
setOptions(String sheetId,
FeishuClient client,
String spreadsheetToken,
boolean isMulti,
String startPosition,
String endPosition,
List<String> result) |
static void |
setTableStyle(String style,
String sheetId,
FeishuClient client,
String spreadsheetToken) |
public static final int DEFAULT_ROW_NUM
public static ValuesBatch getSheetData(String sheetId, String spreadsheetToken, String startPosition, String endPosition, FeishuClient client)
sheetId - 工作表IDspreadsheetToken - 电子表格TokenstartPosition - 起始位置(如"A1")endPosition - 结束位置(如"Z100")client - 飞书客户端public static Sheet getSheetMetadata(String sheetId, FeishuClient client, String spreadsheetToken)
sheetId - 工作表IDclient - 飞书客户端spreadsheetToken - 电子表格Tokenpublic static void mergeCells(String cell, String sheetId, FeishuClient client, String spreadsheetToken)
cell - 合并范围(如"A1:B2")sheetId - 工作表IDclient - 飞书客户端spreadsheetToken - 电子表格Tokenpublic static void createTemplateHead(String head, String sheetId, FeishuClient client, String spreadsheetToken)
public static void setTableStyle(String style, String sheetId, FeishuClient client, String spreadsheetToken)
public static String createSheet(String title, FeishuClient client, String spreadsheetToken)
public static String copySheet(String sourceSheetId, String title, FeishuClient client, String spreadsheetToken)
public static void setDateType(String sheetId, FeishuClient client, String spreadsheetToken, String conf, Integer headLine)
public static void setOptions(String sheetId, FeishuClient client, String spreadsheetToken, boolean isMulti, String startPosition, String endPosition, List<String> result)
public static void removeSheet(String sheetId, FeishuClient client, String spreadsheetToken)
public static void downloadMaterial(String fileToken, String outputPath, FeishuClient client, String extra)
public static String downloadTmpMaterialUrl(String fileToken, FeishuClient client)
public static Object putValues(String spreadsheetToken, CustomValueService.ValueRequest putValuesBuilder, FeishuClient client)
public static Object batchPutValues(String sheetId, String spreadsheetToken, CustomValueService.ValueRequest batchPutRequest, FeishuClient client)
public static Object addRowColumns(String sheetId, String spreadsheetToken, String type, int length, FeishuClient client)
public static Object getTableInfo(String sheetId, String spreadsheetToken, FeishuClient client)
public static void setCellType(String sheetId, String formatter, String startPosition, String endPosition, FeishuClient client, String spreadsheetToken)
Copyright © 2025. All rights reserved.