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