add getUserById
This commit is contained in:
@@ -57,4 +57,10 @@ class Client{
|
|||||||
throw new \Exception("API $status_code Code: ".$result);
|
throw new \Exception("API $status_code Code: ".$result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getUserById($id){
|
||||||
|
$url="{$this->url}users/search?uid={$id}";
|
||||||
|
$data=$this->request($url,'GET');
|
||||||
|
return $data->data[0];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user