Skip to content

Commit bc94443

Browse files
lornajanemheap
authored andcommitted
Bring placeholders inline with building block content
This change makes the PHP code hold the same placeholder variables as are described in the building block examples, and match the building block spec documents.
1 parent ebf2e11 commit bc94443

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

voice/earmuff-a-call/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
$keypair = new \Nexmo\Client\Credentials\Keypair(file_get_contents(NEXMO_APPLICATION_PRIVATE_KEY_PATH), NEXMO_APPLICATION_ID);
66
$client = new \Nexmo\Client($keypair);
77

8-
$client->calls[NEXMO_CALL_UUID]->put(new \Nexmo\Call\Earmuff());
8+
$client->calls[UUID]->put(new \Nexmo\Call\Earmuff());
99
sleep(3);
10-
$client->calls[NEXMO_CALL_UUID]->put(new \Nexmo\Call\Unearmuff());
10+
$client->calls[UUID]->put(new \Nexmo\Call\Unearmuff());

voice/mute-a-call/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
$keypair = new \Nexmo\Client\Credentials\Keypair(file_get_contents(NEXMO_APPLICATION_PRIVATE_KEY_PATH), NEXMO_APPLICATION_ID);
66
$client = new \Nexmo\Client($keypair);
77

8-
$client->calls[NEXMO_CALL_UUID]->put(new \Nexmo\Call\Mute());
8+
$client->calls[UUID]->put(new \Nexmo\Call\Mute());
99
sleep(3);
10-
$client->calls[NEXMO_CALL_UUID]->put(new \Nexmo\Call\Unmute());
10+
$client->calls[UUID]->put(new \Nexmo\Call\Unmute());

voice/play-audio-stream-in-to-call/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
$keypair = new \Nexmo\Client\Credentials\Keypair(file_get_contents(NEXMO_APPLICATION_PRIVATE_KEY_PATH), NEXMO_APPLICATION_ID);
66
$client = new \Nexmo\Client($keypair);
77

8-
$stream = $client->calls[NEXMO_CALL_UUID]->stream();
8+
$stream = $client->calls[UUID]->stream();
99
$stream->setUrl('https://nexmo-community.github.io/ncco-examples/assets/voice_api_audio_streaming.mp3');
1010
$stream->put();

voice/play-dtmf-in-to-call/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
$keypair = new \Nexmo\Client\Credentials\Keypair(file_get_contents(NEXMO_APPLICATION_PRIVATE_KEY_PATH), NEXMO_APPLICATION_ID);
66
$client = new \Nexmo\Client($keypair);
77

8-
$dtmf = $client->calls[NEXMO_CALL_UUID]->dtmf();
8+
$dtmf = $client->calls[UUID]->dtmf();
99
$dtmf->setDigits('2468#');
1010
$dtmf->put();

voice/play-tts-in-to-call/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
$keypair = new \Nexmo\Client\Credentials\Keypair(file_get_contents(NEXMO_APPLICATION_PRIVATE_KEY_PATH), NEXMO_APPLICATION_ID);
66
$client = new \Nexmo\Client($keypair);
77

8-
$talk = $client->calls[NEXMO_CALL_UUID]->talk();
8+
$talk = $client->calls[UUID]->talk();
99
$talk->setText(TEXT);
1010
$talk->setVoiceName('Kimberly');
1111
$talk->put();

voice/transfer-a-call/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
$keypair = new \Nexmo\Client\Credentials\Keypair(file_get_contents(NEXMO_APPLICATION_PRIVATE_KEY_PATH), NEXMO_APPLICATION_ID);
66
$client = new \Nexmo\Client($keypair);
77

8-
$client->calls[NEXMO_CALL_UUID]->put(new \Nexmo\Call\Transfer("https://developer.nexmo.com/ncco/transfer.json"));
8+
$client->calls[UUID]->put(new \Nexmo\Call\Transfer("https://developer.nexmo.com/ncco/transfer.json"));

0 commit comments

Comments
 (0)