Skip to content

Commit 36aef40

Browse files
committed
=update to readme
1 parent 76e64f9 commit 36aef40

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,25 @@ Quick Examples
3232
1) Sending an SMS
3333

3434
$sms = new Artistan\Nexmo\Service\Message\Sms;
35+
$sms = \App::make('nexmosmsmessage');
3536
$result = $sms->sendText('15005554320','15555633637','dude, this is from a laravel package');
3637

3738
2) Recieving SMS
3839

39-
// TODO:: setup routing for this...
40-
$sms = new Artistan\Nexmo\Service\Message\Sms;
40+
// TODO:: setup default routing for this...
41+
$sms = new Artistan\Nexmo\Service\Message\Sms;
42+
$sms = \App::make('nexmosmsmessage');
4143
if ($sms->inboundText()) {
4244
$sms->reply('You said: ' . $sms->text);
4345
}
4446

4547

4648

47-
3) Recieving a message receipt
49+
3) Receiving a message receipt
4850

49-
// TODO:: setup routing for this...
51+
// TODO:: setup default routing for this...
5052
$receipt = new Artistan\Nexmo\Service\Receipt;
53+
$receipt = \App::make('nexmoreceipt');
5154
if ($receipt->exists()) {
5255
switch ($receipt->status) {
5356
case $receipt::STATUS_DELIVERED:
@@ -66,6 +69,7 @@ Quick Examples
6669
4) List purchased numbers on your account
6770

6871
$account = new Artistan\Nexmo\Service\Account;
72+
$account = \App::make('nexmoaccount');
6973
$numbers = $account->numbersList();
7074

7175

0 commit comments

Comments
 (0)