示例#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;
 }