All URIs are relative to https://api.artik.cloud/v1.1
Method | HTTP request | Description |
---|---|---|
createScene | POST /scenes | Create a new scene |
getScene | GET /scenes/{sceneId} | Get a scene |
getScenes | GET /scenes | Get all user scenes |
scenesSceneIdDelete | DELETE /scenes/{sceneId} | Delete a scene |
triggerScene | POST /scenes/{sceneId} | Trigger a scene |
updateScene | PUT /scenes/{sceneId} | Update a scene |
-(NSURLSessionTask*) createSceneWithBody: (ACSceneCreationInfo*) body
completionHandler: (void (^)(ACSceneEnvelope* output, NSError* error)) handler;
Create a new scene
Create a new scene
ACDefaultConfiguration *apiConfig = [ACDefaultConfiguration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: artikcloud_oauth)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
ACSceneCreationInfo* body = [[ACSceneCreationInfo alloc] init]; // Body
ACScenesApi*apiInstance = [[ACScenesApi alloc] init];
// Create a new scene
[apiInstance createSceneWithBody:body
completionHandler: ^(ACSceneEnvelope* output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error calling ACScenesApi->createScene: %@", error);
}
}];
Name | Type | Description | Notes |
---|---|---|---|
body | ACSceneCreationInfo* | Body |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
-(NSURLSessionTask*) getSceneWithSceneId: (NSString*) sceneId
completionHandler: (void (^)(ACSceneEnvelope* output, NSError* error)) handler;
Get a scene
Get a scene
ACDefaultConfiguration *apiConfig = [ACDefaultConfiguration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: artikcloud_oauth)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
NSString* sceneId = @"sceneId_example"; // Scene id
ACScenesApi*apiInstance = [[ACScenesApi alloc] init];
// Get a scene
[apiInstance getSceneWithSceneId:sceneId
completionHandler: ^(ACSceneEnvelope* output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error calling ACScenesApi->getScene: %@", error);
}
}];
Name | Type | Description | Notes |
---|---|---|---|
sceneId | NSString* | Scene id |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
-(NSURLSessionTask*) getScenesWithCount: (NSString*) count
offset: (NSString*) offset
completionHandler: (void (^)(ACScenesEnvelope* output, NSError* error)) handler;
Get all user scenes
Get all user scenes
ACDefaultConfiguration *apiConfig = [ACDefaultConfiguration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: artikcloud_oauth)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
NSString* count = @"count_example"; // count (optional)
NSString* offset = @"offset_example"; // offset (optional)
ACScenesApi*apiInstance = [[ACScenesApi alloc] init];
// Get all user scenes
[apiInstance getScenesWithCount:count
offset:offset
completionHandler: ^(ACScenesEnvelope* output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error calling ACScenesApi->getScenes: %@", error);
}
}];
Name | Type | Description | Notes |
---|---|---|---|
count | NSString* | count | [optional] |
offset | NSString* | offset | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
-(NSURLSessionTask*) scenesSceneIdDeleteWithSceneId: (NSString*) sceneId
completionHandler: (void (^)(ACSceneEnvelope* output, NSError* error)) handler;
Delete a scene
Delete a scene
ACDefaultConfiguration *apiConfig = [ACDefaultConfiguration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: artikcloud_oauth)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
NSString* sceneId = @"sceneId_example"; // Scene id
ACScenesApi*apiInstance = [[ACScenesApi alloc] init];
// Delete a scene
[apiInstance scenesSceneIdDeleteWithSceneId:sceneId
completionHandler: ^(ACSceneEnvelope* output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error calling ACScenesApi->scenesSceneIdDelete: %@", error);
}
}];
Name | Type | Description | Notes |
---|---|---|---|
sceneId | NSString* | Scene id |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
-(NSURLSessionTask*) triggerSceneWithSceneId: (NSString*) sceneId
body: (NSObject*) body
completionHandler: (void (^)(ACSceneEnvelope* output, NSError* error)) handler;
Trigger a scene
Trigger a scene
ACDefaultConfiguration *apiConfig = [ACDefaultConfiguration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: artikcloud_oauth)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
NSString* sceneId = @"sceneId_example"; // Scene id
NSObject* body = NULL; // Body
ACScenesApi*apiInstance = [[ACScenesApi alloc] init];
// Trigger a scene
[apiInstance triggerSceneWithSceneId:sceneId
body:body
completionHandler: ^(ACSceneEnvelope* output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error calling ACScenesApi->triggerScene: %@", error);
}
}];
Name | Type | Description | Notes |
---|---|---|---|
sceneId | NSString* | Scene id | |
body | NSObject* | Body |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
-(NSURLSessionTask*) updateSceneWithSceneId: (NSString*) sceneId
body: (ACSceneCreationInfo*) body
completionHandler: (void (^)(ACSceneEnvelope* output, NSError* error)) handler;
Update a scene
Update a scene
ACDefaultConfiguration *apiConfig = [ACDefaultConfiguration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: artikcloud_oauth)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
NSString* sceneId = @"sceneId_example"; // Scene id
ACSceneCreationInfo* body = [[ACSceneCreationInfo alloc] init]; // Body
ACScenesApi*apiInstance = [[ACScenesApi alloc] init];
// Update a scene
[apiInstance updateSceneWithSceneId:sceneId
body:body
completionHandler: ^(ACSceneEnvelope* output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error calling ACScenesApi->updateScene: %@", error);
}
}];
Name | Type | Description | Notes |
---|---|---|---|
sceneId | NSString* | Scene id | |
body | ACSceneCreationInfo* | Body |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]