All URIs are relative to https://api.nature.global/1
Method | HTTP request | Description |
---|---|---|
applianceOrdersPost | POST /appliance_orders | |
appliancesApplianceAirconSettingsPost | POST /appliances/{appliance}/aircon_settings | |
appliancesApplianceDeletePost | POST /appliances/{appliance}/delete | |
appliancesAppliancePost | POST /appliances/{appliance} | |
appliancesApplianceSignalOrdersPost | POST /appliances/{appliance}/signal_orders | |
appliancesApplianceSignalsGet | GET /appliances/{appliance}/signals | |
appliancesApplianceSignalsPost | POST /appliances/{appliance}/signals | |
appliancesGet | GET /appliances | |
appliancesPost | POST /appliances | |
detectappliancePost | POST /detectappliance | |
devicesDeviceDeletePost | POST /devices/{device}/delete | |
devicesDeviceHumidityOffsetPost | POST /devices/{device}/humidity_offset | |
devicesDevicePost | POST /devices/{device} | |
devicesDeviceTemperatureOffsetPost | POST /devices/{device}/temperature_offset | |
devicesGet | GET /devices | |
signalsSignalDeletePost | POST /signals/{signal}/delete | |
signalsSignalPost | POST /signals/{signal} | |
signalsSignalSendPost | POST /signals/{signal}/send | |
usersMeGet | GET /users/me | |
usersMePost | POST /users/me |
applianceOrdersPost($appliances)
Reorder appliances.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Crhg\RemoClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Crhg\RemoClient\Api\DefaultApi(
// 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
);
$appliances = "appliances_example"; // string | List of all appliances' IDs comma separated
try {
$apiInstance->applianceOrdersPost($appliances);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->applianceOrdersPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
appliances | string | List of all appliances' IDs comma separated |
void (empty response body)
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
appliancesApplianceAirconSettingsPost($appliance, $temperature, $operation_mode, $air_volume, $air_direction, $button)
Update air conditioner settings.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Crhg\RemoClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Crhg\RemoClient\Api\DefaultApi(
// 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
);
$appliance = "appliance_example"; // string | Appliance ID.
$temperature = "temperature_example"; // string | Temperature
$operation_mode = "operation_mode_example"; // string | AC operation mode
$air_volume = "air_volume_example"; // string | AC air volume
$air_direction = "air_direction_example"; // string | AC air direction
$button = "button_example"; // string | Button
try {
$apiInstance->appliancesApplianceAirconSettingsPost($appliance, $temperature, $operation_mode, $air_volume, $air_direction, $button);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->appliancesApplianceAirconSettingsPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
appliance | string | Appliance ID. | |
temperature | string | Temperature | [optional] |
operation_mode | string | AC operation mode | [optional] |
air_volume | string | AC air volume | [optional] |
air_direction | string | AC air direction | [optional] |
button | string | Button | [optional] |
void (empty response body)
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
appliancesApplianceDeletePost($appliance)
Delete appliance.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Crhg\RemoClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Crhg\RemoClient\Api\DefaultApi(
// 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
);
$appliance = "appliance_example"; // string | Appliance ID.
try {
$apiInstance->appliancesApplianceDeletePost($appliance);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->appliancesApplianceDeletePost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
appliance | string | Appliance ID. |
void (empty response body)
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Crhg\RemoClient\Model\Appliance appliancesAppliancePost($appliance, $image, $nickname)
Update appliance.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Crhg\RemoClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Crhg\RemoClient\Api\DefaultApi(
// 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
);
$appliance = "appliance_example"; // string | Appliance ID.
$image = "image_example"; // string | Basename of the image file included in the app. Ex: \"ico_ac_1\"
$nickname = "nickname_example"; // string | Appliance name
try {
$result = $apiInstance->appliancesAppliancePost($appliance, $image, $nickname);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->appliancesAppliancePost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
appliance | string | Appliance ID. | |
image | string | Basename of the image file included in the app. Ex: "ico_ac_1" | |
nickname | string | Appliance name |
\Crhg\RemoClient\Model\Appliance
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
appliancesApplianceSignalOrdersPost($appliance, $signals)
Reorder signals under this appliance.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Crhg\RemoClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Crhg\RemoClient\Api\DefaultApi(
// 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
);
$appliance = "appliance_example"; // string | Appliance ID.
$signals = "signals_example"; // string | List of all signals' IDs comma separated
try {
$apiInstance->appliancesApplianceSignalOrdersPost($appliance, $signals);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->appliancesApplianceSignalOrdersPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
appliance | string | Appliance ID. | |
signals | string | List of all signals' IDs comma separated |
void (empty response body)
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Crhg\RemoClient\Model\Signal[] appliancesApplianceSignalsGet($appliance)
Fetch signals registered under this appliance.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Crhg\RemoClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Crhg\RemoClient\Api\DefaultApi(
// 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
);
$appliance = "appliance_example"; // string | Appliance ID.
try {
$result = $apiInstance->appliancesApplianceSignalsGet($appliance);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->appliancesApplianceSignalsGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
appliance | string | Appliance ID. |
\Crhg\RemoClient\Model\Signal[]
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Crhg\RemoClient\Model\Signal appliancesApplianceSignalsPost($message, $appliance, $image, $name)
Create a signal under this appliance.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Crhg\RemoClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Crhg\RemoClient\Api\DefaultApi(
// 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
);
$message = "\"{\\\\\\\"freq\\\\\\\":38,\\\\\\\"data\\\\\\\":[2523,2717,786,903,777,924,763,1964,768,1958,769,1955,772,1953,773,914,770,902,786,54147,2523,2721,782,920,761,924,773,1936,779,1948,784,1957,768,1942,784,921,758,924,772],\\\\\\\"format\\\\\\\":\\\\\\\"us\\\\\\\"}\\n\""; // string | JSON serialized object describing infrared signals. Includes \"data\", \"freq\" and \"format\" keys.
$appliance = "appliance_example"; // string | Appliance ID.
$image = "image_example"; // string | Basename of the image file included in the app. Ex: \"ico_io\"
$name = "name_example"; // string | Signal name
try {
$result = $apiInstance->appliancesApplianceSignalsPost($message, $appliance, $image, $name);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->appliancesApplianceSignalsPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
message | string | JSON serialized object describing infrared signals. Includes "data", "freq" and "format" keys. | |
appliance | string | Appliance ID. | |
image | string | Basename of the image file included in the app. Ex: "ico_io" | |
name | string | Signal name |
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Crhg\RemoClient\Model\Appliance[] appliancesGet()
Fetch the list of appliances.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Crhg\RemoClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Crhg\RemoClient\Api\DefaultApi(
// 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
);
try {
$result = $apiInstance->appliancesGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->appliancesGet: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
\Crhg\RemoClient\Model\Appliance[]
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Crhg\RemoClient\Model\Appliance appliancesPost($nickname, $device, $image, $model)
Create a new appliance.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Crhg\RemoClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Crhg\RemoClient\Api\DefaultApi(
// 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
);
$nickname = "nickname_example"; // string | Appliance name
$device = "device_example"; // string | Device ID
$image = "image_example"; // string | Basename of the image file included in the app. Ex: \"ico_ac_1\"
$model = "model_example"; // string | ApplianceModel ID if the appliance we're trying to create is included in IRDB.
try {
$result = $apiInstance->appliancesPost($nickname, $device, $image, $model);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->appliancesPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
nickname | string | Appliance name | |
device | string | Device ID | |
image | string | Basename of the image file included in the app. Ex: "ico_ac_1" | |
model | string | ApplianceModel ID if the appliance we're trying to create is included in IRDB. | [optional] |
\Crhg\RemoClient\Model\Appliance
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Crhg\RemoClient\Model\ApplianceModelAndParam[] detectappliancePost($message)
Find the air conditioner best matching the provided infrared signal.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Crhg\RemoClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Crhg\RemoClient\Api\DefaultApi(
// 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
);
$message = "\"{\\\\\\\"freq\\\\\\\":38,\\\\\\\"data\\\\\\\":[2523,2717,786,903,777,924,763,1964,768,1958,769,1955,772,1953,773,914,770,902,786,54147,2523,2721,782,920,761,924,773,1936,779,1948,784,1957,768,1942,784,921,758,924,772],\\\\\\\"format\\\\\\\":\\\\\\\"us\\\\\\\"}\\n\""; // string | JSON serialized object describing infrared signals. Includes \"data\", \"freq\" and \"format\" keys.
try {
$result = $apiInstance->detectappliancePost($message);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->detectappliancePost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
message | string | JSON serialized object describing infrared signals. Includes "data", "freq" and "format" keys. |
\Crhg\RemoClient\Model\ApplianceModelAndParam[]
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
devicesDeviceDeletePost($device)
Delete Remo.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Crhg\RemoClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Crhg\RemoClient\Api\DefaultApi(
// 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
);
$device = "device_example"; // string | Device ID.
try {
$apiInstance->devicesDeviceDeletePost($device);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->devicesDeviceDeletePost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
device | string | Device ID. |
void (empty response body)
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
devicesDeviceHumidityOffsetPost($device, $offset)
Update humidity offset.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Crhg\RemoClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Crhg\RemoClient\Api\DefaultApi(
// 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
);
$device = "device_example"; // string | Device ID.
$offset = 56; // int | Humidity offset value added to the measured humidity.
try {
$apiInstance->devicesDeviceHumidityOffsetPost($device, $offset);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->devicesDeviceHumidityOffsetPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
device | string | Device ID. | |
offset | int | Humidity offset value added to the measured humidity. |
void (empty response body)
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
devicesDevicePost($device, $name)
Update Remo
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Crhg\RemoClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Crhg\RemoClient\Api\DefaultApi(
// 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
);
$device = "device_example"; // string | Device ID.
$name = "name_example"; // string | Signal name
try {
$apiInstance->devicesDevicePost($device, $name);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->devicesDevicePost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
device | string | Device ID. | |
name | string | Signal name |
void (empty response body)
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
devicesDeviceTemperatureOffsetPost($device, $offset)
Update temperature offset.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Crhg\RemoClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Crhg\RemoClient\Api\DefaultApi(
// 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
);
$device = "device_example"; // string | Device ID.
$offset = 56; // int | Temperature offset value added to the measured temperature.
try {
$apiInstance->devicesDeviceTemperatureOffsetPost($device, $offset);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->devicesDeviceTemperatureOffsetPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
device | string | Device ID. | |
offset | int | Temperature offset value added to the measured temperature. |
void (empty response body)
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Crhg\RemoClient\Model\Devices devicesGet()
Fetch the list of Remo devices the user has access to.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Crhg\RemoClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Crhg\RemoClient\Api\DefaultApi(
// 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
);
try {
$result = $apiInstance->devicesGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->devicesGet: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
\Crhg\RemoClient\Model\Devices
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
signalsSignalDeletePost($signal)
Delete an infrared signal.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Crhg\RemoClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Crhg\RemoClient\Api\DefaultApi(
// 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
);
$signal = "signal_example"; // string | Signal ID.
try {
$apiInstance->signalsSignalDeletePost($signal);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->signalsSignalDeletePost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
signal | string | Signal ID. |
void (empty response body)
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
signalsSignalPost($signal, $image, $name)
Update infrared signal.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Crhg\RemoClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Crhg\RemoClient\Api\DefaultApi(
// 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
);
$signal = "signal_example"; // string | Signal ID.
$image = "image_example"; // string | Basename of the image file included in the app. Ex: \"ico_io\"
$name = "name_example"; // string | Signal name
try {
$apiInstance->signalsSignalPost($signal, $image, $name);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->signalsSignalPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
signal | string | Signal ID. | |
image | string | Basename of the image file included in the app. Ex: "ico_io" | |
name | string | Signal name |
void (empty response body)
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
signalsSignalSendPost($signal)
Send infrared signal.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Crhg\RemoClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Crhg\RemoClient\Api\DefaultApi(
// 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
);
$signal = "signal_example"; // string | Signal ID.
try {
$apiInstance->signalsSignalSendPost($signal);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->signalsSignalSendPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
signal | string | Signal ID. |
void (empty response body)
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Crhg\RemoClient\Model\User usersMeGet()
Fetch the authenticated user's information.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Crhg\RemoClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Crhg\RemoClient\Api\DefaultApi(
// 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
);
try {
$result = $apiInstance->usersMeGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->usersMeGet: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Crhg\RemoClient\Model\User usersMePost($nickname)
Update authenticated user's information.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Crhg\RemoClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Crhg\RemoClient\Api\DefaultApi(
// 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
);
$nickname = "nickname_example"; // string | User's nickname.
try {
$result = $apiInstance->usersMePost($nickname);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->usersMePost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
nickname | string | User's nickname. |
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]