Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/231.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/flutter/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wordpress-PHP通过查询调用Google Sheets单元格?_Php_Wordpress_Google Sheets Api - Fatal编程技术网

Wordpress-PHP通过查询调用Google Sheets单元格?

Wordpress-PHP通过查询调用Google Sheets单元格?,php,wordpress,google-sheets-api,Php,Wordpress,Google Sheets Api,我希望使用wordpress中的php代码通过查询从Google Sheets调用一个单元格 我被告知这可以通过wp_remote_get()实现 我想在表格中查询以下信息: 选择A,其中B='X' 请问我该怎么做?谢谢 另外,它在Sheets API中不可用,因为它的参数是sheetId和范围。试试这个,你的url看起来像这样:https://spreadsheets.google.com/tq?tqx=out:html&tq=select%20A%20where%20B%20%3D%20%2

我希望使用wordpress中的php代码通过查询从Google Sheets调用一个单元格

我被告知这可以通过wp_remote_get()实现

我想在表格中查询以下信息:

选择A,其中B='X'


请问我该怎么做?谢谢

另外,它在Sheets API中不可用,因为它的参数是
sheetId
范围
。试试这个,你的url看起来像这样:
https://spreadsheets.google.com/tq?tqx=out:html&tq=select%20A%20where%20B%20%3D%20%27X%27&key=[API_KEY]
。希望这能有所帮助。@Mr.Rebot谢谢,但这会让事情变得复杂。我只是想要一个单元格的纯文本?然后你可以尝试使用应用程序脚本,检查@WillNicholls将表格解析为文本有什么不对?