netbox-php/src/Api/Extras/Scripts.php

29 lines
577 B
PHP
Raw Normal View History

<?php
2024-02-12 10:46:19 +01:00
namespace Hosterra\NetBox\Api\Extras;
2022-05-31 12:56:36 +02:00
use GuzzleHttp\Exception\GuzzleException;
2024-02-12 10:46:19 +01:00
use Hosterra\NetBox\Api\AbstractApi;
2024-02-12 11:28:56 +01:00
class Scripts extends AbstractApi {
/**
* @param array $params
*
* @return mixed
* @throws GuzzleException
*/
public function list( array $params = [] ) {
return $this->get( "/extras/scripts/", $params );
}
2024-02-12 11:28:56 +01:00
/**
* @param int $id
* @param array $params
*
* @return mixed
* @throws GuzzleException
*/
public function show( int $id, array $params = [] ) {
return $this->get( "/extras/scripts/" . $id . "/", $params );
}
}