|  Download Swagger\Client\RoomsApiAll URIs are relative to https://api.scloby.com/v2 Method | HTTP request | Description
------------- | ------------- | -------------
roomsGet | GET /rooms | Get All Rooms
roomsIdDelete | DELETE /rooms/{id} | Delete existing Room
roomsIdGet | GET /rooms/{id} | Get existing Printer
roomsIdPut | PUT /rooms/{id} | Edit existing Room
roomsPost | POST /rooms | Add new Room roomsGet> \Swagger\Client\Model\Rooms roomsGet($pagination, $per_page, $page) Get All Rooms Returns a Json with data about all rooms of selected shop.  Paginated by default (per_page=1000) Example<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oAuth2AuthCode
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Swagger\Client\Api\RoomsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$pagination = true; // bool | Pagination parameter
$per_page = 56; // int | Results_per_page
$page = 56; // int | PAGE_NUMBER(starting from 0 to TOTAL_PAGE-1)
try {
    $result = $apiInstance->roomsGet($pagination, $per_page, $page);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoomsApi->roomsGet: ', $e->getMessage(), PHP_EOL;
}
?>
 ParametersName | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 pagination | bool| Pagination parameter | [optional]
 per_page | int| Results_per_page | [optional]
 page | int| PAGE_NUMBER(starting from 0 to TOTAL_PAGE-1) | [optional] Return type\Swagger\Client\Model\Rooms AuthorizationoAuth2AuthCode HTTP request headers - Content-Type: Not defined
 - Accept: application/json [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) roomsIdDelete> roomsIdDelete($id) Delete existing Room In this case you must specify the id in the URL, but it is no necessary in the request body Example<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oAuth2AuthCode
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Swagger\Client\Api\RoomsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$id = "id_example"; // string | id of the Room that need to be deleted
try {
    $apiInstance->roomsIdDelete($id);
} catch (Exception $e) {
    echo 'Exception when calling RoomsApi->roomsIdDelete: ', $e->getMessage(), PHP_EOL;
}
?>
 ParametersName | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 id | string| id of the Room that need to be deleted | Return typevoid (empty response body) AuthorizationoAuth2AuthCode HTTP request headers - Content-Type: Not defined
 - Accept: Not defined [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) roomsIdGet> \Swagger\Client\Model\Rooms roomsIdGet($id) Get existing Printer In this case you must specify the id in the URL Example<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oAuth2AuthCode
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Swagger\Client\Api\RoomsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$id = "id_example"; // string | id of the Printer
try {
    $result = $apiInstance->roomsIdGet($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoomsApi->roomsIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
 ParametersName | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 id | string| id of the Printer | Return type\Swagger\Client\Model\Rooms AuthorizationoAuth2AuthCode HTTP request headers - Content-Type: Not defined
 - Accept: application/json [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) roomsIdPut> \Swagger\Client\Model\Rooms roomsIdPut($body, $id) Edit existing Room In this case you must specify the id in the URL and change the data you wanna update Example<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oAuth2AuthCode
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Swagger\Client\Api\RoomsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$body = new \Swagger\Client\Model\Rooms(); // \Swagger\Client\Model\Rooms | Object data that need to be updated
$id = "id_example"; // string | id of the Room that need to be updated
try {
    $result = $apiInstance->roomsIdPut($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoomsApi->roomsIdPut: ', $e->getMessage(), PHP_EOL;
}
?>
 ParametersName | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 body | \Swagger\Client\Model\Rooms| Object data that need to be updated |
 id | string| id of the Room that need to be updated | Return type\Swagger\Client\Model\Rooms AuthorizationoAuth2AuthCode HTTP request headers - Content-Type: application/json
 - Accept: application/json [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) roomsPost> \Swagger\Client\Model\Rooms roomsPost($body) Add new Room Returns a Json with the data of the new Room Example<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oAuth2AuthCode
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Swagger\Client\Api\RoomsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$body = new \Swagger\Client\Model\Rooms(); // \Swagger\Client\Model\Rooms | Room object that needs to be added.
try {
    $result = $apiInstance->roomsPost($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoomsApi->roomsPost: ', $e->getMessage(), PHP_EOL;
}
?>
 ParametersName | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 body | \Swagger\Client\Model\Rooms| Room object that needs to be added. | Return type\Swagger\Client\Model\Rooms AuthorizationoAuth2AuthCode HTTP request headers - Content-Type: application/json
 - Accept: application/json [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) |