Skip to content

Latest commit

 

History

History
72 lines (50 loc) · 2.09 KB

ACDefaultApi.md

File metadata and controls

72 lines (50 loc) · 2.09 KB

ACDefaultApi

All URIs are relative to https://api.artik.cloud/v1.1

Method HTTP request Description
getUserScenes GET /users/{uid}/scenes Get all user scenes

getUserScenes

-(NSURLSessionTask*) getUserScenesWithUid: (NSString*) uid
    count: (NSString*) count
    offset: (NSString*) offset
        completionHandler: (void (^)(ACScenesEnvelope* output, NSError* error)) handler;

Get all user scenes

Get all user scenes

Example

ACDefaultConfiguration *apiConfig = [ACDefaultConfiguration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: artikcloud_oauth)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


NSString* uid = @"uid_example"; // User id
NSString* count = @"count_example"; // count (optional)
NSString* offset = @"offset_example"; // offset (optional)

ACDefaultApi*apiInstance = [[ACDefaultApi alloc] init];

// Get all user scenes
[apiInstance getUserScenesWithUid:uid
              count:count
              offset:offset
          completionHandler: ^(ACScenesEnvelope* output, NSError* error) {
                        if (output) {
                            NSLog(@"%@", output);
                        }
                        if (error) {
                            NSLog(@"Error calling ACDefaultApi->getUserScenes: %@", error);
                        }
                    }];

Parameters

Name Type Description Notes
uid NSString* User id
count NSString* count [optional]
offset NSString* offset [optional]

Return type

ACScenesEnvelope*

Authorization

artikcloud_oauth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]