Updated readme, install and other documentation, changed panel() to site() since it makes more sense that way with netbox. started fixing authentication, hostfact had a login method, but netbox does not, but the user model provides a password that we can authenticate against.

This commit is contained in:
Tony Roy 2021-03-13 14:34:15 -04:00
commit 0df9b15379
7 changed files with 120 additions and 92 deletions

View file

@ -4,6 +4,17 @@ namespace wickedsoft\NetBox\Api\Users;
class Users extends AbstractApi
{
/**
* @param $params
* @return mixed
* @throws \GuzzleHttp\Exception\GuzzleException
*/
public function checkLogin($params)
{
return $this->get("/users/users/".$id."/", $params);
//return $this->post(array_merge(['controller' => 'debtor', 'action' => 'checkLogin'], $params));
}
/**
* @param $params
* @return mixed