Skip to content

Latest commit

 

History

History
184 lines (127 loc) · 5.81 KB

ACTagsApi.md

File metadata and controls

184 lines (127 loc) · 5.81 KB

ACTagsApi

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

Method HTTP request Description
getTagCategories GET /tags/categories Get all categories
getTagSuggestions GET /tags/suggestions Get tag suggestions
getTagsByCategories GET /tags Get all tags of categories

getTagCategories

-(NSURLSessionTask*) getTagCategoriesWithCompletionHandler: 
        (void (^)(ACTagsEnvelope* output, NSError* error)) handler;

Get all categories

Get all tags marked as categories

Example

ACDefaultConfiguration *apiConfig = [ACDefaultConfiguration sharedConfig];

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



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

// Get all categories
[apiInstance getTagCategoriesWithCompletionHandler: 
          ^(ACTagsEnvelope* output, NSError* error) {
                        if (output) {
                            NSLog(@"%@", output);
                        }
                        if (error) {
                            NSLog(@"Error calling ACTagsApi->getTagCategories: %@", error);
                        }
                    }];

Parameters

This endpoint does not need any parameter.

Return type

ACTagsEnvelope*

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]

getTagSuggestions

-(NSURLSessionTask*) getTagSuggestionsWithEntityType: (NSString*) entityType
    tags: (NSString*) tags
    name: (NSString*) name
    count: (NSNumber*) count
        completionHandler: (void (^)(ACTagsEnvelope* output, NSError* error)) handler;

Get tag suggestions

Get tag suggestions for applications, device types that have been most used with a group of tags.

Example

ACDefaultConfiguration *apiConfig = [ACDefaultConfiguration sharedConfig];

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


NSString* entityType = @"entityType_example"; // Entity type name. (optional)
NSString* tags = @"tags_example"; // Comma separated list of tags. (optional)
NSString* name = @"name_example"; // Name of tags used for type ahead. (optional)
NSNumber* count = @56; // Number of results to return. Max 10. (optional)

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

// Get tag suggestions
[apiInstance getTagSuggestionsWithEntityType:entityType
              tags:tags
              name:name
              count:count
          completionHandler: ^(ACTagsEnvelope* output, NSError* error) {
                        if (output) {
                            NSLog(@"%@", output);
                        }
                        if (error) {
                            NSLog(@"Error calling ACTagsApi->getTagSuggestions: %@", error);
                        }
                    }];

Parameters

Name Type Description Notes
entityType NSString* Entity type name. [optional]
tags NSString* Comma separated list of tags. [optional]
name NSString* Name of tags used for type ahead. [optional]
count NSNumber* Number of results to return. Max 10. [optional]

Return type

ACTagsEnvelope*

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]

getTagsByCategories

-(NSURLSessionTask*) getTagsByCategoriesWithCategories: (NSString*) categories
        completionHandler: (void (^)(ACTagsEnvelope* output, NSError* error)) handler;

Get all tags of categories

Get all tags related to the list of categories

Example

ACDefaultConfiguration *apiConfig = [ACDefaultConfiguration sharedConfig];

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


NSString* categories = @"categories_example"; // Comma separated list of categories. (optional)

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

// Get all tags of categories
[apiInstance getTagsByCategoriesWithCategories:categories
          completionHandler: ^(ACTagsEnvelope* output, NSError* error) {
                        if (output) {
                            NSLog(@"%@", output);
                        }
                        if (error) {
                            NSLog(@"Error calling ACTagsApi->getTagsByCategories: %@", error);
                        }
                    }];

Parameters

Name Type Description Notes
categories NSString* Comma separated list of categories. [optional]

Return type

ACTagsEnvelope*

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]