私はウェブフックの設定をしており、メッセージを受信して返信することができます。私はwebhookがMessagingServiceSidを添付して返信してもらいたいと思っています。nodejsライブラリのtwimlレスポンスにmessagingServiceSidを添付してください。
私だけ
client.sendMessage({
messagingServiceSid: 'MG9752274e9e519418a7406176694466fa',
to: '+16518675309',
body: 'Phantom Menace was clearly the best of the prequel trilogy.'
}, function(err, message) {
console.log(message);
});
を使用して、新しいSMSのために、このコードの類似したものがある、ドキュメンテーションに私のウェブフックからの応答のためにそれを設定する方法を見つけることができませんでしたか?それはUIを通して実行可能ですか?
app.post('/foo/bar/sms', twilio.webhook({
host:'gassy-ocelot-129.herokuapp.com',
protocol:'https'
}), function(request, response) {
var twiml = new twilio.TwimlResponse();
twiml.message('This HTTP request came from Twilio!');
response.send(twiml);
});
画像: No messagingService on reply messages sent using twiml response
明確にするために質問を編集し、画像を追加しました。私は、メッセージングサービスにリンクさせるために送信した回答を持っていたいと思います。 –