secret = $secret; } public function validate(string $token, string $clientIp): array { $options = [ 'query' => [ "secret" => $this->secret, "token" => $token, "ip" => $clientIp, ] ]; $httpResponse = $this->request('POST', '/validate', $options); return $httpResponse->toArray(); } }