| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | public function __construct() |
||
| 30 | { |
||
| 31 | $this->apiKey = env('SMSWORKS_KEY'); |
||
| 32 | $this->sender = env('SMSWORKS_SENDFROM'); |
||
| 33 | |||
| 34 | // Configure API key authorization: JWT |
||
| 35 | $config = \Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', $this->apiKey); |
||
| 36 | |||
| 37 | $this->apiInstance = new \Swagger\Client\Api\MessagesApi( |
||
| 38 | new \GuzzleHttp\Client(), |
||
| 39 | $config |
||
| 40 | ); |
||
| 69 | } |