Skip to content

Commit 67973a3

Browse files
committed
changes twiml URL to POST
1 parent 4f5af5e commit 67973a3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

appengine/standard/twilio/app.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
# [END send_sms]
4141
});
4242

43-
$app->get('/twiml', function () {
43+
$app->post('/twiml', function () {
4444
# [START twiml]
4545
$response = new Services_Twilio_Twiml();
4646
$response->say('Hello Monkey');

appengine/standard/twilio/test/twilioTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function testTwiml()
6464
{
6565
$client = $this->createClient();
6666

67-
$crawler = $client->request('GET', '/twiml');
67+
$crawler = $client->request('POST', '/twiml');
6868

6969
$response = $client->getResponse();
7070
$this->assertEquals(200, $response->getStatusCode());

0 commit comments

Comments
 (0)