如何使用 PHP SDK 发送和处理 REPLY 动作?
我尝试在快速入门中修改这两个文件:
1) 中的 index.phpcase 'insertItemWithAction':
$menu_item = 新的 Google_MenuItem(); $menu_item->setAction("REPLY"); array_push($menu_items, $menu_item);
2) notify.php 带有条件(在 main 中case 'timeline'
)尝试处理回复:
else if($user_action['type'] == 'REPLY') ...
但是,似乎没有处理回复 - 还是我在某处遗漏了一个参数?