/// <summary> /// List Scenes Fetch a list of Scenes for the logged in user filtered by locationIds. If no locationId is sent, return scenes for all available locations /// </summary> /// <exception cref="SmartThingsNet.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="locationId">The location of a scene. (optional)</param> /// <returns>ScenePagedResult</returns> public PagedScene ListScenes(string locationId = default(string)) { SmartThingsNet.Client.ApiResponse <PagedScene> localVarResponse = ListScenesWithHttpInfo(locationId); return(localVarResponse.Data); }
/// <summary> /// List Scenes Fetch a list of Scenes for the logged in user filtered by locationIds. If no locationId is sent, return scenes for all available locations /// </summary> /// <exception cref="SmartThingsNet.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="locationId">The location of a scene. (optional)</param> /// <returns>Task of ScenePagedResult</returns> public async System.Threading.Tasks.Task <PagedScene> ListScenesAsync(string locationId = default(string)) { SmartThingsNet.Client.ApiResponse <PagedScene> localVarResponse = await ListScenesAsyncWithHttpInfo(locationId); return(localVarResponse.Data); }
/// <summary> /// Execute Scene Execute a Scene by id for the logged in user and given locationId /// </summary> /// <exception cref="SmartThingsNet.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="sceneId">The ID of the Scene.</param> /// <param name="locationId">The location of a scene. (optional)</param> /// <returns>StandardSuccessResponse</returns> public StandardSuccessResponse ExecuteScene(string sceneId, string locationId = default(string)) { SmartThingsNet.Client.ApiResponse <StandardSuccessResponse> localVarResponse = ExecuteSceneWithHttpInfo(sceneId, locationId); return(localVarResponse.Data); }
/// <summary> /// Execute Scene Execute a Scene by id for the logged in user and given locationId /// </summary> /// <exception cref="SmartThingsNet.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="sceneId">The ID of the Scene.</param> /// <param name="locationId">The location of a scene. (optional)</param> /// <returns>Task of StandardSuccessResponse</returns> public async System.Threading.Tasks.Task <StandardSuccessResponse> ExecuteSceneAsync(string sceneId, string locationId = default(string)) { SmartThingsNet.Client.ApiResponse <StandardSuccessResponse> localVarResponse = await ExecuteSceneAsyncWithHttpInfo(sceneId, locationId); return(localVarResponse.Data); }
/// <summary> /// Generate stClientId and stClientSecret Generate new `stClientId` and `stClientSecret` for a SmartThings Schema App. /// </summary> /// <exception cref="SmartThingsNet.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="authorization">Personal Access Token `[w:apps:*]`</param> /// <param name="generateStOauthBody">JSON with the endpointAppId requiring new credentials</param> /// <returns>PostReceipt</returns> public PostReceipt GenerateStOauthCredentials(string authorization, GenerateStOauthBody generateStOauthBody) { SmartThingsNet.Client.ApiResponse <PostReceipt> localVarResponse = GenerateStOauthCredentialsWithHttpInfo(authorization, generateStOauthBody); return(localVarResponse.Data); }
/// <summary> /// Generate stClientId and stClientSecret Generate new `stClientId` and `stClientSecret` for a SmartThings Schema App. /// </summary> /// <exception cref="SmartThingsNet.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="authorization">Personal Access Token `[w:apps:*]`</param> /// <param name="generateStOauthBody">JSON with the endpointAppId requiring new credentials</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of PostReceipt</returns> public async System.Threading.Tasks.Task <PostReceipt> GenerateStOauthCredentialsAsync(string authorization, GenerateStOauthBody generateStOauthBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { SmartThingsNet.Client.ApiResponse <PostReceipt> localVarResponse = await GenerateStOauthCredentialsWithHttpInfoAsync(authorization, generateStOauthBody, cancellationToken).ConfigureAwait(false); return(localVarResponse.Data); }
/// <summary> /// Convert text to speech and return an audio URL. This audio file will be available for 7 days after creation. /// </summary> /// <exception cref="SmartThingsNet.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="authorization">OAuth token</param> /// <param name="tTSBody"></param> /// <returns>ConvertedTTS</returns> public ConvertedTTS Tts(string authorization, TTSBody tTSBody) { SmartThingsNet.Client.ApiResponse <ConvertedTTS> localVarResponse = TtsWithHttpInfo(authorization, tTSBody); return(localVarResponse.Data); }
/// <summary> /// Convert text to speech and return an audio URL. This audio file will be available for 7 days after creation. /// </summary> /// <exception cref="SmartThingsNet.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="authorization">OAuth token</param> /// <param name="tTSBody"></param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ConvertedTTS</returns> public async System.Threading.Tasks.Task <ConvertedTTS> TtsAsync(string authorization, TTSBody tTSBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { SmartThingsNet.Client.ApiResponse <ConvertedTTS> localVarResponse = await TtsWithHttpInfoAsync(authorization, tTSBody, cancellationToken).ConfigureAwait(false); return(localVarResponse.Data); }
/// <summary> /// Play text on a device which supports audioNotification /// </summary> /// <exception cref="SmartThingsNet.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="authorization">OAuth token</param> /// <param name="playtextBody"></param> /// <returns>PlayedText</returns> public PlayedText Playtext(string authorization, PlaytextBody playtextBody) { SmartThingsNet.Client.ApiResponse <PlayedText> localVarResponse = PlaytextWithHttpInfo(authorization, playtextBody); return(localVarResponse.Data); }
/// <summary> /// Play text on a device which supports audioNotification /// </summary> /// <exception cref="SmartThingsNet.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="authorization">OAuth token</param> /// <param name="playtextBody"></param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of PlayedText</returns> public async System.Threading.Tasks.Task <PlayedText> PlaytextAsync(string authorization, PlaytextBody playtextBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { SmartThingsNet.Client.ApiResponse <PlayedText> localVarResponse = await PlaytextWithHttpInfoAsync(authorization, playtextBody, cancellationToken).ConfigureAwait(false); return(localVarResponse.Data); }
/// <summary> /// Get details about options supported by the tts and playtext API /// </summary> /// <exception cref="SmartThingsNet.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="authorization">OAuth token</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of TTSInfo</returns> public async System.Threading.Tasks.Task <TTSInfo> InfoAsync(string authorization, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { SmartThingsNet.Client.ApiResponse <TTSInfo> localVarResponse = await InfoWithHttpInfoAsync(authorization, cancellationToken).ConfigureAwait(false); return(localVarResponse.Data); }
/// <summary> /// Get details about options supported by the tts and playtext API /// </summary> /// <exception cref="SmartThingsNet.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="authorization">OAuth token</param> /// <returns>TTSInfo</returns> public TTSInfo Info(string authorization) { SmartThingsNet.Client.ApiResponse <TTSInfo> localVarResponse = InfoWithHttpInfo(authorization); return(localVarResponse.Data); }
/// <summary> /// List Scenes Get a list of Scenes for a specified user. If no locationId is sent, all scenes for all available locations will be returned. /// </summary> /// <exception cref="SmartThingsNet.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="authorization">OAuth token</param> /// <param name="locationId">The location of a scene. (optional)</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ScenePagedResult</returns> public async System.Threading.Tasks.Task <ScenePagedResult> ListScenesAsync(string authorization, string locationId = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { SmartThingsNet.Client.ApiResponse <ScenePagedResult> localVarResponse = await ListScenesWithHttpInfoAsync(authorization, locationId, cancellationToken).ConfigureAwait(false); return(localVarResponse.Data); }
/// <summary> /// List Scenes Get a list of Scenes for a specified user. If no locationId is sent, all scenes for all available locations will be returned. /// </summary> /// <exception cref="SmartThingsNet.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="authorization">OAuth token</param> /// <param name="locationId">The location of a scene. (optional)</param> /// <returns>ScenePagedResult</returns> public ScenePagedResult ListScenes(string authorization, string locationId = default(string)) { SmartThingsNet.Client.ApiResponse <ScenePagedResult> localVarResponse = ListScenesWithHttpInfo(authorization, locationId); return(localVarResponse.Data); }
/// <summary> /// Execute a Scene Execute a Scene based on a sceneId. /// </summary> /// <exception cref="SmartThingsNet.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="authorization">OAuth token</param> /// <param name="sceneId">The ID of the Scene.</param> /// <param name="locationId">The location of a scene. (optional)</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of StandardSuccessResponse</returns> public async System.Threading.Tasks.Task <StandardSuccessResponse> ExecuteSceneAsync(string authorization, string sceneId, string locationId = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { SmartThingsNet.Client.ApiResponse <StandardSuccessResponse> localVarResponse = await ExecuteSceneWithHttpInfoAsync(authorization, sceneId, locationId, cancellationToken).ConfigureAwait(false); return(localVarResponse.Data); }