Inheritance: extends AbstractSMS, implements SimpleSoftwareIO\SMS\Drivers\DriverInterface
コード例 #1
0
 /**
  * Create an instance of the mozeo driver
  *
  * @return MozeoSMS
  */
 protected function createMozeoDriver()
 {
     $config = $this->app['config']->get('sms.mozeo', []);
     $provider = new MozeoSMS(new Client());
     $auth = ['companykey' => $config['company_key'], 'username' => $config['username'], 'password' => $config['password']];
     $provider->buildBody($auth);
     return $provider;
 }
コード例 #2
0
 protected function buildMozeo()
 {
     $provider = new MozeoSMS(new Client());
     $auth = ['companykey' => config('sms.mozeo.companyKey'), 'username' => config('sms.mozeo.username'), 'password' => config('sms.mozeo.password')];
     $provider->buildBody($auth);
     return $provider;
 }