@@ -32,22 +32,25 @@ Quick Examples
32321 ) 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
37382 ) 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
66694 ) 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