{"id":36978165,"url":"https://github.com/gonebusy/gonebusy-php-client","last_synced_at":"2026-01-13T22:47:37.135Z","repository":{"id":24746546,"uuid":"28159208","full_name":"gonebusy/gonebusy-php-client","owner":"gonebusy","description":"A PHP SDK for accessing the Gonebusy API","archived":false,"fork":false,"pushed_at":"2017-06-19T00:12:50.000Z","size":301,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-11-27T14:58:55.523Z","etag":null,"topics":["gonebusy","php","php-sdk","sdk"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gonebusy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-17T22:56:49.000Z","updated_at":"2017-06-16T07:01:58.000Z","dependencies_parsed_at":"2022-09-05T22:00:21.916Z","dependency_job_id":null,"html_url":"https://github.com/gonebusy/gonebusy-php-client","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/gonebusy/gonebusy-php-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gonebusy%2Fgonebusy-php-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gonebusy%2Fgonebusy-php-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gonebusy%2Fgonebusy-php-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gonebusy%2Fgonebusy-php-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gonebusy","download_url":"https://codeload.github.com/gonebusy/gonebusy-php-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gonebusy%2Fgonebusy-php-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28403726,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gonebusy","php","php-sdk","sdk"],"created_at":"2026-01-13T22:47:36.384Z","updated_at":"2026-01-13T22:47:37.124Z","avatar_url":"https://github.com/gonebusy.png","language":"PHP","readme":"[![Build Status](https://travis-ci.org/gonebusy/gonebusy-php-client.svg?branch=master)](https://travis-ci.org/gonebusy/gonebusy-php-client)\n[![PHP version](https://badge.fury.io/ph/gonebusy%2Fgonebusy-php-client.svg)](https://badge.fury.io/ph/gonebusy%2Fgonebusy-php-client)\n\n# PHP SDK for the Gonebusy REST API\n\n## Sandbox\n\nWe have a Sandbox environment to play with!\n\nTo point at the Sandbox, just use [sandbox.gonebusy.com](https://sandbox.gonebusy.com) instead of where you see beta.gonebusy.com referenced, including where to create an account to retrieve your API Key.\n\nThe Sandbox environment is completely separate from the Live site - that includes meaning your Sandbox API Key will not work in the Live environment.\n\n## How to Use\n\n### Summary of Gonebusy objects\n(more info on the [Developer Portal](https://gonebusy.github.io/api/)):\n\n* A **User** is required to perform operations.\n* A **Resource** (WHO) performs Services and is needed for all scheduling operations.\n_Each User is assigned a default Resource (her/himself) automatically._\n* A **Service** (WHAT) is performed by Resources according to a Schedule.\n_Services are assigned a **Pricing Model**._\n_Services can be assigned a **Category** as well._\n* A **Schedule** (WHEN) defines when a Service is performed by a Resource.  Pieces of a Schedule are called **Time Windows**.\n* Finally, a **Booking** is placed (at a particular Time Window) in a Schedule, linking it to a Resource-Service combo.\n* A **Search** of users and services can be performed.\n\n### API Key\n\nIf testing with Sandbox, [Signup/Logon](https://sandbox.gonebusy.com/login) at https://sandbox.gonebusy.com/login.\n\nIf using Production site, [Signup/Logon](https://beta.gonebusy.com/login) at https://beta.gonebusy.com/login.\n\nOnce logged in, navigate to the API Key page and request an API key.\n\n### Initialization/Authentication\n\nIn order to setup authentication and initialization of the API client, you need the following information.\n\n| Parameter | Description |\n|-----------|-------------|\n| authorization | Set Authorization to \"Token _your API key_\" |\n\nAPI client can be initialized as following.\n\n```php\n// Configuration parameters and credentials\n$authorization = \"Token \u003cyour API key\u003e\"; // Set Authorization to \"Token \u003cyour API key\u003e\"\n\n$client = new GonebusyLib\\GonebusyClient($authorization);\n```\n\n---\n\n## How to Build\n\n### Composer Install\n\n```sh\n\u003e composer install\nLoading composer repositories with package information\nInstalling dependencies (including require-dev) from lock file\n  - Installing apimatic/jsonmapper (v1.2.0)\n    Loading from cache\n\n  [ ... snip ... ]\n\n  - Installing squizlabs/php_codesniffer (2.9.0)\n    Downloading: 100%\n\nsymfony/yaml suggests installing symfony/console (For validating YAML files using the lint command)\nsebastian/global-state suggests installing ext-uopz (*)\nphpunit/php-code-coverage suggests installing ext-xdebug (^2.5.1)\nphpunit/phpunit suggests installing ext-xdebug (*)\nphpunit/phpunit suggests installing phpunit/php-invoker (~1.1)\nGenerating autoload files\n```\n\n### [For Windows Users Only] Configuring CURL Certificate Path in php.ini\n\nCURL used to include a list of accepted CAs, but no longer bundles ANY CA certs. So by default it will reject all SSL certificates as unverifiable. You will have to get your CA's cert and point curl at it. The steps are as follows:\n\n1. Download the certificate bundle (.pem file) from [https://curl.haxx.se/docs/caextract.html](https://curl.haxx.se/docs/caextract.html) on to your system.\n2. Add curl.cainfo = \"PATH_TO/cacert.pem\" to your php.ini file located in your php installation. “PATH_TO” must be an absolute path containing the .pem file.\n\n```ini\n[curl]\n; A default value for the CURLOPT_CAINFO option. This is required to be an\n; absolute path.\n;curl.cainfo =\n```\n\n## How to Test\n\nUnit tests in this SDK can be run using PHPUnit. The test cases are located in the test/Controllers/ dir.\n\n1. Make sure you've installed the dependencies using composer including the `require-dev` dependencies.\n1. Run `vendor/bin/phpunit` from command line to execute the test suite.\n   See https://phpunit.de/manual/current/en/textui.html for info on test output format as well as more command-line options.\n1. Optionally, to check the code standards you may run `vendor/bin/phpcs` (See `phpcs.xml`). (No output means no problems.)\n\n---\n\n## Class Reference\n\n### \u003ca name=\"list_of_controllers\"\u003e\u003c/a\u003eList of Controllers\n\n* [BookingsController](#bookings_controller)\n* [CategoriesController](#categories_controller)\n* [PricingModelsController](#pricing_models_controller)\n* [ResourcesController](#resources_controller)\n* [SchedulesController](#schedules_controller)\n* [SearchController](#search_controller)\n* [ServicesController](#services_controller)\n* [UsersController](#users_controller)\n\n### \u003ca name=\"bookings_controller\"\u003e\u003c/a\u003e![Class: ](https://apidocs.io/img/class.png \".BookingsController\") BookingsController\n\n#### Get singleton instance\n\nThe singleton instance of the ``` BookingsController ``` class can be accessed from the API Client.\n\n```php\n$bookings = $client-\u003egetBookings();\n```\n\n#### \u003ca name=\"get_bookings\"\u003e\u003c/a\u003e![Method: ](https://apidocs.io/img/method.png \".BookingsController.getBookings\") getBookings\n\n\u003e Return list of Bookings.\n\n\n```php\nfunction getBookings(\n        $authorization,\n        $page = 1,\n        $perPage = 10,\n        $states = null,\n        $userId = null)\n```\n\n#### Parameters\n\n| Parameter | Tags | Description |\n|-----------|------|-------------|\n| authorization |  ``` Required ```  | A valid API key, in the format 'Token API_KEY' |\n| page |  ``` Optional ```  ``` DefaultValue ```  | Page offset to fetch. |\n| perPage |  ``` Optional ```  ``` DefaultValue ```  | Number of results to return per page. |\n| states |  ``` Optional ```  | Comma-separated list of Booking states to retrieve only Bookings in those states.  Leave blank to retrieve all Bookings. |\n| userId |  ``` Optional ```  | Retrieve Bookings for Resources/Services owned by this User Id.  You must be authorized to manage this User Id. |\n| bookerId |  ``` Optional ```  | Retrieve Bookings made by Booker Id. |\n\n\n\n#### Example Usage\n\n```php\n$authorization = 'Authorization';\n$page = 1;\n$perPage = 10;\n$states = 'states';\n$userId = 131;\n\n$result = $bookings-\u003egetBookings($authorization, $page, $perPage, $states, $userId);\n\n```\n\n#### Errors\n\n| Error Code | Error Description |\n|------------|-------------------|\n| 401 | Unauthorized/Missing Token |\n| 403 | Forbidden |\n| 404 | Not Found |\n| 0 | Unexpected error |\n\n\n\n#### \u003ca name=\"create_booking\"\u003e\u003c/a\u003e![Method: ](https://apidocs.io/img/method.png \".BookingsController.createBooking\") createBooking\n\n\u003e Create a Booking with params\n\n\n```php\nfunction createBooking(\n        $authorization,\n        $createBookingBody = null)\n```\n\n#### Parameters\n\n| Parameter | Tags | Description |\n|-----------|------|-------------|\n| authorization |  ``` Required ```  | A valid API key, in the format 'Token API_KEY' |\n| createBookingBody |  ``` Optional ```  | the content of the request |\n\n\n\n#### Example Usage\n\n```php\n$authorization = 'Authorization';\n$createBookingBody = new CreateBookingBody();\n\n$result = $bookings-\u003ecreateBooking($authorization, $createBookingBody);\n\n```\n\n#### Errors\n\n| Error Code | Error Description |\n|------------|-------------------|\n| 400 | Bad Request |\n| 401 | Unauthorized/Missing Token |\n| 403 | Forbidden |\n| 422 | Unprocessable Entity |\n| 0 | Unexpected error |\n\n\n\n#### \u003ca name=\"get_booking_by_id\"\u003e\u003c/a\u003e![Method: ](https://apidocs.io/img/method.png \".BookingsController.getBookingById\") getBookingById\n\n\u003e Return a Booking by id.\n\n\n```php\nfunction getBookingById(\n        $authorization,\n        $id)\n```\n\n#### Parameters\n\n| Parameter | Tags | Description |\n|-----------|------|-------------|\n| authorization |  ``` Required ```  | A valid API key, in the format 'Token API_KEY' |\n| id |  ``` Required ```  | TODO: Add a parameter description |\n\n\n\n#### Example Usage\n\n```php\n$authorization = 'Authorization';\n$id = 'id';\n\n$result = $bookings-\u003egetBookingById($authorization, $id);\n\n```\n\n#### Errors\n\n| Error Code | Error Description |\n|------------|-------------------|\n| 400 | Bad Request |\n| 401 | Unauthorized/Missing Token |\n| 403 | Forbidden |\n| 404 | Not Found |\n| 0 | Unexpected error |\n\n\n\n#### \u003ca name=\"update_booking_by_id\"\u003e\u003c/a\u003e![Method: ](https://apidocs.io/img/method.png \".BookingsController.updateBookingById\") updateBookingById\n\n\u003e Update a Booking by id\n\n\n```php\nfunction updateBookingById(\n        $authorization,\n        $id,\n        $updateBookingByIdBody = null)\n```\n\n#### Parameters\n\n| Parameter | Tags | Description |\n|-----------|------|-------------|\n| authorization |  ``` Required ```  | A valid API key, in the format 'Token API_KEY' |\n| id |  ``` Required ```  | TODO: Add a parameter description |\n| updateBookingByIdBody |  ``` Optional ```  | the content of the request |\n\n\n\n#### Example Usage\n\n```php\n$authorization = 'Authorization';\n$id = 'id';\n$updateBookingByIdBody = new UpdateBookingByIdBody();\n\n$result = $bookings-\u003eupdateBookingById($authorization, $id, $updateBookingByIdBody);\n\n\n#### Errors\n\n| Error Code | Error Description |\n|------------|-------------------|\n| 400 | Bad Request |\n| 401 | Unauthorized/Missing Token |\n| 403 | Forbidden |\n| 404 | Not Found |\n| 422 | Unprocessable Entity |\n| 0 | Unexpected error |\n\n\n\n#### \u003ca name=\"cancel_booking_by_id\"\u003e\u003c/a\u003e![Method: ](https://apidocs.io/img/method.png \".BookingsController.cancelBookingById\") cancelBookingById\n\n\u003e Cancel a Booking by id\n\n\n```php\nfunction cancelBookingById(\n        $authorization,\n        $id,\n        $cancelRecurring = null,\n        $date = null,\n        $endDate = null)\n```\n\n#### Parameters\n\n| Parameter | Tags | Description |\n|-----------|------|-------------|\n| authorization |  ``` Required ```  | A valid API key, in the format 'Token API_KEY' |\n| id |  ``` Required ```  | TODO: Add a parameter description |\n| cancelRecurring |  ``` Optional ```  | When a recurring booking, one of: ['instance', 'all', 'infinite'] |\n| date |  ``` Optional ```  | If a recurring booking, the date of an instance to cancel.  Several formats are supported: '2014-10-31', 'October 31, 2014' |\n| endDate |  ``` Optional ```  | If recurring, cancel up to :end_date or leave blank for infinite booking.  Several formats are supported: '2014-10-31', 'October 31, 2014'. |\n\n\n\n#### Example Usage\n\n```php\n$authorization = 'Authorization';\n$id = 'id';\n$cancelRecurring = 'cancel_recurring';\n$date = date(\"D M d, Y G:i\");\n$endDate = date(\"D M d, Y G:i\");\n\n$result = $bookings-\u003ecancelBookingById($authorization, $id, $cancelRecurring, $date, $endDate);\n\n```\n\n#### Errors\n\n| Error Code | Error Description |\n|------------|-------------------|\n| 400 | Bad Request |\n| 401 | Unauthorized/Missing Token |\n| 403 | Forbidden |\n| 404 | Not Found |\n| 0 | Unexpected error |\n\n\n\n[Back to List of Controllers](#list_of_controllers)\n\n### \u003ca name=\"categories_controller\"\u003e\u003c/a\u003e![Class: ](https://apidocs.io/img/class.png \".CategoriesController\") CategoriesController\n\n#### Get singleton instance\n\nThe singleton instance of the ``` CategoriesController ``` class can be accessed from the API Client.\n\n```php\n$categories = $client-\u003egetCategories();\n```\n\n#### \u003ca name=\"get_categories\"\u003e\u003c/a\u003e![Method: ](https://apidocs.io/img/method.png \".CategoriesController.getCategories\") getCategories\n\n\u003e Return list of Categories.\n\n\n```php\nfunction getCategories(\n        $authorization,\n        $page = 1,\n        $perPage = 10,\n        $userId = null)\n```\n\n#### Parameters\n\n| Parameter | Tags | Description |\n|-----------|------|-------------|\n| authorization |  ``` Required ```  | A valid API key, in the format 'Token API_KEY' |\n| page |  ``` Optional ```  ``` DefaultValue ```  | Page offset to fetch. |\n| perPage |  ``` Optional ```  ``` DefaultValue ```  | Number of results to return per page. |\n| userId |  ``` Optional ```  | Retrieve Categories of all services provided by this User Id.  You must be authorized to manage this User Id. |\n\n\n\n#### Example Usage\n\n```php\n$authorization = 'Authorization';\n$page = 1;\n$perPage = 10;\n$userId = 131;\n\n$result = $categories-\u003egetCategories($authorization, $page, $perPage, $userId);\n\n```\n\n#### Errors\n\n| Error Code | Error Description |\n|------------|-------------------|\n| 400 | Bad Request |\n| 401 | Unauthorized/Missing Token |\n| 403 | Forbidden |\n| 0 | Unexpected error |\n\n\n\n#### \u003ca name=\"create_category\"\u003e\u003c/a\u003e![Method: ](https://apidocs.io/img/method.png \".CategoriesController.createCategory\") createCategory\n\n\u003e Create a Category\n\n\n```php\nfunction createCategory(\n        $authorization,\n        $createCategoryBody = null)\n```\n\n#### Parameters\n\n| Parameter | Tags | Description |\n|-----------|------|-------------|\n| authorization |  ``` Required ```  | A valid API key, in the format 'Token API_KEY' |\n| createCategoryBody |  ``` Optional ```  | the content of the request |\n\n\n\n#### Example Usage\n\n```php\n$authorization = 'Authorization';\n$createCategoryBody = new CreateCategoryBody();\n\n$result = $categories-\u003ecreateCategory($authorization, $createCategoryBody);\n\n```\n\n#### Errors\n\n| Error Code | Error Description |\n|------------|-------------------|\n| 400 | Bad Request |\n| 401 | Unauthorized/Missing Token |\n| 403 | Forbidden |\n| 422 | Unprocessable Entity |\n| 0 | Unexpected error |\n\n\n\n#### \u003ca name=\"get_category_by_id\"\u003e\u003c/a\u003e![Method: ](https://apidocs.io/img/method.png \".CategoriesController.getCategoryById\") getCategoryById\n\n\u003e Return a Category by id.\n\n\n```php\nfunction getCategoryById(\n        $authorization,\n        $id)\n```\n\n#### Parameters\n\n| Parameter | Tags | Description |\n|-----------|------|-------------|\n| authorization |  ``` Required ```  | A valid API key, in the format 'Token API_KEY' |\n| id |  ``` Required ```  | TODO: Add a parameter description |\n\n\n\n#### Example Usage\n\n```php\n$authorization = 'Authorization';\n$id = 'id';\n\n$result = $categories-\u003egetCategoryById($authorization, $id);\n\n```\n\n#### Errors\n\n| Error Code | Error Description |\n|------------|-------------------|\n| 400 | Bad Request |\n| 401 | Unauthorized/Missing Token |\n| 403 | Forbidden |\n| 404 | Not Found |\n| 0 | Unexpected error |\n\n\n\n[Back to List of Controllers](#list_of_controllers)\n\n### \u003ca name=\"pricing_models_controller\"\u003e\u003c/a\u003e![Class: ](https://apidocs.io/img/class.png \".PricingModelsController\") PricingModelsController\n\n#### Get singleton instance\n\nThe singleton instance of the ``` PricingModelsController ``` class can be accessed from the API Client.\n\n```php\n$pricingModels = $client-\u003egetPricingModels();\n```\n\n#### \u003ca name=\"get_pricing_models\"\u003e\u003c/a\u003e![Method: ](https://apidocs.io/img/method.png \".PricingModelsController.getPricingModels\") getPricingModels\n\n\u003e Return list of PricingModels.\n\n\n```php\nfunction getPricingModels(\n        $authorization,\n        $page = 1,\n        $perPage = 10,\n        $userId = null)\n```\n\n#### Parameters\n\n| Parameter | Tags | Description |\n|-----------|------|-------------|\n| authorization |  ``` Required ```  | A valid API key, in the format 'Token API_KEY' |\n| page |  ``` Optional ```  ``` DefaultValue ```  | Page offset to fetch. |\n| perPage |  ``` Optional ```  ``` DefaultValue ```  | Number of results to return per page. |\n| userId |  ``` Optional ```  | Retrieve PricingModels owned only by this User Id.  You must be authorized to manage this User Id. |\n\n\n\n#### Example Usage\n\n```php\n$authorization = 'Authorization';\n$page = 1;\n$perPage = 10;\n$userId = 131;\n\n$result = $pricingModels-\u003egetPricingModels($authorization, $page, $perPage, $userId);\n\n```\n\n#### Errors\n\n| Error Code | Error Description |\n|------------|-------------------|\n| 401 | Unauthorized/Missing Token |\n| 403 | Forbidden |\n| 404 | Not Found |\n| 0 | Unexpected error |\n\n\n\n#### \u003ca name=\"create_pricing_model\"\u003e\u003c/a\u003e![Method: ](https://apidocs.io/img/method.png \".PricingModelsController.createPricingModel\") createPricingModel\n\n\u003e Create a PricingModel with params\n\n\n```php\nfunction createPricingModel(\n        $authorization,\n        $createPricingModelBody = null)\n```\n\n#### Parameters\n\n| Parameter | Tags | Description |\n|-----------|------|-------------|\n| authorization |  ``` Required ```  | A valid API key, in the format 'Token API_KEY' |\n| createPricingModelBody |  ``` Optional ```  | the content of the request |\n\n\n\n#### Example Usage\n\n```php\n$authorization = 'Authorization';\n$createPricingModelBody = new CreatePricingModelBody();\n\n$result = $pricingModels-\u003ecreatePricingModel($authorization, $createPricingModelBody);\n\n```\n\n#### Errors\n\n| Error Code | Error Description |\n|------------|-------------------|\n| 400 | Bad Request |\n| 401 | Unauthorized/Missing Token |\n| 403 | Forbidden |\n| 422 | Unprocessable Entity |\n| 0 | Unexpected error |\n\n\n\n#### \u003ca name=\"get_pricing_model_by_id\"\u003e\u003c/a\u003e![Method: ](https://apidocs.io/img/method.png \".PricingModelsController.getPricingModelById\") getPricingModelById\n\n\u003e Return a PricingModel by id.\n\n\n```php\nfunction getPricingModelById(\n        $authorization,\n        $id)\n```\n\n#### Parameters\n\n| Parameter | Tags | Description |\n|-----------|------|-------------|\n| authorization |  ``` Required ```  | A valid API key, in the format 'Token API_KEY' |\n| id |  ``` Required ```  | TODO: Add a parameter description |\n\n\n\n#### Example Usage\n\n```php\n$authorization = 'Authorization';\n$id = 'id';\n\n$result = $pricingModels-\u003egetPricingModelById($authorization, $id);\n\n```\n\n#### Errors\n\n| Error Code | Error Description |\n|------------|-------------------|\n| 400 | Bad Request |\n| 401 | Unauthorized/Missing Token |\n| 403 | Forbidden |\n| 404 | Not Found |\n| 0 | Unexpected error |\n\n\n\n#### \u003ca name=\"update_pricing_model_by_id\"\u003e\u003c/a\u003e![Method: ](https://apidocs.io/img/method.png \".PricingModelsController.updatePricingModelById\") updatePricingModelById\n\n\u003e Update a PricingModel by id, with params\n\n\n```php\nfunction updatePricingModelById(\n        $authorization,\n        $id,\n        $updatePricingModelByIdBody = null)\n```\n\n#### Parameters\n\n| Parameter | Tags | Description |\n|-----------|------|-------------|\n| authorization |  ``` Required ```  | A valid API key, in the format 'Token API_KEY' |\n| id |  ``` Required ```  | TODO: Add a parameter description |\n| updatePricingModelByIdBody |  ``` Optional ```  | the content of the request |\n\n\n\n#### Example Usage\n\n```php\n$authorization = 'Authorization';\n$id = 'id';\n$updatePricingModelByIdBody = new UpdatePricingModelByIdBody();\n\n$result = $pricingModels-\u003eupdatePricingModelById($authorization, $id, $updatePricingModelByIdBody);\n\n```\n\n#### Errors\n\n| Error Code | Error Description |\n|------------|-------------------|\n| 400 | Bad Request |\n| 401 | Unauthorized/Missing Token |\n| 403 | Forbidden |\n| 404 | Not Found |\n| 422 | Unprocessable Entity |\n| 0 | Unexpected error |\n\n\n\n[Back to List of Controllers](#list_of_controllers)\n\n### \u003ca name=\"resources_controller\"\u003e\u003c/a\u003e![Class: ](https://apidocs.io/img/class.png \".ResourcesController\") ResourcesController\n\n#### Get singleton instance\n\nThe singleton instance of the ``` ResourcesController ``` class can be accessed from the API Client.\n\n```php\n$resources = $client-\u003egetResources();\n```\n\n#### \u003ca name=\"get_resources\"\u003e\u003c/a\u003e![Method: ](https://apidocs.io/img/method.png \".ResourcesController.getResources\") getResources\n\n\u003e Return list of Resources.\n\n\n```php\nfunction getResources(\n        $authorization,\n        $page = 1,\n        $perPage = 10,\n        $userId = null)\n```\n\n#### Parameters\n\n| Parameter | Tags | Description |\n|-----------|------|-------------|\n| authorization |  ``` Required ```  | A valid API key, in the format 'Token API_KEY' |\n| page |  ``` Optional ```  ``` DefaultValue ```  | Page offset to fetch. |\n| perPage |  ``` Optional ```  ``` DefaultValue ```  | Number of results to return per page. |\n| userId |  ``` Optional ```  | Retrieve Resources owned only by this User Id.  You must be authorized to manage this User Id. |\n\n\n\n#### Example Usage\n\n```php\n$authorization = 'Authorization';\n$page = 1;\n$perPage = 10;\n$userId = 89;\n\n$result = $resources-\u003egetResources($authorization, $page, $perPage, $userId);\n\n```\n\n#### Errors\n\n| Error Code | Error Description |\n|------------|-------------------|\n| 401 | Unauthorized/Missing Token |\n| 403 | Forbidden |\n| 404 | Not Found |\n| 0 | Unexpected error |\n\n\n\n#### \u003ca name=\"create_resource\"\u003e\u003c/a\u003e![Method: ](https://apidocs.io/img/method.png \".ResourcesController.createResource\") createResource\n\n\u003e Create a Resource with params\n\n\n```php\nfunction createResource(\n        $authorization,\n        $createResourceBody = null)\n```\n\n#### Parameters\n\n| Parameter | Tags | Description |\n|-----------|------|-------------|\n| authorization |  ``` Required ```  | A valid API key, in the format 'Token API_KEY' |\n| createResourceBody |  ``` Optional ```  | the content of the request |\n\n\n\n#### Example Usage\n\n```php\n$authorization = 'Authorization';\n$createResourceBody = new CreateResourceBody();\n\n$result = $resources-\u003ecreateResource($authorization, $createResourceBody);\n\n```\n\n#### Errors\n\n| Error Code | Error Description |\n|------------|-------------------|\n| 400 | Bad Request |\n| 401 | Unauthorized/Missing Token |\n| 403 | Forbidden |\n| 422 | Unprocessable Entity |\n| 0 | Unexpected error |\n\n\n\n#### \u003ca name=\"get_resource_things\"\u003e\u003c/a\u003e![Method: ](https://apidocs.io/img/method.png \".ResourcesController.getResourceThings\") getResourceThings\n\n\u003e Return all Resource Things.\n\n\n```php\nfunction getResourceThings(\n        $authorization,\n        $page = 1,\n        $perPage = 10)\n```\n\n#### Parameters\n\n| Parameter | Tags | Description |\n|-----------|------|-------------|\n| authorization |  ``` Required ```  | A valid API key, in the format 'Token API_KEY' |\n| page |  ``` Optional ```  ``` DefaultValue ```  | Page offset to fetch. |\n| perPage |  ``` Optional ```  ``` DefaultValue ```  | Number of results to return per page. |\n\n\n\n#### Example Usage\n\n```php\n$authorization = 'Authorization';\n$page = 1;\n$perPage = 10;\n\n$result = $resources-\u003egetResourceThings($authorization, $page, $perPage);\n\n```\n\n#### Errors\n\n| Error Code | Error Description |\n|------------|-------------------|\n| 400 | Bad Request |\n| 401 | Unauthorized/Missing Token |\n| 403 | Forbidden |\n| 0 | Unexpected error |\n\n\n\n#### \u003ca name=\"get_resource_by_id\"\u003e\u003c/a\u003e![Method: ](https://apidocs.io/img/method.png \".ResourcesController.getResourceById\") getResourceById\n\n\u003e Return a Resource by id.\n\n\n```php\nfunction getResourceById(\n        $authorization,\n        $id)\n```\n\n#### Parameters\n\n| Parameter | Tags | Description |\n|-----------|------|-------------|\n| authorization |  ``` Required ```  | A valid API key, in the format 'Token API_KEY' |\n| id |  ``` Required ```  | TODO: Add a parameter description |\n\n\n\n#### Example Usage\n\n```php\n$authorization = 'Authorization';\n$id = 'id';\n\n$result = $resources-\u003egetResourceById($authorization, $id);\n\n```\n\n#### Errors\n\n| Error Code | Error Description |\n|------------|-------------------|\n| 400 | Bad Request |\n| 401 | Unauthorized/Missing Token |\n| 403 | Forbidden |\n| 404 | Not Found |\n| 0 | Unexpected error |\n\n\n\n#### \u003ca name=\"update_resource_by_id\"\u003e\u003c/a\u003e![Method: ](https://apidocs.io/img/method.png \".ResourcesController.updateResourceById\") updateResourceById\n\n\u003e Update a Resource by id, with params\n\n\n```php\nfunction updateResourceById(\n        $authorization,\n        $id,\n        $updateResourceByIdBody = null)\n```\n\n#### Parameters\n\n| Parameter | Tags | Description |\n|-----------|------|-------------|\n| authorization |  ``` Required ```  | A valid API key, in the format 'Token API_KEY' |\n| id |  ``` Required ```  | TODO: Add a parameter description |\n| updateResourceByIdBody |  ``` Optional ```  | the content of the request |\n\n\n\n#### Example Usage\n\n```php\n$authorization = 'Authorization';\n$id = 'id';\n$updateResourceByIdBody = new UpdateResourceByIdBody();\n\n$result = $resources-\u003eupdateResourceById($authorization, $id, $updateResourceByIdBody);\n\n```\n\n#### Errors\n\n| Error Code | Error Description |\n|------------|-------------------|\n| 400 | Bad Request |\n| 401 | Unauthorized/Missing Token |\n| 403 | Forbidden |\n| 404 | Not Found |\n| 422 | Unprocessable Entity |\n| 0 | Unexpected error |\n\n\n\n#### \u003ca name=\"delete_resource_by_id\"\u003e\u003c/a\u003e![Method: ](https://apidocs.io/img/method.png \".ResourcesController.deleteResourceById\") deleteResourceById\n\n\u003e Delete a Resource by id\n\n\n```php\nfunction deleteResourceById(\n        $authorization,\n        $id)\n```\n\n#### Parameters\n\n| Parameter | Tags | Description |\n|-----------|------|-------------|\n| authorization |  ``` Required ```  | A valid API key, in the format 'Token API_KEY' |\n| id |  ``` Required ```  | TODO: Add a parameter description |\n\n\n\n#### Example Usage\n\n```php\n$authorization = 'Authorization';\n$id = 'id';\n\n$result = $resources-\u003edeleteResourceById($authorization, $id);\n\n```\n\n#### Errors\n\n| Error Code | Error Description |\n|------------|-------------------|\n| 400 | Bad Request |\n| 401 | Unauthorized/Missing Token |\n| 403 | Forbidden |\n| 404 | Not Found |\n| 0 | Unexpected error |\n\n\n\n[Back to List of Controllers](#list_of_controllers)\n\n### \u003ca name=\"schedules_controller\"\u003e\u003c/a\u003e![Class: ](https://apidocs.io/img/class.png \".SchedulesController\") SchedulesController\n\n#### Get singleton instance\n\nThe singleton instance of the ``` SchedulesController ``` class can be accessed from the API Client.\n\n```php\n$schedules = $client-\u003egetSchedules();\n```\n\n#### \u003ca name=\"get_schedules\"\u003e\u003c/a\u003e![Method: ](https://apidocs.io/img/method.png \".SchedulesController.getSchedules\") getSchedules\n\n\u003e Return all Schedules that your account has access to.  Includes Schedules for your own User as well as any Users for which you are the Account Manager.\n\n\n```php\nfunction getSchedules(\n        $authorization,\n        $page = 1,\n        $perPage = 10,\n        $userId = null)\n```\n\n#### Parameters\n\n| Parameter | Tags | Description |\n|-----------|------|-------------|\n| authorization |  ``` Required ```  | A valid API key, in the format 'Token API_KEY' |\n| page |  ``` Optional ```  ``` DefaultValue ```  | Page offset to fetch. |\n| perPage |  ``` Optional ```  ``` DefaultValue ```  | Number of results to return per page. |\n| userId |  ``` Optional ```  | Retrieve Schedules owned only by this User Id.  You must be authorized to manage this User Id. |\n\n\n\n#### Example Usage\n\n```php\n$authorization = 'Authorization';\n$page = 1;\n$perPage = 10;\n$userId = 89;\n\n$result = $schedules-\u003egetSchedules($authorization, $page, $perPage, $userId);\n\n```\n\n#### Errors\n\n| Error Code | Error Description |\n|------------|-------------------|\n| 400 | Bad Request |\n| 401 | Unauthorized/Missing Token |\n| 403 | Forbidden |\n| 404 | Not Found |\n| 0 | Unexpected error |\n\n\n\n#### \u003ca name=\"create_schedule\"\u003e\u003c/a\u003e![Method: ](https://apidocs.io/img/method.png \".SchedulesController.createSchedule\") createSchedule\n\n\u003e Create a Schedule with params.\n\n\n```php\nfunction createSchedule(\n        $authorization,\n        $createScheduleBody = null)\n```\n\n#### Parameters\n\n| Parameter | Tags | Description |\n|-----------|------|-------------|\n| authorization |  ``` Required ```  | A valid API key, in the format 'Token API_KEY' |\n| createScheduleBody |  ``` Optional ```  | the content of the request |\n\n\n\n#### Example Usage\n\n```php\n$authorization = 'Authorization';\n$createScheduleBody = new CreateScheduleBody();\n\n$result = $schedules-\u003ecreateSchedule($authorization, $createScheduleBody);\n\n```\n\n#### Errors\n\n| Error Code | Error Description |\n|------------|-------------------|\n| 400 | Bad Request |\n| 401 | Unauthorized/Missing Token |\n| 403 | Forbidden |\n| 404 | Not Found |\n| 422 | Unprocessable Entity |\n| 0 | Unexpected error |\n\n\n\n#### \u003ca name=\"get_schedule_by_id\"\u003e\u003c/a\u003e![Method: ](https://apidocs.io/img/method.png \".SchedulesController.getScheduleById\") getScheduleById\n\n\u003e Return a Schedule by id.\n\n\n```php\nfunction getScheduleById(\n        $authorization,\n        $id)\n```\n\n#### Parameters\n\n| Parameter | Tags | Description |\n|-----------|------|-------------|\n| authorization |  ``` Required ```  | A valid API key, in the format 'Token API_KEY' |\n| id |  ``` Required ```  | TODO: Add a parameter description |\n\n\n\n#### Example Usage\n\n```php\n$authorization = 'Authorization';\n$id = 'id';\n\n$result = $schedules-\u003egetScheduleById($authorization, $id);\n\n```\n\n#### Errors\n\n| Error Code | Error Description |\n|------------|-------------------|\n| 400 | Bad Request |\n| 401 | Unauthorized/Missing Token |\n| 403 | Forbidden |\n| 404 | Not Found |\n| 410 | Gone |\n| 0 | Unexpected error |\n\n\n\n#### \u003ca name=\"delete_schedule_by_id\"\u003e\u003c/a\u003e![Method: ](https://apidocs.io/img/method.png \".SchedulesController.deleteScheduleById\") deleteScheduleById\n\n\u003e Delete a Schedule\n\n\n```php\nfunction deleteScheduleById(\n        $authorization,\n        $id)\n```\n\n#### Parameters\n\n| Parameter | Tags | Description |\n|-----------|------|-------------|\n| authorization |  ``` Required ```  | A valid API key, in the format 'Token API_KEY' |\n| id |  ``` Required ```  | TODO: Add a parameter description |\n\n\n\n#### Example Usage\n\n```php\n$authorization = 'Authorization';\n$id = 'id';\n\n$result = $schedules-\u003edeleteScheduleById($authorization, $id);\n\n```\n\n#### Errors\n\n| Error Code | Error Description |\n|------------|-------------------|\n| 400 | Bad Request |\n| 401 | Unauthorized/Missing Token |\n| 403 | Forbidden |\n| 404 | Not Found |\n| 0 | Unexpected error |\n\n\n\n#### \u003ca name=\"create_schedule_time_window\"\u003e\u003c/a\u003e![Method: ](https://apidocs.io/img/method.png \".SchedulesController.createScheduleTimeWindow\") createScheduleTimeWindow\n\n\u003e Add a TimeWindow to a Schedule.\n\n\n```php\nfunction createScheduleTimeWindow(\n        $authorization,\n        $id,\n        $createScheduleTimeWindowBody = null)\n```\n\n#### Parameters\n\n| Parameter | Tags | Description |\n|-----------|------|-------------|\n| authorization |  ``` Required ```  | A valid API key, in the format 'Token API_KEY' |\n| id |  ``` Required ```  | TODO: Add a parameter description |\n| createScheduleTimeWindowBody |  ``` Optional ```  | the content of the request |\n\n\n\n#### Example Usage\n\n```php\n$authorization = 'Authorization';\n$id = 'id';\n$createScheduleTimeWindowBody = new CreateScheduleTimeWindowBody();\n\n$result = $schedules-\u003ecreateScheduleTimeWindow($authorization, $id, $createScheduleTimeWindowBody);\n\n```\n\n#### Errors\n\n| Error Code | Error Description |\n|------------|-------------------|\n| 400 | Bad Request |\n| 401 | Unauthorized/Missing Token |\n| 403 | Forbidden |\n| 404 | Not Found |\n| 422 | Unprocessable Entity |\n| 0 | Unexpected error |\n\n\n\n#### \u003ca name=\"update_schedule_time_window_by_id\"\u003e\u003c/a\u003e![Method: ](https://apidocs.io/img/method.png \".SchedulesController.updateScheduleTimeWindowById\") updateScheduleTimeWindowById\n\n\u003e Update a TimeWindow for a Schedule.\n\n\n```php\nfunction updateScheduleTimeWindowById(\n        $authorization,\n        $id,\n        $timeWindowId,\n        $updateScheduleTimeWindowByIdBody = null)\n```\n\n#### Parameters\n\n| Parameter | Tags | Description |\n|-----------|------|-------------|\n| authorization |  ``` Required ```  | A valid API key, in the format 'Token API_KEY' |\n| id |  ``` Required ```  | TODO: Add a parameter description |\n| timeWindowId |  ``` Required ```  | TODO: Add a parameter description |\n| updateScheduleTimeWindowByIdBody |  ``` Optional ```  | the content of the request |\n\n\n\n#### Example Usage\n\n```php\n$authorization = 'Authorization';\n$id = 'id';\n$timeWindowId = 'time_window_id';\n$updateScheduleTimeWindowByIdBody = new UpdateScheduleTimeWindowByIdBody();\n\n$result = $schedules-\u003eupdateScheduleTimeWindowById($authorization, $id, $timeWindowId, $updateScheduleTimeWindowByIdBody);\n\n```\n\n#### Errors\n\n| Error Code | Error Description |\n|------------|-------------------|\n| 400 | Bad Request |\n| 401 | Unauthorized/Missing Token |\n| 403 | Forbidden |\n| 404 | Not Found |\n| 422 | Unprocessable Entity |\n| 0 | Unexpected error |\n\n\n\n#### \u003ca name=\"delete_schedule_time_window_by_id\"\u003e\u003c/a\u003e![Method: ](https://apidocs.io/img/method.png \".SchedulesController.deleteScheduleTimeWindowById\") deleteScheduleTimeWindowById\n\n\u003e Delete a TimeWindow from a Schedule\n\n\n```php\nfunction deleteScheduleTimeWindowById(\n        $authorization,\n        $id,\n        $timeWindowId)\n```\n\n#### Parameters\n\n| Parameter | Tags | Description |\n|-----------|------|-------------|\n| authorization |  ``` Required ```  | A valid API key, in the format 'Token API_KEY' |\n| id |  ``` Required ```  | TODO: Add a parameter description |\n| timeWindowId |  ``` Required ```  | TODO: Add a parameter description |\n\n\n\n#### Example Usage\n\n```php\n$authorization = 'Authorization';\n$id = 'id';\n$timeWindowId = 'time_window_id';\n\n$result = $schedules-\u003edeleteScheduleTimeWindowById($authorization, $id, $timeWindowId);\n\n```\n\n#### Errors\n\n| Error Code | Error Description |\n|------------|-------------------|\n| 400 | Bad Request |\n| 401 | Unauthorized/Missing Token |\n| 403 | Forbidden |\n| 404 | Not Found |\n| 0 | Unexpected error |\n\n\n\n[Back to List of Controllers](#list_of_controllers)\n\n### \u003ca name=\"search_controller\"\u003e\u003c/a\u003e![Class: ](https://apidocs.io/img/class.png \".SearchController\") SearchController\n\n#### Get singleton instance\n\nThe singleton instance of the ``` SearchController ``` class can be accessed from the API Client.\n\n```php\n$search = $client-\u003egetSearch();\n```\n\n#### \u003ca name=\"search_query\"\u003e\u003c/a\u003e![Method: ](https://apidocs.io/img/method.png \".SearchController.searchQuery\") searchQuery\n\n\u003e Search for Providers and Provided Services.\n\n\n```php\nfunction searchQuery(\n        $authorization,\n        $query)\n```\n\n#### Parameters\n\n| Parameter | Tags | Description |\n|-----------|------|-------------|\n| authorization |  ``` Required ```  | A valid API key, in the format 'Token API_KEY' |\n| query |  ``` Required ```  | TODO: Add a parameter description |\n\n\n\n#### Example Usage\n\n```php\n$authorization = 'Authorization';\n$query = 'query';\n\n$result = $search-\u003esearchQuery($authorization, $query);\n\n```\n\n#### Errors\n\n| Error Code | Error Description |\n|------------|-------------------|\n| 400 | Bad Request |\n| 401 | Unauthorized/Missing Token |\n| 0 | Unexpected error |\n\n\n\n[Back to List of Controllers](#list_of_controllers)\n\n### \u003ca name=\"services_controller\"\u003e\u003c/a\u003e![Class: ](https://apidocs.io/img/class.png \".ServicesController\") ServicesController\n\n#### Get singleton instance\n\nThe singleton instance of the ``` ServicesController ``` class can be accessed from the API Client.\n\n```php\n$services = $client-\u003egetServices();\n```\n\n#### \u003ca name=\"get_services\"\u003e\u003c/a\u003e![Method: ](https://apidocs.io/img/method.png \".ServicesController.getServices\") getServices\n\n\u003e Return list of Services.\n\n\n```php\nfunction getServices(\n        $authorization,\n        $page = 1,\n        $perPage = 10,\n        $userId = null)\n```\n\n#### Parameters\n\n| Parameter | Tags | Description |\n|-----------|------|-------------|\n| authorization |  ``` Required ```  | A valid API key, in the format 'Token API_KEY' |\n| page |  ``` Optional ```  ``` DefaultValue ```  | Page offset to fetch. |\n| perPage |  ``` Optional ```  ``` DefaultValue ```  | Number of results to return per page. |\n| userId |  ``` Optional ```  | Retrieve Services provided by the User specified by Id.  You must be authorized to manage this User Id. |\n\n\n\n#### Example Usage\n\n```php\n$authorization = 'Authorization';\n$page = 1;\n$perPage = 10;\n$userId = 89;\n\n$result = $services-\u003egetServices($authorization, $page, $perPage, $userId);\n\n```\n\n#### Errors\n\n| Error Code | Error Description |\n|------------|-------------------|\n| 401 | Unauthorized/Missing Token |\n| 403 | Forbidden |\n| 404 | Not Found |\n| 0 | Unexpected error |\n\n\n\n#### \u003ca name=\"create_service\"\u003e\u003c/a\u003e![Method: ](https://apidocs.io/img/method.png \".ServicesController.createService\") createService\n\n\u003e Create a Service with params.\n\n\n```php\nfunction createService(\n        $authorization,\n        $createServiceBody = null)\n```\n\n#### Parameters\n\n| Parameter | Tags | Description |\n|-----------|------|-------------|\n| authorization |  ``` Required ```  | A valid API key, in the format 'Token API_KEY' |\n| createServiceBody |  ``` Optional ```  | the content of the request |\n\n\n\n#### Example Usage\n\n```php\n$authorization = 'Authorization';\n$createServiceBody = new CreateServiceBody();\n\n$result = $services-\u003ecreateService($authorization, $createServiceBody);\n\n```\n\n#### Errors\n\n| Error Code | Error Description |\n|------------|-------------------|\n| 400 | Bad Request |\n| 401 | Unauthorized/Missing Token |\n| 403 | Forbidden |\n| 404 | Not Found |\n| 422 | Unprocessable Entity |\n| 0 | Unexpected error |\n\n\n\n#### \u003ca name=\"get_service_available_slots_by_id\"\u003e\u003c/a\u003e![Method: ](https://apidocs.io/img/method.png \".ServicesController.getServiceAvailableSlotsById\") getServiceAvailableSlotsById\n\n\u003e Return available times for a Service.\n\n\n```php\nfunction getServiceAvailableSlotsById(\n        $authorization,\n        $id,\n        $date = null,\n        $endDate = null,\n        $startDate = null)\n```\n\n#### Parameters\n\n| Parameter | Tags | Description |\n|-----------|------|-------------|\n| authorization |  ``` Required ```  | A valid API key, in the format 'Token API_KEY' |\n| id |  ``` Required ```  | TODO: Add a parameter description |\n| date |  ``` Optional ```  | Date to check for availability.  Either this field or a date range employing start_date and end_date must be supplied.  If date is provided, start_date/end_date are ignored.  Several formats are supported: '2014-10-31', 'October 31, 2014'. |\n| endDate |  ``` Optional ```  | End Date of a range to check for availability.  If supplied, date must not be supplied and start_date must be supplied.  Several formats are supported: '2014-10-31', 'October 31, 2014'. |\n| startDate |  ``` Optional ```  | Start Date of a range to check for availability.  If supplied, date must not be supplied and end_date must be supplied.  Several formats are supported: '2014-10-31', 'October 31, 2014'. |\n\n\n\n#### Example Usage\n\n```php\n$authorization = 'Authorization';\n$id = 'id';\n$date = date(\"D M d, Y G:i\");\n$endDate = date(\"D M d, Y G:i\");\n$startDate = date(\"D M d, Y G:i\");\n\n$result = $services-\u003egetServiceAvailableSlotsById($authorization, $id, $date, $endDate, $startDate);\n\n```\n\n#### Errors\n\n| Error Code | Error Description |\n|------------|-------------------|\n| 400 | Bad Request |\n| 401 | Unauthorized/Missing Token |\n| 403 | Forbidden |\n| 404 | Not Found |\n| 0 | Unexpected error |\n\n\n\n#### \u003ca name=\"get_service_by_id\"\u003e\u003c/a\u003e![Method: ](https://apidocs.io/img/method.png \".ServicesController.getServiceById\") getServiceById\n\n\u003e Return a Service by id.\n\n\n```php\nfunction getServiceById(\n        $authorization,\n        $id)\n```\n\n#### Parameters\n\n| Parameter | Tags | Description |\n|-----------|------|-------------|\n| authorization |  ``` Required ```  | A valid API key, in the format 'Token API_KEY' |\n| id |  ``` Required ```  | TODO: Add a parameter description |\n\n\n\n#### Example Usage\n\n```php\n$authorization = 'Authorization';\n$id = 'id';\n\n$result = $services-\u003egetServiceById($authorization, $id);\n\n```\n\n#### Errors\n\n| Error Code | Error Description |\n|------------|-------------------|\n| 400 | Bad Request |\n| 401 | Unauthorized/Missing Token |\n| 403 | Forbidden |\n| 404 | Not Found |\n| 0 | Unexpected error |\n\n\n\n#### \u003ca name=\"update_service_by_id\"\u003e\u003c/a\u003e![Method: ](https://apidocs.io/img/method.png \".ServicesController.updateServiceById\") updateServiceById\n\n\u003e Update a Service with params.\n\n\n```php\nfunction updateServiceById(\n        $authorization,\n        $id,\n        $updateServiceByIdBody = null)\n```\n\n#### Parameters\n\n| Parameter | Tags | Description |\n|-----------|------|-------------|\n| authorization |  ``` Required ```  | A valid API key, in the format 'Token API_KEY' |\n| id |  ``` Required ```  | TODO: Add a parameter description |\n| updateServiceByIdBody |  ``` Optional ```  | the content of the request |\n\n\n\n#### Example Usage\n\n```php\n$authorization = 'Authorization';\n$id = 'id';\n$updateServiceByIdBody = new UpdateServiceByIdBody();\n\n$result = $services-\u003eupdateServiceById($authorization, $id, $updateServiceByIdBody);\n\n```\n\n#### Errors\n\n| Error Code | Error Description |\n|------------|-------------------|\n| 400 | Bad Request |\n| 401 | Unauthorized/Missing Token |\n| 403 | Forbidden |\n| 404 | Not Found |\n| 422 | Unprocessable Entity |\n| 0 | Unexpected error |\n\n\n\n#### \u003ca name=\"delete_service_by_id\"\u003e\u003c/a\u003e![Method: ](https://apidocs.io/img/method.png \".ServicesController.deleteServiceById\") deleteServiceById\n\n\u003e Delete a Service by id\n\n\n```php\nfunction deleteServiceById(\n        $authorization,\n        $id)\n```\n\n#### Parameters\n\n| Parameter | Tags | Description |\n|-----------|------|-------------|\n| authorization |  ``` Required ```  | A valid API key, in the format 'Token API_KEY' |\n| id |  ``` Required ```  | TODO: Add a parameter description |\n\n\n\n#### Example Usage\n\n```php\n$authorization = 'Authorization';\n$id = 'id';\n\n$result = $services-\u003edeleteServiceById($authorization, $id);\n\n```\n\n#### Errors\n\n| Error Code | Error Description |\n|------------|-------------------|\n| 400 | Bad Request |\n| 401 | Unauthorized/Missing Token |\n| 403 | Forbidden |\n| 404 | Not Found |\n| 0 | Unexpected error |\n\n\n\n[Back to List of Controllers](#list_of_controllers)\n\n### \u003ca name=\"users_controller\"\u003e\u003c/a\u003e![Class: ](https://apidocs.io/img/class.png \".UsersController\") UsersController\n\n#### Get singleton instance\n\nThe singleton instance of the ``` UsersController ``` class can be accessed from the API Client.\n\n```php\n$users = $client-\u003egetUsers();\n```\n\n#### \u003ca name=\"get_users\"\u003e\u003c/a\u003e![Method: ](https://apidocs.io/img/method.png \".UsersController.getUsers\") getUsers\n\n\u003e Return all Users that your account has access to.  Includes your own User as well as any Users for which you are the Account Manager.\n\n\n```php\nfunction getUsers(\n        $authorization,\n        $page = 1,\n        $perPage = 10)\n```\n\n#### Parameters\n\n| Parameter | Tags | Description |\n|-----------|------|-------------|\n| authorization |  ``` Required ```  | A valid API key, in the format 'Token API_KEY' |\n| page |  ``` Optional ```  ``` DefaultValue ```  | Page offset to fetch. |\n| perPage |  ``` Optional ```  ``` DefaultValue ```  | Number of results to return per page. |\n\n\n\n#### Example Usage\n\n```php\n$authorization = 'Authorization';\n$page = 1;\n$perPage = 10;\n\n$result = $users-\u003egetUsers($authorization, $page, $perPage);\n\n```\n\n#### Errors\n\n| Error Code | Error Description |\n|------------|-------------------|\n| 400 | Bad Request |\n| 401 | Unauthorized/Missing Token |\n| 403 | Forbidden |\n| 0 | Unexpected error |\n\n\n\n#### \u003ca name=\"create_user\"\u003e\u003c/a\u003e![Method: ](https://apidocs.io/img/method.png \".UsersController.createUser\") createUser\n\n\u003e Create a User\n\n\n```php\nfunction createUser(\n        $authorization,\n        $createUserBody = null)\n```\n\n#### Parameters\n\n| Parameter | Tags | Description |\n|-----------|------|-------------|\n| authorization |  ``` Required ```  | A valid API key, in the format 'Token API_KEY' |\n| createUserBody |  ``` Optional ```  | the content of the request |\n\n\n\n#### Example Usage\n\n```php\n$authorization = 'Authorization';\n$createUserBody = new CreateUserBody();\n\n$result = $users-\u003ecreateUser($authorization, $createUserBody);\n\n```\n\n#### Errors\n\n| Error Code | Error Description |\n|------------|-------------------|\n| 400 | Bad Request |\n| 401 | Unauthorized/Missing Token |\n| 403 | Forbidden |\n| 422 | Unprocessable Entity |\n| 0 | Unexpected error |\n\n\n\n#### \u003ca name=\"get_user_by_id\"\u003e\u003c/a\u003e![Method: ](https://apidocs.io/img/method.png \".UsersController.getUserById\") getUserById\n\n\u003e Return a User by id.\n\n\n```php\nfunction getUserById(\n        $authorization,\n        $id)\n```\n\n#### Parameters\n\n| Parameter | Tags | Description |\n|-----------|------|-------------|\n| authorization |  ``` Required ```  | A valid API key, in the format 'Token API_KEY' |\n| id |  ``` Required ```  | TODO: Add a parameter description |\n\n\n\n#### Example Usage\n\n```php\n$authorization = 'Authorization';\n$id = 'id';\n\n$result = $users-\u003egetUserById($authorization, $id);\n\n```\n\n#### Errors\n\n| Error Code | Error Description |\n|------------|-------------------|\n| 400 | Bad Request |\n| 401 | Unauthorized/Missing Token |\n| 403 | Forbidden |\n| 404 | Not Found |\n| 0 | Unexpected error |\n\n\n\n#### \u003ca name=\"update_user_by_id\"\u003e\u003c/a\u003e![Method: ](https://apidocs.io/img/method.png \".UsersController.updateUserById\") updateUserById\n\n\u003e Update a User by id, with params.\n\n\n```php\nfunction updateUserById(\n        $authorization,\n        $id,\n        $updateUserByIdBody = null)\n```\n\n#### Parameters\n\n| Parameter | Tags | Description |\n|-----------|------|-------------|\n| authorization |  ``` Required ```  | A valid API key, in the format 'Token API_KEY' |\n| id |  ``` Required ```  | TODO: Add a parameter description |\n| updateUserByIdBody |  ``` Optional ```  | the content of the request |\n\n\n\n#### Example Usage\n\n```php\n$authorization = 'Authorization';\n$id = 'id';\n$updateUserByIdBody = new UpdateUserByIdBody();\n\n$result = $users-\u003eupdateUserById($authorization, $id, $updateUserByIdBody);\n\n```\n\n#### Errors\n\n| Error Code | Error Description |\n|------------|-------------------|\n| 400 | Bad Request |\n| 401 | Unauthorized/Missing Token |\n| 403 | Forbidden |\n| 404 | Not Found |\n| 422 | Unprocessable Entity |\n| 0 | Unexpected error |\n\n\n\n[Back to List of Controllers](#list_of_controllers)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgonebusy%2Fgonebusy-php-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgonebusy%2Fgonebusy-php-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgonebusy%2Fgonebusy-php-client/lists"}