代码之家  ›  专栏  ›  技术社区  ›  Kapitan Teemo

twilio webhook中的空白响应

  •  1
  • Kapitan Teemo  · 技术社区  · 8 年前

    如何使用php/laravel在twilio中生成空白响应?

    这是一个样品Twiml: <Response></Response>

    1 回复  |  直到 8 年前
        1
  •  2
  •   Kapitan Teemo    8 年前

    这是我想出的代码(我正在使用laravel):

    public function receivedSms(){
        $response = new Twiml();
    
        return response($response)
          ->header('Content-Type', 'text/xml');
    }