【发布时间】:2016-06-30 12:36:14
【问题描述】:
我正在使用 PHP Google 表格客户端:
https://github.com/asimlqt/php-google-spreadsheet-client
此客户端实现 API 的 v3:
https://developers.google.com/google-apps/spreadsheets/data
我通常会得到这样的行:
// simplified code:
$worksheet = $worksheetFeed->getByTitle($worksheet_id);
$listFeed = $worksheet->getListFeed();
foreach ($listFeed->getEntries() as $entry)
{
$rows []= $entry->getValues();
}
Google 将“Admin Title”转换为数组键“admintitle”。我想获取原始标题的 Google 数组键的映射。例如,我想要一个包含以下条目的数组:
[admintitle] => "管理员头衔"
等等
我该怎么做?
【问题讨论】:
标签: php google-sheets google-api-php-client google-sheets-api