Your home connected. www.supla.org
Requires PHP 7.4 or later.
Install with Composer.
require_once(__DIR__ . '/vendor/autoload.php');
use Supla\ApiClient\Api\ChannelsApi;
// Get access token from OAuth flow or use a Personal Access Token
$accessToken = '<YOUR_ACCESS_TOKEN_HERE>';
$config = Supla\ApiClient\Configuration::getDefaultConfiguration()->setAccessToken($accessToken);
$apiInstance = new ChannelsApi(new GuzzleHttp\Client(), $config);
try {
$result = $apiInstance->getChannels();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SUPLA API: ', $e->getMessage(), PHP_EOL;
}See the examples folder for more.
All URIs are relative to https://YOUR_SUPLA_SERVER/api/v3.
- AccessIdentifier
- AccessIdentifierRelationsCount
- AccessTokenRequestBody
- ActionableSubject
- ActionableSubjectTypeNames
- ActiveHoursDef
- Channel
- ChannelActionParams
- ChannelActionParamsCopy
- ChannelActionParamsDimmer
- ChannelActionParamsDuration
- ChannelActionParamsPercentage
- ChannelActionParamsPercentageAndTilt
- ChannelActionParamsRgbw
- ChannelActionParamsRgbwOneOf
- ChannelActionParamsRgbwOneOf1
- ChannelActionParamsRgbwOneOf2
- ChannelActionParamsRgbwOneOf2Hsv
- ChannelActionParamsRgbwOneOf3
- ChannelActionParamsRgbwOneOf3Rgb
- ChannelActionParamsRgbwOneOfColor
- ChannelActionParamsSend
- ChannelConfig
- ChannelConfigActionTrigger
- ChannelConfigAlexaSettings
- ChannelConfigAlexaSettingsAlexa
- ChannelConfigControllingTheGate
- ChannelConfigControllingTheGateClosingRule
- ChannelConfigElectricityMeter
- ChannelConfigFacadeBlinds
- ChannelConfigFacadeBlindsTimeMargin
- ChannelConfigGeneralPurposeMeasurement
- ChannelConfigGeneralPurposeMeasurementDefaults
- ChannelConfigGeneralPurposeMeter
- ChannelConfigGoogleHomeSettings
- ChannelConfigGoogleHomeSettingsGoogleHome
- ChannelConfigHumidity
- ChannelConfigHumidityAndThermometer
- ChannelConfigHvacThermostat
- ChannelConfigHvacThermostatSchedule
- ChannelConfigHvacThermostatTemperatureConstraints
- ChannelConfigHvacThermostatTemperatures
- ChannelConfigImpulseCounter
- ChannelConfigInvertedLogic
- ChannelConfigRollerShutter
- ChannelConfigStaircaseTimer
- ChannelConfigThermometer
- ChannelFunction
- ChannelFunctionAction
- ChannelGroup
- ChannelGroupRelationsCount
- ChannelRelationsCount
- ChannelState
- ChannelStateBrightness
- ChannelStateColor
- ChannelStateColorAndBrightness
- ChannelStateConnected
- ChannelStateDepth
- ChannelStateDistance
- ChannelStateDouble
- ChannelStateElectricityMeter
- ChannelStateElectricityMeterPhase
- ChannelStateFacadeBlind
- ChannelStateHumidity
- ChannelStateHumidityAndTemperature
- ChannelStateHvac
- ChannelStateImpulseCounter
- ChannelStateOnOff
- ChannelStateRelay
- ChannelStateRollerShutter
- ChannelStateSensor
- ChannelStateSensorPartial
- ChannelStateTemperature
- ChannelStateValve
- ChannelType
- ClientApp
- ConfigureChannelRequest
- CreateChannelGroupRequest
- CreateChannelReactionRequest
- CreateChannelReactionRequestActionParam
- CreateMqttBrokerCredentials200Response
- CreateSceneRequest
- CreateSceneRequestOperationsInner
- CreateUserIconBase64Request
- Device
- DeviceConfig
- DeviceConfigHomeScreen
- DeviceConfigScreenBrightness
- DeviceConfigUserInterface
- DeviceConfigUserInterfaceConstraints
- DeviceManufacturer
- DeviceRelationsCount
- DirectLink
- DirectLinkActiveDateRange
- ErrorResponse
- ExecuteAction400Response
- ExecuteActionOnChannelGroup400Response
- ExecuteActionOnChannelGroupRequest
- ExecuteActionRequest
- ExecuteScene400Response
- ExecuteSceneRequest
- ExecuteSubDeviceActionRequest
- GetChannelMeasurementLogs200Response
- GetChannelMeasurementLogs200ResponseOneOfInner
- GetChannelMeasurementLogs200ResponseOneOfInner1
- GetChannelMeasurementLogs200ResponseOneOfInner2
- GetChannelMeasurementLogs200ResponseOneOfInner3
- GetChannelMeasurementLogs200ResponseOneOfInner4
- GetChannelMeasurementLogs200ResponseOneOfInner5
- GetChannelMeasurementLogs200ResponseOneOfInner6
- GetIoDeviceIdParameter
- GetServerInfo200Response
- GetServerInfo200ResponseTimezone
- GetSuplaServerStatus200Response
- GetSuplaServerStatus503Response
- GetTokenInfo200Response
- IssueAccessToken200Response
- Location
- LocationRelationsCount
- Notification
- Reaction
- ReactionTrigger
- ReactionTriggerChange
- ReactionTriggerChangeOnChange
- ReactionTriggerEq
- ReactionTriggerEqOnChangeTo
- ReactionTriggerEqOnChangeToEq
- ReactionTriggerFieldNames
- ReactionTriggerGe
- ReactionTriggerGeOnChangeTo
- ReactionTriggerGeOnChangeToResume
- ReactionTriggerGt
- ReactionTriggerGtOnChangeTo
- ReactionTriggerGtOnChangeToResume
- ReactionTriggerLe
- ReactionTriggerLeOnChangeTo
- ReactionTriggerLeOnChangeToResume
- ReactionTriggerLt
- ReactionTriggerLtOnChangeTo
- ReactionTriggerLtOnChangeToResume
- ReactionTriggerNe
- ReactionTriggerNeOnChangeTo
- Scene
- SceneOperation
- SceneRelationsCount
- SceneState
- Schedule
- ScheduleClosestExecutions
- ScheduleConfigEntry
- ScheduleConfigEntryAction
- ScheduleScheduledExecution
- ScheduleScheduledExecutionResult
- ScheduleState
- SendNotification400Response
- UpdateAccessIdentifierRequest
- UpdateChannelRequest
- UpdateClientAppRequest
- UpdateDeviceRequest
- UpdateLocationRequest
- User
- UserAgreements
- UserApiRateLimit
- UserApiRateLimitRule
- UserApiRateLimitStatus
- UserIcon
- UserLimits
- UserLimitsPushNotificationsPerHour
Generate a Personal Access Token for you in the Integrations section on https://cloud.supla.org or your server instance.
- Flow:
authorizationCode - Authorization URL:
https://cloud.supla.org/oauth/v2/authif the app is public orhttps://YOUR_SUPLA_SERVER/oauth/v2/authotherwise - Scopes:
accessids_r: Access Identifiers (read)accessids_rw: Access Identifiers (read and modify)account_r: User account and e-mail address (read)account_rw: User account (read and modify)channels_r: Channels (read)channels_rw: Channels (read and modify)channels_ea: Channels (execute actions)channels_files: Download files from API (measurements history, user icons)channelgroups_r: Channel groups (read)channelgroups_rw: Channel groups (read and modify)channelgroups_ea: Channel groups (execute actions)clientapps_r: Client apps (read)clientapps_rw: Client apps (read and modify)directlinks_r: Direct links (read)directlinks_rw: Direct links (read and modify)iodevices_r: IO Devices (read)iodevices_rw: IO Devices (read and modify)locations_r: Locations (read)locations_rw: Locations (read and modify)scenes_r: Scenes (read)scenes_rw: Scenes (read and modify)scenes_ea: Scenes (execute actions)schedules_r: Schedules (read)schedules_rw: Schedules (read and modify)state_webhook: Access to state webhooksmqtt_broker: MQTT Broker settingsoffline_access: Issue refresh token
- Example Auth URL:
/oauth/v2/auth?client_id=YOUR_CLIENT_ID&redirect_uri=YOUR_REDIRECT_URI&response_type=code&scope=account_r%20channels_r&state=example-state
This PHP package is automatically generated by the OpenAPI Generator project:
- Targeted Cloud version:
25.03 - Build package:
org.openapitools.codegen.languages.PhpClientCodegen
