29 lines
577 B
PHP
29 lines
577 B
PHP
<?php
|
|
|
|
namespace Hosterra\NetBox\Api\Extras;
|
|
|
|
use GuzzleHttp\Exception\GuzzleException;
|
|
use Hosterra\NetBox\Api\AbstractApi;
|
|
|
|
class Scripts extends AbstractApi {
|
|
/**
|
|
* @param array $params
|
|
*
|
|
* @return mixed
|
|
* @throws GuzzleException
|
|
*/
|
|
public function list( array $params = [] ) {
|
|
return $this->get( "/extras/scripts/", $params );
|
|
}
|
|
|
|
/**
|
|
* @param int $id
|
|
* @param array $params
|
|
*
|
|
* @return mixed
|
|
* @throws GuzzleException
|
|
*/
|
|
public function show( int $id, array $params = [] ) {
|
|
return $this->get( "/extras/scripts/" . $id . "/", $params );
|
|
}
|
|
}
|