編輯:這裏有更多的上下文的JSON如何接收。我使用的是阿皮亞伊API生成到自己的平臺的要求,他們有一個方法來檢索,就像這樣: # instantiate ApiAI
ai = apiai.ApiAI(CLIENT_ACCESS_TOKEN)
# declare a request obect, fill in in lower lines
request = ai.text_request
我使用Laravel 5.3,並試圖在WebhookController 這裏添加新的網絡掛接事件處理程序是我的控制器 namespace App\Http\Controllers;
use Braintree\WebhookNotification;
use Laravel\Cashier\Http\Controllers\WebhookController as Cashie