netbox-php/src/Api/Ip.php

61 lines
1.7 KiB
PHP
Raw Normal View History

2021-03-10 18:53:16 -04:00
<?php
namespace wickedsoft\NetBox\Api;
2021-03-11 22:04:24 -04:00
class Ip extends AbstractApi
2021-03-10 18:53:16 -04:00
{
/**
2021-03-11 10:01:28 -04:00
* @see https://www.hostfact.nl/developer/api/crediteuren/add
2021-03-10 18:53:16 -04:00
* @param $params
* @return mixed
* @throws \GuzzleHttp\Exception\GuzzleException
*/
public function add($params)
{
2021-03-11 10:01:28 -04:00
return $this->post(array_merge(['controller' => 'creditor', 'action' => 'add'], $params));
2021-03-10 18:53:16 -04:00
}
/**
2021-03-11 10:01:28 -04:00
* @see https://www.hostfact.nl/developer/api/crediteuren/delete
2021-03-10 18:53:16 -04:00
* @param $params
* @return mixed
* @throws \GuzzleHttp\Exception\GuzzleException
*/
public function delete($params)
{
2021-03-11 10:01:28 -04:00
return $this->post(array_merge(['controller' => 'creditor', 'action' => 'delete'], $params));
2021-03-10 18:53:16 -04:00
}
/**
2021-03-11 10:01:28 -04:00
* @see https://www.hostfact.nl/developer/api/crediteuren/edit
2021-03-10 18:53:16 -04:00
* @param $params
* @return mixed
* @throws \GuzzleHttp\Exception\GuzzleException
*/
public function edit($params)
{
2021-03-11 10:01:28 -04:00
return $this->post(array_merge(['controller' => 'creditor', 'action' => 'edit'], $params));
2021-03-10 18:53:16 -04:00
}
/**
2021-03-11 10:01:28 -04:00
* @see https://www.hostfact.nl/developer/api/crediteuren/list
2021-03-10 18:53:16 -04:00
* @param $params
* @return mixed
* @throws \GuzzleHttp\Exception\GuzzleException
*/
public function list($params)
{
2021-03-11 10:01:28 -04:00
return $this->post(array_merge(['controller' => 'creditor', 'action' => 'list'], $params));
2021-03-10 18:53:16 -04:00
}
/**
2021-03-11 10:01:28 -04:00
* @see https://www.hostfact.nl/developer/api/crediteuren/show
2021-03-10 18:53:16 -04:00
* @param $params
* @return mixed
* @throws \GuzzleHttp\Exception\GuzzleException
*/
public function show($params)
{
2021-03-11 10:01:28 -04:00
return $this->post(array_merge(['controller' => 'creditor', 'action' => 'show'], $params));
2021-03-10 18:53:16 -04:00
}
}