Google自定义搜索如何运行命令php
我有一个机器人,我用这个命令运行它:Google自定义搜索如何运行命令php,php,google-custom-search,Php,Google Custom Search,我有一个机器人,我用这个命令运行它: robot:test:google 在这个机器人中,我有一个执行功能: protected function execute(InputInterface $input, OutputInterface $output) { echo "test"; } 在这个函数中,我尝试运行命令google custom search api,我需要调用: <gcse:search></gcse:search> 但我不知道如何在
robot:test:google
在这个机器人中,我有一个执行功能:
protected function execute(InputInterface $input, OutputInterface $output)
{
echo "test";
}
在这个函数中,我尝试运行命令google custom search api,我需要调用:
<gcse:search></gcse:search>
但我不知道如何在函数execute中运行这个命令