appId = $appId; $this->url = $url; $this->client = new Client(); } public function sendText($number, $text): void { $this->client->post($this->url, [ 'form_params' => [ 'api_id' => $this->appId, 'to' => '+' . trim($number, '+'), 'text' => $text ], ]); } public function sendCall($number, $ip): void { } }