private function authJsonRequest() { return (new JsonRequest(Textocat::resource('entity/')))->getParamAdd(['auth_token' => $this->apiKey]); }
public static function isOffline() { return (new JsonRequest(Textocat::resource('status')))->send()['statusCode'] == self::CODE_OFFLINE; }