Пример #1
0
 private function authJsonRequest()
 {
     return (new JsonRequest(Textocat::resource('entity/')))->getParamAdd(['auth_token' => $this->apiKey]);
 }
Пример #2
0
 public static function isOffline()
 {
     return (new JsonRequest(Textocat::resource('status')))->send()['statusCode'] == self::CODE_OFFLINE;
 }