AI Mastering API

AccessToken

createAccessToken

Create an API access token.


/access_tokens

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/access_tokens"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AccessTokenApi;

import java.io.File;
import java.util.*;

public class AccessTokenApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        AccessTokenApi apiInstance = new AccessTokenApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            AccessToken result = apiInstance.createAccessToken(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccessTokenApi#createAccessToken");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AccessTokenApi;

public class AccessTokenApiExample {

    public static void main(String[] args) {
        AccessTokenApi apiInstance = new AccessTokenApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            AccessToken result = apiInstance.createAccessToken(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccessTokenApi#createAccessToken");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 

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

// Create an API access token.
[apiInstance createAccessTokenWith:apiecoKey
              completionHandler: ^(AccessToken output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.AccessTokenApi()

var apiecoKey = apiecoKey_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createAccessToken(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createAccessTokenExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new AccessTokenApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                // Create an API access token.
                AccessToken result = apiInstance.createAccessToken(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AccessTokenApi.createAccessToken: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\AccessTokenApi();
$apiecoKey = apiecoKey_example; // String | 

try {
    $result = $api_instance->createAccessToken($apiecoKey);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccessTokenApi->createAccessToken: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AccessTokenApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::AccessTokenApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->createAccessToken(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccessTokenApi->createAccessToken: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.AccessTokenApi()
apiecoKey = apiecoKey_example # String | 

try: 
    # Create an API access token.
    api_response = api_instance.create_access_token(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccessTokenApi->createAccessToken: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 201 - Success

Status: default - Error


AmazonSubscription

listAmazonSubscriptions

Get all accessable amazon subscriptions.


/amazon_subscriptions

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/amazon_subscriptions"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AmazonSubscriptionApi;

import java.io.File;
import java.util.*;

public class AmazonSubscriptionApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        AmazonSubscriptionApi apiInstance = new AmazonSubscriptionApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            array[AmazonSubscription] result = apiInstance.listAmazonSubscriptions(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AmazonSubscriptionApi#listAmazonSubscriptions");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AmazonSubscriptionApi;

public class AmazonSubscriptionApiExample {

    public static void main(String[] args) {
        AmazonSubscriptionApi apiInstance = new AmazonSubscriptionApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            array[AmazonSubscription] result = apiInstance.listAmazonSubscriptions(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AmazonSubscriptionApi#listAmazonSubscriptions");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 

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

// Get all accessable amazon subscriptions.
[apiInstance listAmazonSubscriptionsWith:apiecoKey
              completionHandler: ^(array[AmazonSubscription] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.AmazonSubscriptionApi()

var apiecoKey = apiecoKey_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.listAmazonSubscriptions(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class listAmazonSubscriptionsExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new AmazonSubscriptionApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                // Get all accessable amazon subscriptions.
                array[AmazonSubscription] result = apiInstance.listAmazonSubscriptions(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AmazonSubscriptionApi.listAmazonSubscriptions: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\AmazonSubscriptionApi();
$apiecoKey = apiecoKey_example; // String | 

try {
    $result = $api_instance->listAmazonSubscriptions($apiecoKey);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AmazonSubscriptionApi->listAmazonSubscriptions: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AmazonSubscriptionApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::AmazonSubscriptionApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->listAmazonSubscriptions(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AmazonSubscriptionApi->listAmazonSubscriptions: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.AmazonSubscriptionApi()
apiecoKey = apiecoKey_example # String | 

try: 
    # Get all accessable amazon subscriptions.
    api_response = api_instance.list_amazon_subscriptions(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AmazonSubscriptionApi->listAmazonSubscriptions: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Success

Status: default - Error


Audio

createAudio

Create a new audio.


/audios

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/audios"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AudioApi;

import java.io.File;
import java.util.*;

public class AudioApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        AudioApi apiInstance = new AudioApi();
        String apiecoKey = apiecoKey_example; // String | 
        File file = /path/to/file.txt; // File | The file to upload.
        String name = name_example; // String | Audio name. If this is not specified, the name in file parameter is used.
        try {
            Audio result = apiInstance.createAudio(apiecoKey, file, name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AudioApi#createAudio");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AudioApi;

public class AudioApiExample {

    public static void main(String[] args) {
        AudioApi apiInstance = new AudioApi();
        String apiecoKey = apiecoKey_example; // String | 
        File file = /path/to/file.txt; // File | The file to upload.
        String name = name_example; // String | Audio name. If this is not specified, the name in file parameter is used.
        try {
            Audio result = apiInstance.createAudio(apiecoKey, file, name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AudioApi#createAudio");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
File *file = /path/to/file.txt; // The file to upload. (optional)
String *name = name_example; // Audio name. If this is not specified, the name in file parameter is used. (optional)

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

// Create a new audio.
[apiInstance createAudioWith:apiecoKey
    file:file
    name:name
              completionHandler: ^(Audio output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.AudioApi()

var apiecoKey = apiecoKey_example; // {String} 

var opts = { 
  'file': /path/to/file.txt, // {File} The file to upload.
  'name': name_example // {String} Audio name. If this is not specified, the name in file parameter is used.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createAudio(apiecoKey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createAudioExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new AudioApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var file = new File(); // File | The file to upload. (optional) 
            var name = name_example;  // String | Audio name. If this is not specified, the name in file parameter is used. (optional) 

            try
            {
                // Create a new audio.
                Audio result = apiInstance.createAudio(apiecoKey, file, name);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AudioApi.createAudio: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\AudioApi();
$apiecoKey = apiecoKey_example; // String | 
$file = /path/to/file.txt; // File | The file to upload.
$name = name_example; // String | Audio name. If this is not specified, the name in file parameter is used.

try {
    $result = $api_instance->createAudio($apiecoKey, $file, $name);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AudioApi->createAudio: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AudioApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::AudioApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $file = /path/to/file.txt; # File | The file to upload.
my $name = name_example; # String | Audio name. If this is not specified, the name in file parameter is used.

eval { 
    my $result = $api_instance->createAudio(apiecoKey => $apiecoKey, file => $file, name => $name);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AudioApi->createAudio: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.AudioApi()
apiecoKey = apiecoKey_example # String | 
file = /path/to/file.txt # File | The file to upload. (optional)
name = name_example # String | Audio name. If this is not specified, the name in file parameter is used. (optional)

try: 
    # Create a new audio.
    api_response = api_instance.create_audio(apiecoKey, file=file, name=name)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AudioApi->createAudio: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Form parameters
Name Description
file
File
The file to upload.
name
String
Audio name. If this is not specified, the name in file parameter is used.

Responses

Status: 201 - Success

Status: default - Error


downloadAudio

Download an audio data by id.


/audios/{id}/download

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/audios/{id}/download"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AudioApi;

import java.io.File;
import java.util.*;

public class AudioApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        AudioApi apiInstance = new AudioApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Audio id
        try {
            byte[] result = apiInstance.downloadAudio(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AudioApi#downloadAudio");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AudioApi;

public class AudioApiExample {

    public static void main(String[] args) {
        AudioApi apiInstance = new AudioApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Audio id
        try {
            byte[] result = apiInstance.downloadAudio(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AudioApi#downloadAudio");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // Audio id

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

// Download an audio data by id.
[apiInstance downloadAudioWith:apiecoKey
    id:id
              completionHandler: ^(byte[] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.AudioApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} Audio id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.downloadAudio(apiecoKey, id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class downloadAudioExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new AudioApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | Audio id

            try
            {
                // Download an audio data by id.
                byte[] result = apiInstance.downloadAudio(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AudioApi.downloadAudio: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\AudioApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | Audio id

try {
    $result = $api_instance->downloadAudio($apiecoKey, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AudioApi->downloadAudio: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AudioApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::AudioApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | Audio id

eval { 
    my $result = $api_instance->downloadAudio(apiecoKey => $apiecoKey, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AudioApi->downloadAudio: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.AudioApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | Audio id

try: 
    # Download an audio data by id.
    api_response = api_instance.download_audio(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AudioApi->downloadAudio: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Audio id
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Success

Status: default - Error


downloadAudioByToken

Download an audio data by audio_download_token.


/audios/download_by_token

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/audios/download_by_token?download_token="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AudioApi;

import java.io.File;
import java.util.*;

public class AudioApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        AudioApi apiInstance = new AudioApi();
        String apiecoKey = apiecoKey_example; // String | 
        String downloadToken = downloadToken_example; // String | Audio download token
        try {
            byte[] result = apiInstance.downloadAudioByToken(apiecoKey, downloadToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AudioApi#downloadAudioByToken");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AudioApi;

public class AudioApiExample {

    public static void main(String[] args) {
        AudioApi apiInstance = new AudioApi();
        String apiecoKey = apiecoKey_example; // String | 
        String downloadToken = downloadToken_example; // String | Audio download token
        try {
            byte[] result = apiInstance.downloadAudioByToken(apiecoKey, downloadToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AudioApi#downloadAudioByToken");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
String *downloadToken = downloadToken_example; // Audio download token

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

// Download an audio data by audio_download_token.
[apiInstance downloadAudioByTokenWith:apiecoKey
    downloadToken:downloadToken
              completionHandler: ^(byte[] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.AudioApi()

var apiecoKey = apiecoKey_example; // {String} 

var downloadToken = downloadToken_example; // {String} Audio download token


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.downloadAudioByToken(apiecoKey, downloadToken, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class downloadAudioByTokenExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new AudioApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var downloadToken = downloadToken_example;  // String | Audio download token

            try
            {
                // Download an audio data by audio_download_token.
                byte[] result = apiInstance.downloadAudioByToken(apiecoKey, downloadToken);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AudioApi.downloadAudioByToken: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\AudioApi();
$apiecoKey = apiecoKey_example; // String | 
$downloadToken = downloadToken_example; // String | Audio download token

try {
    $result = $api_instance->downloadAudioByToken($apiecoKey, $downloadToken);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AudioApi->downloadAudioByToken: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AudioApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::AudioApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $downloadToken = downloadToken_example; # String | Audio download token

eval { 
    my $result = $api_instance->downloadAudioByToken(apiecoKey => $apiecoKey, downloadToken => $downloadToken);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AudioApi->downloadAudioByToken: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.AudioApi()
apiecoKey = apiecoKey_example # String | 
downloadToken = downloadToken_example # String | Audio download token

try: 
    # Download an audio data by audio_download_token.
    api_response = api_instance.download_audio_by_token(apiecoKey, downloadToken)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AudioApi->downloadAudioByToken: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
download_token*
String (JWT)
Audio download token
Required

Responses

Status: 200 - Success

Status: default - Error


getAudio

Get an audio by id.


/audios/{id}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/audios/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AudioApi;

import java.io.File;
import java.util.*;

public class AudioApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        AudioApi apiInstance = new AudioApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Audio id
        try {
            Audio result = apiInstance.getAudio(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AudioApi#getAudio");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AudioApi;

public class AudioApiExample {

    public static void main(String[] args) {
        AudioApi apiInstance = new AudioApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Audio id
        try {
            Audio result = apiInstance.getAudio(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AudioApi#getAudio");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // Audio id

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

// Get an audio by id.
[apiInstance getAudioWith:apiecoKey
    id:id
              completionHandler: ^(Audio output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.AudioApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} Audio id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAudio(apiecoKey, id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getAudioExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new AudioApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | Audio id

            try
            {
                // Get an audio by id.
                Audio result = apiInstance.getAudio(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AudioApi.getAudio: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\AudioApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | Audio id

try {
    $result = $api_instance->getAudio($apiecoKey, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AudioApi->getAudio: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AudioApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::AudioApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | Audio id

eval { 
    my $result = $api_instance->getAudio(apiecoKey => $apiecoKey, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AudioApi->getAudio: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.AudioApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | Audio id

try: 
    # Get an audio by id.
    api_response = api_instance.get_audio(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AudioApi->getAudio: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Audio id
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Success

Status: default - Error


getAudioAnalysis

Get an audio analysis by id.


/audios/{id}/analysis

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/audios/{id}/analysis"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AudioApi;

import java.io.File;
import java.util.*;

public class AudioApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        AudioApi apiInstance = new AudioApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Audio id
        try {
            AudioAnalysis result = apiInstance.getAudioAnalysis(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AudioApi#getAudioAnalysis");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AudioApi;

public class AudioApiExample {

    public static void main(String[] args) {
        AudioApi apiInstance = new AudioApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Audio id
        try {
            AudioAnalysis result = apiInstance.getAudioAnalysis(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AudioApi#getAudioAnalysis");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // Audio id

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

// Get an audio analysis by id.
[apiInstance getAudioAnalysisWith:apiecoKey
    id:id
              completionHandler: ^(AudioAnalysis output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.AudioApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} Audio id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAudioAnalysis(apiecoKey, id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getAudioAnalysisExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new AudioApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | Audio id

            try
            {
                // Get an audio analysis by id.
                AudioAnalysis result = apiInstance.getAudioAnalysis(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AudioApi.getAudioAnalysis: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\AudioApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | Audio id

try {
    $result = $api_instance->getAudioAnalysis($apiecoKey, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AudioApi->getAudioAnalysis: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AudioApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::AudioApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | Audio id

eval { 
    my $result = $api_instance->getAudioAnalysis(apiecoKey => $apiecoKey, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AudioApi->getAudioAnalysis: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.AudioApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | Audio id

try: 
    # Get an audio analysis by id.
    api_response = api_instance.get_audio_analysis(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AudioApi->getAudioAnalysis: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Audio id
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Success

Status: default - Error


getAudioDownloadToken

Get an audio download token by id.


/audios/{id}/download_token

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/audios/{id}/download_token"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AudioApi;

import java.io.File;
import java.util.*;

public class AudioApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        AudioApi apiInstance = new AudioApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Audio id
        try {
            AudioDownloadToken result = apiInstance.getAudioDownloadToken(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AudioApi#getAudioDownloadToken");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AudioApi;

public class AudioApiExample {

    public static void main(String[] args) {
        AudioApi apiInstance = new AudioApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Audio id
        try {
            AudioDownloadToken result = apiInstance.getAudioDownloadToken(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AudioApi#getAudioDownloadToken");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // Audio id

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

// Get an audio download token by id.
[apiInstance getAudioDownloadTokenWith:apiecoKey
    id:id
              completionHandler: ^(AudioDownloadToken output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.AudioApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} Audio id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAudioDownloadToken(apiecoKey, id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getAudioDownloadTokenExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new AudioApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | Audio id

            try
            {
                // Get an audio download token by id.
                AudioDownloadToken result = apiInstance.getAudioDownloadToken(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AudioApi.getAudioDownloadToken: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\AudioApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | Audio id

try {
    $result = $api_instance->getAudioDownloadToken($apiecoKey, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AudioApi->getAudioDownloadToken: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AudioApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::AudioApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | Audio id

eval { 
    my $result = $api_instance->getAudioDownloadToken(apiecoKey => $apiecoKey, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AudioApi->getAudioDownloadToken: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.AudioApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | Audio id

try: 
    # Get an audio download token by id.
    api_response = api_instance.get_audio_download_token(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AudioApi->getAudioDownloadToken: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Audio id
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Success

Status: default - Error


listAudios

Get all audios accessable.


/audios

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/audios"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AudioApi;

import java.io.File;
import java.util.*;

public class AudioApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        AudioApi apiInstance = new AudioApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            array[Audio] result = apiInstance.listAudios(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AudioApi#listAudios");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AudioApi;

public class AudioApiExample {

    public static void main(String[] args) {
        AudioApi apiInstance = new AudioApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            array[Audio] result = apiInstance.listAudios(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AudioApi#listAudios");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 

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

// Get all audios accessable.
[apiInstance listAudiosWith:apiecoKey
              completionHandler: ^(array[Audio] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.AudioApi()

var apiecoKey = apiecoKey_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.listAudios(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class listAudiosExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new AudioApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                // Get all audios accessable.
                array[Audio] result = apiInstance.listAudios(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AudioApi.listAudios: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\AudioApi();
$apiecoKey = apiecoKey_example; // String | 

try {
    $result = $api_instance->listAudios($apiecoKey);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AudioApi->listAudios: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AudioApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::AudioApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->listAudios(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AudioApi->listAudios: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.AudioApi()
apiecoKey = apiecoKey_example # String | 

try: 
    # Get all audios accessable.
    api_response = api_instance.list_audios(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AudioApi->listAudios: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Success

Status: default - Error


Config

getConfig

Get config.


/config

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/config"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ConfigApi;

import java.io.File;
import java.util.*;

public class ConfigApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        ConfigApi apiInstance = new ConfigApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            Config result = apiInstance.getConfig(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#getConfig");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ConfigApi;

public class ConfigApiExample {

    public static void main(String[] args) {
        ConfigApi apiInstance = new ConfigApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            Config result = apiInstance.getConfig(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#getConfig");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 

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

// Get config.
[apiInstance getConfigWith:apiecoKey
              completionHandler: ^(Config output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.ConfigApi()

var apiecoKey = apiecoKey_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getConfig(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getConfigExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new ConfigApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                // Get config.
                Config result = apiInstance.getConfig(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ConfigApi.getConfig: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\ConfigApi();
$apiecoKey = apiecoKey_example; // String | 

try {
    $result = $api_instance->getConfig($apiecoKey);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ConfigApi->getConfig: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ConfigApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ConfigApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->getConfig(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ConfigApi->getConfig: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ConfigApi()
apiecoKey = apiecoKey_example # String | 

try: 
    # Get config.
    api_response = api_instance.get_config(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConfigApi->getConfig: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Success

Status: default - Error


ExternalSearch

searchExternal

Search external music and get name, url, thumbnails, etc.


/external_search

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/external_search?query=&country="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ExternalSearchApi;

import java.io.File;
import java.util.*;

public class ExternalSearchApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        ExternalSearchApi apiInstance = new ExternalSearchApi();
        String apiecoKey = apiecoKey_example; // String | 
        String query = query_example; // String | Search query
        String country = country_example; // String | Country ex. US, JP, etc
        try {
            ExternalSearchResult result = apiInstance.searchExternal(apiecoKey, query, country);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ExternalSearchApi#searchExternal");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ExternalSearchApi;

public class ExternalSearchApiExample {

    public static void main(String[] args) {
        ExternalSearchApi apiInstance = new ExternalSearchApi();
        String apiecoKey = apiecoKey_example; // String | 
        String query = query_example; // String | Search query
        String country = country_example; // String | Country ex. US, JP, etc
        try {
            ExternalSearchResult result = apiInstance.searchExternal(apiecoKey, query, country);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ExternalSearchApi#searchExternal");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
String *query = query_example; // Search query
String *country = country_example; // Country ex. US, JP, etc

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

// Search external music and get name, url, thumbnails, etc.
[apiInstance searchExternalWith:apiecoKey
    query:query
    country:country
              completionHandler: ^(ExternalSearchResult output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.ExternalSearchApi()

var apiecoKey = apiecoKey_example; // {String} 

var query = query_example; // {String} Search query

var country = country_example; // {String} Country ex. US, JP, etc


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.searchExternal(apiecoKey, query, country, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class searchExternalExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new ExternalSearchApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var query = query_example;  // String | Search query
            var country = country_example;  // String | Country ex. US, JP, etc

            try
            {
                // Search external music and get name, url, thumbnails, etc.
                ExternalSearchResult result = apiInstance.searchExternal(apiecoKey, query, country);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ExternalSearchApi.searchExternal: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\ExternalSearchApi();
$apiecoKey = apiecoKey_example; // String | 
$query = query_example; // String | Search query
$country = country_example; // String | Country ex. US, JP, etc

try {
    $result = $api_instance->searchExternal($apiecoKey, $query, $country);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ExternalSearchApi->searchExternal: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ExternalSearchApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ExternalSearchApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $query = query_example; # String | Search query
my $country = country_example; # String | Country ex. US, JP, etc

eval { 
    my $result = $api_instance->searchExternal(apiecoKey => $apiecoKey, query => $query, country => $country);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ExternalSearchApi->searchExternal: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ExternalSearchApi()
apiecoKey = apiecoKey_example # String | 
query = query_example # String | Search query
country = country_example # String | Country ex. US, JP, etc

try: 
    # Search external music and get name, url, thumbnails, etc.
    api_response = api_instance.search_external(apiecoKey, query, country)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ExternalSearchApi->searchExternal: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
query*
String
Search query
Required
country*
String
Country ex. US, JP, etc
Required

Responses

Status: 200 - Success

Status: default - Error


LibraryAudio

createLibraryAudio

Create a new library audio.


/library_audios

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/library_audios"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LibraryAudioApi;

import java.io.File;
import java.util.*;

public class LibraryAudioApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        LibraryAudioApi apiInstance = new LibraryAudioApi();
        String apiecoKey = apiecoKey_example; // String | 
        File file = /path/to/file.txt; // File | The file to upload.
        try {
            LibraryAudio result = apiInstance.createLibraryAudio(apiecoKey, file);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LibraryAudioApi#createLibraryAudio");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LibraryAudioApi;

public class LibraryAudioApiExample {

    public static void main(String[] args) {
        LibraryAudioApi apiInstance = new LibraryAudioApi();
        String apiecoKey = apiecoKey_example; // String | 
        File file = /path/to/file.txt; // File | The file to upload.
        try {
            LibraryAudio result = apiInstance.createLibraryAudio(apiecoKey, file);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LibraryAudioApi#createLibraryAudio");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
File *file = /path/to/file.txt; // The file to upload. (optional)

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

// Create a new library audio.
[apiInstance createLibraryAudioWith:apiecoKey
    file:file
              completionHandler: ^(LibraryAudio output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.LibraryAudioApi()

var apiecoKey = apiecoKey_example; // {String} 

var opts = { 
  'file': /path/to/file.txt // {File} The file to upload.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createLibraryAudio(apiecoKey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createLibraryAudioExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new LibraryAudioApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var file = new File(); // File | The file to upload. (optional) 

            try
            {
                // Create a new library audio.
                LibraryAudio result = apiInstance.createLibraryAudio(apiecoKey, file);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LibraryAudioApi.createLibraryAudio: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\LibraryAudioApi();
$apiecoKey = apiecoKey_example; // String | 
$file = /path/to/file.txt; // File | The file to upload.

try {
    $result = $api_instance->createLibraryAudio($apiecoKey, $file);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LibraryAudioApi->createLibraryAudio: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LibraryAudioApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LibraryAudioApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $file = /path/to/file.txt; # File | The file to upload.

eval { 
    my $result = $api_instance->createLibraryAudio(apiecoKey => $apiecoKey, file => $file);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LibraryAudioApi->createLibraryAudio: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.LibraryAudioApi()
apiecoKey = apiecoKey_example # String | 
file = /path/to/file.txt # File | The file to upload. (optional)

try: 
    # Create a new library audio.
    api_response = api_instance.create_library_audio(apiecoKey, file=file)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LibraryAudioApi->createLibraryAudio: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Form parameters
Name Description
file
File
The file to upload.

Responses

Status: 201 - Success

Status: default - Error


createLibraryAudioLike

Create a new library audio like.


/library_audios/{id}/like

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/library_audios/{id}/like"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LibraryAudioApi;

import java.io.File;
import java.util.*;

public class LibraryAudioApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        LibraryAudioApi apiInstance = new LibraryAudioApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Library audio id
        try {
            LibraryAudioLike result = apiInstance.createLibraryAudioLike(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LibraryAudioApi#createLibraryAudioLike");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LibraryAudioApi;

public class LibraryAudioApiExample {

    public static void main(String[] args) {
        LibraryAudioApi apiInstance = new LibraryAudioApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Library audio id
        try {
            LibraryAudioLike result = apiInstance.createLibraryAudioLike(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LibraryAudioApi#createLibraryAudioLike");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // Library audio id

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

// Create a new library audio like.
[apiInstance createLibraryAudioLikeWith:apiecoKey
    id:id
              completionHandler: ^(LibraryAudioLike output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.LibraryAudioApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} Library audio id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createLibraryAudioLike(apiecoKey, id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createLibraryAudioLikeExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new LibraryAudioApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | Library audio id

            try
            {
                // Create a new library audio like.
                LibraryAudioLike result = apiInstance.createLibraryAudioLike(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LibraryAudioApi.createLibraryAudioLike: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\LibraryAudioApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | Library audio id

try {
    $result = $api_instance->createLibraryAudioLike($apiecoKey, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LibraryAudioApi->createLibraryAudioLike: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LibraryAudioApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LibraryAudioApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | Library audio id

eval { 
    my $result = $api_instance->createLibraryAudioLike(apiecoKey => $apiecoKey, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LibraryAudioApi->createLibraryAudioLike: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.LibraryAudioApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | Library audio id

try: 
    # Create a new library audio like.
    api_response = api_instance.create_library_audio_like(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LibraryAudioApi->createLibraryAudioLike: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Library audio id
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 201 - Success

Status: default - Error


deleteLibraryAudio

Delete library audio.


/library_audios/{id}

Usage and SDK Samples

curl -X DELETE -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/library_audios/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LibraryAudioApi;

import java.io.File;
import java.util.*;

public class LibraryAudioApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        LibraryAudioApi apiInstance = new LibraryAudioApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Library audio id
        try {
            LibraryAudio result = apiInstance.deleteLibraryAudio(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LibraryAudioApi#deleteLibraryAudio");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LibraryAudioApi;

public class LibraryAudioApiExample {

    public static void main(String[] args) {
        LibraryAudioApi apiInstance = new LibraryAudioApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Library audio id
        try {
            LibraryAudio result = apiInstance.deleteLibraryAudio(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LibraryAudioApi#deleteLibraryAudio");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // Library audio id

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

// Delete library audio.
[apiInstance deleteLibraryAudioWith:apiecoKey
    id:id
              completionHandler: ^(LibraryAudio output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.LibraryAudioApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} Library audio id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteLibraryAudio(apiecoKey, id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteLibraryAudioExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new LibraryAudioApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | Library audio id

            try
            {
                // Delete library audio.
                LibraryAudio result = apiInstance.deleteLibraryAudio(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LibraryAudioApi.deleteLibraryAudio: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\LibraryAudioApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | Library audio id

try {
    $result = $api_instance->deleteLibraryAudio($apiecoKey, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LibraryAudioApi->deleteLibraryAudio: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LibraryAudioApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LibraryAudioApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | Library audio id

eval { 
    my $result = $api_instance->deleteLibraryAudio(apiecoKey => $apiecoKey, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LibraryAudioApi->deleteLibraryAudio: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.LibraryAudioApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | Library audio id

try: 
    # Delete library audio.
    api_response = api_instance.delete_library_audio(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LibraryAudioApi->deleteLibraryAudio: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Library audio id
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Success

Status: default - Error


getLibraryAudio

Get a library audio by id.


/library_audios/{id}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/library_audios/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LibraryAudioApi;

import java.io.File;
import java.util.*;

public class LibraryAudioApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        LibraryAudioApi apiInstance = new LibraryAudioApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Library audio id
        try {
            LibraryAudio result = apiInstance.getLibraryAudio(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LibraryAudioApi#getLibraryAudio");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LibraryAudioApi;

public class LibraryAudioApiExample {

    public static void main(String[] args) {
        LibraryAudioApi apiInstance = new LibraryAudioApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Library audio id
        try {
            LibraryAudio result = apiInstance.getLibraryAudio(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LibraryAudioApi#getLibraryAudio");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // Library audio id

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

// Get a library audio by id.
[apiInstance getLibraryAudioWith:apiecoKey
    id:id
              completionHandler: ^(LibraryAudio output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.LibraryAudioApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} Library audio id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getLibraryAudio(apiecoKey, id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getLibraryAudioExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new LibraryAudioApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | Library audio id

            try
            {
                // Get a library audio by id.
                LibraryAudio result = apiInstance.getLibraryAudio(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LibraryAudioApi.getLibraryAudio: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\LibraryAudioApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | Library audio id

try {
    $result = $api_instance->getLibraryAudio($apiecoKey, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LibraryAudioApi->getLibraryAudio: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LibraryAudioApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LibraryAudioApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | Library audio id

eval { 
    my $result = $api_instance->getLibraryAudio(apiecoKey => $apiecoKey, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LibraryAudioApi->getLibraryAudio: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.LibraryAudioApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | Library audio id

try: 
    # Get a library audio by id.
    api_response = api_instance.get_library_audio(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LibraryAudioApi->getLibraryAudio: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Library audio id
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Success

Status: default - Error


getLibraryAudioAnalysis

Get a library audio analysis by id.


/library_audios/{id}/analysis

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/library_audios/{id}/analysis"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LibraryAudioApi;

import java.io.File;
import java.util.*;

public class LibraryAudioApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        LibraryAudioApi apiInstance = new LibraryAudioApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Library audio id
        try {
            LibraryAudioAnalysis result = apiInstance.getLibraryAudioAnalysis(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LibraryAudioApi#getLibraryAudioAnalysis");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LibraryAudioApi;

public class LibraryAudioApiExample {

    public static void main(String[] args) {
        LibraryAudioApi apiInstance = new LibraryAudioApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Library audio id
        try {
            LibraryAudioAnalysis result = apiInstance.getLibraryAudioAnalysis(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LibraryAudioApi#getLibraryAudioAnalysis");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // Library audio id

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

// Get a library audio analysis by id.
[apiInstance getLibraryAudioAnalysisWith:apiecoKey
    id:id
              completionHandler: ^(LibraryAudioAnalysis output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.LibraryAudioApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} Library audio id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getLibraryAudioAnalysis(apiecoKey, id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getLibraryAudioAnalysisExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new LibraryAudioApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | Library audio id

            try
            {
                // Get a library audio analysis by id.
                LibraryAudioAnalysis result = apiInstance.getLibraryAudioAnalysis(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LibraryAudioApi.getLibraryAudioAnalysis: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\LibraryAudioApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | Library audio id

try {
    $result = $api_instance->getLibraryAudioAnalysis($apiecoKey, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LibraryAudioApi->getLibraryAudioAnalysis: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LibraryAudioApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LibraryAudioApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | Library audio id

eval { 
    my $result = $api_instance->getLibraryAudioAnalysis(apiecoKey => $apiecoKey, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LibraryAudioApi->getLibraryAudioAnalysis: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.LibraryAudioApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | Library audio id

try: 
    # Get a library audio analysis by id.
    api_response = api_instance.get_library_audio_analysis(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LibraryAudioApi->getLibraryAudioAnalysis: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Library audio id
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Success

Status: default - Error


listLibraryAudios

Get all library audios accessable.


/library_audios

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/library_audios"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LibraryAudioApi;

import java.io.File;
import java.util.*;

public class LibraryAudioApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        LibraryAudioApi apiInstance = new LibraryAudioApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            array[LibraryAudio] result = apiInstance.listLibraryAudios(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LibraryAudioApi#listLibraryAudios");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LibraryAudioApi;

public class LibraryAudioApiExample {

    public static void main(String[] args) {
        LibraryAudioApi apiInstance = new LibraryAudioApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            array[LibraryAudio] result = apiInstance.listLibraryAudios(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LibraryAudioApi#listLibraryAudios");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 

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

// Get all library audios accessable.
[apiInstance listLibraryAudiosWith:apiecoKey
              completionHandler: ^(array[LibraryAudio] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.LibraryAudioApi()

var apiecoKey = apiecoKey_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.listLibraryAudios(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class listLibraryAudiosExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new LibraryAudioApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                // Get all library audios accessable.
                array[LibraryAudio] result = apiInstance.listLibraryAudios(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LibraryAudioApi.listLibraryAudios: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\LibraryAudioApi();
$apiecoKey = apiecoKey_example; // String | 

try {
    $result = $api_instance->listLibraryAudios($apiecoKey);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LibraryAudioApi->listLibraryAudios: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LibraryAudioApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LibraryAudioApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->listLibraryAudios(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LibraryAudioApi->listLibraryAudios: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.LibraryAudioApi()
apiecoKey = apiecoKey_example # String | 

try: 
    # Get all library audios accessable.
    api_response = api_instance.list_library_audios(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LibraryAudioApi->listLibraryAudios: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Success

Status: default - Error


updateLibraryAudio

Update library audio.


/library_audios/{id}

Usage and SDK Samples

curl -X PUT -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/library_audios/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LibraryAudioApi;

import java.io.File;
import java.util.*;

public class LibraryAudioApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        LibraryAudioApi apiInstance = new LibraryAudioApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Library audio id
        Boolean isPublic = true; // Boolean | Whether the library audio is public.
        try {
            LibraryAudio result = apiInstance.updateLibraryAudio(apiecoKey, id, isPublic);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LibraryAudioApi#updateLibraryAudio");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LibraryAudioApi;

public class LibraryAudioApiExample {

    public static void main(String[] args) {
        LibraryAudioApi apiInstance = new LibraryAudioApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Library audio id
        Boolean isPublic = true; // Boolean | Whether the library audio is public.
        try {
            LibraryAudio result = apiInstance.updateLibraryAudio(apiecoKey, id, isPublic);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LibraryAudioApi#updateLibraryAudio");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // Library audio id
Boolean *isPublic = true; // Whether the library audio is public. (optional)

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

// Update library audio.
[apiInstance updateLibraryAudioWith:apiecoKey
    id:id
    isPublic:isPublic
              completionHandler: ^(LibraryAudio output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.LibraryAudioApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} Library audio id

var opts = { 
  'isPublic': true // {Boolean} Whether the library audio is public.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateLibraryAudio(apiecoKey, id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateLibraryAudioExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new LibraryAudioApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | Library audio id
            var isPublic = true;  // Boolean | Whether the library audio is public. (optional) 

            try
            {
                // Update library audio.
                LibraryAudio result = apiInstance.updateLibraryAudio(apiecoKey, id, isPublic);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LibraryAudioApi.updateLibraryAudio: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\LibraryAudioApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | Library audio id
$isPublic = true; // Boolean | Whether the library audio is public.

try {
    $result = $api_instance->updateLibraryAudio($apiecoKey, $id, $isPublic);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LibraryAudioApi->updateLibraryAudio: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LibraryAudioApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LibraryAudioApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | Library audio id
my $isPublic = true; # Boolean | Whether the library audio is public.

eval { 
    my $result = $api_instance->updateLibraryAudio(apiecoKey => $apiecoKey, id => $id, isPublic => $isPublic);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LibraryAudioApi->updateLibraryAudio: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.LibraryAudioApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | Library audio id
isPublic = true # Boolean | Whether the library audio is public. (optional)

try: 
    # Update library audio.
    api_response = api_instance.update_library_audio(apiecoKey, id, isPublic=isPublic)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LibraryAudioApi->updateLibraryAudio: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Library audio id
Required
Header parameters
Name Description
apieco-key*
String
Required
Form parameters
Name Description
is_public
Boolean
Whether the library audio is public.

Responses

Status: 200 - Success

Status: default - Error


Mastering

cancelMastering

Cancel a mastering by id.


/masterings/{id}/cancel

Usage and SDK Samples

curl -X PUT -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/masterings/{id}/cancel"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MasteringApi;

import java.io.File;
import java.util.*;

public class MasteringApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        MasteringApi apiInstance = new MasteringApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Mastering id
        try {
            Mastering result = apiInstance.cancelMastering(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MasteringApi#cancelMastering");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MasteringApi;

public class MasteringApiExample {

    public static void main(String[] args) {
        MasteringApi apiInstance = new MasteringApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Mastering id
        try {
            Mastering result = apiInstance.cancelMastering(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MasteringApi#cancelMastering");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // Mastering id

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

// Cancel a mastering by id.
[apiInstance cancelMasteringWith:apiecoKey
    id:id
              completionHandler: ^(Mastering output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.MasteringApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} Mastering id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.cancelMastering(apiecoKey, id, , callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class cancelMasteringExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new MasteringApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | Mastering id

            try
            {
                // Cancel a mastering by id.
                Mastering result = apiInstance.cancelMastering(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MasteringApi.cancelMastering: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\MasteringApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | Mastering id

try {
    $result = $api_instance->cancelMastering($apiecoKey, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MasteringApi->cancelMastering: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MasteringApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::MasteringApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | Mastering id

eval { 
    my $result = $api_instance->cancelMastering(apiecoKey => $apiecoKey, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MasteringApi->cancelMastering: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.MasteringApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | Mastering id

try: 
    # Cancel a mastering by id.
    api_response = api_instance.cancel_mastering(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MasteringApi->cancelMastering: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Mastering id
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Success

Status: default - Error


createMastering

Create a new mastering.


/masterings

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/masterings"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MasteringApi;

import java.io.File;
import java.util.*;

public class MasteringApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        MasteringApi apiInstance = new MasteringApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer inputAudioId = 56; // Integer | Input audio id
        String mode = mode_example; // String | Mode
        Boolean bassPreservation = true; // Boolean | This parameter represents if the bass preservation is enabled.
        Boolean mastering = true; // Boolean | This parameter represents if the mastering is enabled. This parameter is effective only when the mode is "default" or "custom".
        String masteringAlgorithm = masteringAlgorithm_example; // String | 
        Boolean noiseReduction = true; // Boolean | This parameter represents if the nosie reduction is enabled. This parameter is effective only when the mode is "custom".
        String preset = preset_example; // String | This parameter is effective only when the mode is "custom".
        BigDecimal targetLoudness = 8.14; // BigDecimal | This parameter represents the target loudness of the output audio in dB. This parameter is effective only when the mode is "custom".
        String targetLoudnessMode = targetLoudnessMode_example; // String | 
        BigDecimal masteringMatchingLevel = 8.14; // BigDecimal | This parameter represents the mastering reference matching level. This parameter is effective only when the mode is "custom" and the mastering is enabled.
        Boolean masteringReverb = true; // Boolean | This parameter represents if the mastering reverb is enabled. This parameter is effective only when the mode is "custom" and the mastering is enabled.
        BigDecimal masteringReverbGain = 8.14; // BigDecimal | This parameter represents the mastering reverb gain relative to the dry sound in dB. This parameter is effective only when the mode is "custom" and the mastering is "true" and the mastering_reverb is "true".
        Integer referenceAudioId = 56; // Integer | Reference audio id. This parameter is effective only when the mode is "custom" and the mastering is enabled.
        BigDecimal lowCutFreq = 8.14; // BigDecimal | This parameter represents the low cut freq  of the output audio in Hz. This parameter is effective only when the mode is "custom".
        BigDecimal highCutFreq = 8.14; // BigDecimal | This parameter represents the high cut freq of the output audio in Hz. This parameter is effective only when the mode is "custom".
        BigDecimal ceiling = 8.14; // BigDecimal | 
        String ceilingMode = ceilingMode_example; // String | 
        Integer oversample = 56; // Integer | 
        Integer sampleRate = 56; // Integer | This parameter represents the sample rate of the output audio in dB. This parameter is effective only when the mode is "custom".
        Integer bitDepth = 56; // Integer | This parameter represents the bit depth of the output audio in dB. This parameter is effective only when the mode is "custom".
        String outputFormat = outputFormat_example; // String | This parameter represents the format of the output audio. This parameter is effective only when the mode is "custom".
        Boolean forPreview = true; // Boolean | If this is true, the mastering is treated for preview purpose (ex. not purchasable, not publishable, short lifetime). 
        BigDecimal startAt = 8.14; // BigDecimal | Partial mastering start at. 
        BigDecimal endAt = 8.14; // BigDecimal | Partial mastering end at. 
        String videoTitle = videoTitle_example; // String | This parameter represents the title of output video.
        try {
            Mastering result = apiInstance.createMastering(apiecoKey, inputAudioId, mode, bassPreservation, mastering, masteringAlgorithm, noiseReduction, preset, targetLoudness, targetLoudnessMode, masteringMatchingLevel, masteringReverb, masteringReverbGain, referenceAudioId, lowCutFreq, highCutFreq, ceiling, ceilingMode, oversample, sampleRate, bitDepth, outputFormat, forPreview, startAt, endAt, videoTitle);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MasteringApi#createMastering");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MasteringApi;

public class MasteringApiExample {

    public static void main(String[] args) {
        MasteringApi apiInstance = new MasteringApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer inputAudioId = 56; // Integer | Input audio id
        String mode = mode_example; // String | Mode
        Boolean bassPreservation = true; // Boolean | This parameter represents if the bass preservation is enabled.
        Boolean mastering = true; // Boolean | This parameter represents if the mastering is enabled. This parameter is effective only when the mode is "default" or "custom".
        String masteringAlgorithm = masteringAlgorithm_example; // String | 
        Boolean noiseReduction = true; // Boolean | This parameter represents if the nosie reduction is enabled. This parameter is effective only when the mode is "custom".
        String preset = preset_example; // String | This parameter is effective only when the mode is "custom".
        BigDecimal targetLoudness = 8.14; // BigDecimal | This parameter represents the target loudness of the output audio in dB. This parameter is effective only when the mode is "custom".
        String targetLoudnessMode = targetLoudnessMode_example; // String | 
        BigDecimal masteringMatchingLevel = 8.14; // BigDecimal | This parameter represents the mastering reference matching level. This parameter is effective only when the mode is "custom" and the mastering is enabled.
        Boolean masteringReverb = true; // Boolean | This parameter represents if the mastering reverb is enabled. This parameter is effective only when the mode is "custom" and the mastering is enabled.
        BigDecimal masteringReverbGain = 8.14; // BigDecimal | This parameter represents the mastering reverb gain relative to the dry sound in dB. This parameter is effective only when the mode is "custom" and the mastering is "true" and the mastering_reverb is "true".
        Integer referenceAudioId = 56; // Integer | Reference audio id. This parameter is effective only when the mode is "custom" and the mastering is enabled.
        BigDecimal lowCutFreq = 8.14; // BigDecimal | This parameter represents the low cut freq  of the output audio in Hz. This parameter is effective only when the mode is "custom".
        BigDecimal highCutFreq = 8.14; // BigDecimal | This parameter represents the high cut freq of the output audio in Hz. This parameter is effective only when the mode is "custom".
        BigDecimal ceiling = 8.14; // BigDecimal | 
        String ceilingMode = ceilingMode_example; // String | 
        Integer oversample = 56; // Integer | 
        Integer sampleRate = 56; // Integer | This parameter represents the sample rate of the output audio in dB. This parameter is effective only when the mode is "custom".
        Integer bitDepth = 56; // Integer | This parameter represents the bit depth of the output audio in dB. This parameter is effective only when the mode is "custom".
        String outputFormat = outputFormat_example; // String | This parameter represents the format of the output audio. This parameter is effective only when the mode is "custom".
        Boolean forPreview = true; // Boolean | If this is true, the mastering is treated for preview purpose (ex. not purchasable, not publishable, short lifetime). 
        BigDecimal startAt = 8.14; // BigDecimal | Partial mastering start at. 
        BigDecimal endAt = 8.14; // BigDecimal | Partial mastering end at. 
        String videoTitle = videoTitle_example; // String | This parameter represents the title of output video.
        try {
            Mastering result = apiInstance.createMastering(apiecoKey, inputAudioId, mode, bassPreservation, mastering, masteringAlgorithm, noiseReduction, preset, targetLoudness, targetLoudnessMode, masteringMatchingLevel, masteringReverb, masteringReverbGain, referenceAudioId, lowCutFreq, highCutFreq, ceiling, ceilingMode, oversample, sampleRate, bitDepth, outputFormat, forPreview, startAt, endAt, videoTitle);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MasteringApi#createMastering");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *inputAudioId = 56; // Input audio id
String *mode = mode_example; // Mode (optional) (default to default)
Boolean *bassPreservation = true; // This parameter represents if the bass preservation is enabled. (optional) (default to false)
Boolean *mastering = true; // This parameter represents if the mastering is enabled. This parameter is effective only when the mode is "default" or "custom". (optional) (default to false)
String *masteringAlgorithm = masteringAlgorithm_example; //  (optional) (default to v2)
Boolean *noiseReduction = true; // This parameter represents if the nosie reduction is enabled. This parameter is effective only when the mode is "custom". (optional) (default to false)
String *preset = preset_example; // This parameter is effective only when the mode is "custom". (optional) (default to general)
BigDecimal *targetLoudness = 8.14; // This parameter represents the target loudness of the output audio in dB. This parameter is effective only when the mode is "custom". (optional) (default to -5)
String *targetLoudnessMode = targetLoudnessMode_example; //  (optional) (default to loudness)
BigDecimal *masteringMatchingLevel = 8.14; // This parameter represents the mastering reference matching level. This parameter is effective only when the mode is "custom" and the mastering is enabled. (optional) (default to 0.5)
Boolean *masteringReverb = true; // This parameter represents if the mastering reverb is enabled. This parameter is effective only when the mode is "custom" and the mastering is enabled. (optional) (default to false)
BigDecimal *masteringReverbGain = 8.14; // This parameter represents the mastering reverb gain relative to the dry sound in dB. This parameter is effective only when the mode is "custom" and the mastering is "true" and the mastering_reverb is "true". (optional) (default to -36)
Integer *referenceAudioId = 56; // Reference audio id. This parameter is effective only when the mode is "custom" and the mastering is enabled. (optional)
BigDecimal *lowCutFreq = 8.14; // This parameter represents the low cut freq  of the output audio in Hz. This parameter is effective only when the mode is "custom". (optional) (default to 20)
BigDecimal *highCutFreq = 8.14; // This parameter represents the high cut freq of the output audio in Hz. This parameter is effective only when the mode is "custom". (optional) (default to 20000)
BigDecimal *ceiling = 8.14; //  (optional) (default to 0)
String *ceilingMode = ceilingMode_example; //  (optional) (default to peak)
Integer *oversample = 56; //  (optional) (default to 1)
Integer *sampleRate = 56; // This parameter represents the sample rate of the output audio in dB. This parameter is effective only when the mode is "custom". (optional) (default to 44100)
Integer *bitDepth = 56; // This parameter represents the bit depth of the output audio in dB. This parameter is effective only when the mode is "custom". (optional) (default to 16)
String *outputFormat = outputFormat_example; // This parameter represents the format of the output audio. This parameter is effective only when the mode is "custom". (optional) (default to wav)
Boolean *forPreview = true; // If this is true, the mastering is treated for preview purpose (ex. not purchasable, not publishable, short lifetime).  (optional) (default to false)
BigDecimal *startAt = 8.14; // Partial mastering start at.  (optional) (default to 0)
BigDecimal *endAt = 8.14; // Partial mastering end at.  (optional) (default to -1)
String *videoTitle = videoTitle_example; // This parameter represents the title of output video. (optional) (default to )

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

// Create a new mastering.
[apiInstance createMasteringWith:apiecoKey
    inputAudioId:inputAudioId
    mode:mode
    bassPreservation:bassPreservation
    mastering:mastering
    masteringAlgorithm:masteringAlgorithm
    noiseReduction:noiseReduction
    preset:preset
    targetLoudness:targetLoudness
    targetLoudnessMode:targetLoudnessMode
    masteringMatchingLevel:masteringMatchingLevel
    masteringReverb:masteringReverb
    masteringReverbGain:masteringReverbGain
    referenceAudioId:referenceAudioId
    lowCutFreq:lowCutFreq
    highCutFreq:highCutFreq
    ceiling:ceiling
    ceilingMode:ceilingMode
    oversample:oversample
    sampleRate:sampleRate
    bitDepth:bitDepth
    outputFormat:outputFormat
    forPreview:forPreview
    startAt:startAt
    endAt:endAt
    videoTitle:videoTitle
              completionHandler: ^(Mastering output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.MasteringApi()

var apiecoKey = apiecoKey_example; // {String} 

var inputAudioId = 56; // {Integer} Input audio id

var opts = { 
  'mode': mode_example, // {String} Mode
  'bassPreservation': true, // {Boolean} This parameter represents if the bass preservation is enabled.
  'mastering': true, // {Boolean} This parameter represents if the mastering is enabled. This parameter is effective only when the mode is "default" or "custom".
  'masteringAlgorithm': masteringAlgorithm_example, // {String} 
  'noiseReduction': true, // {Boolean} This parameter represents if the nosie reduction is enabled. This parameter is effective only when the mode is "custom".
  'preset': preset_example, // {String} This parameter is effective only when the mode is "custom".
  'targetLoudness': 8.14, // {BigDecimal} This parameter represents the target loudness of the output audio in dB. This parameter is effective only when the mode is "custom".
  'targetLoudnessMode': targetLoudnessMode_example, // {String} 
  'masteringMatchingLevel': 8.14, // {BigDecimal} This parameter represents the mastering reference matching level. This parameter is effective only when the mode is "custom" and the mastering is enabled.
  'masteringReverb': true, // {Boolean} This parameter represents if the mastering reverb is enabled. This parameter is effective only when the mode is "custom" and the mastering is enabled.
  'masteringReverbGain': 8.14, // {BigDecimal} This parameter represents the mastering reverb gain relative to the dry sound in dB. This parameter is effective only when the mode is "custom" and the mastering is "true" and the mastering_reverb is "true".
  'referenceAudioId': 56, // {Integer} Reference audio id. This parameter is effective only when the mode is "custom" and the mastering is enabled.
  'lowCutFreq': 8.14, // {BigDecimal} This parameter represents the low cut freq  of the output audio in Hz. This parameter is effective only when the mode is "custom".
  'highCutFreq': 8.14, // {BigDecimal} This parameter represents the high cut freq of the output audio in Hz. This parameter is effective only when the mode is "custom".
  'ceiling': 8.14, // {BigDecimal} 
  'ceilingMode': ceilingMode_example, // {String} 
  'oversample': 56, // {Integer} 
  'sampleRate': 56, // {Integer} This parameter represents the sample rate of the output audio in dB. This parameter is effective only when the mode is "custom".
  'bitDepth': 56, // {Integer} This parameter represents the bit depth of the output audio in dB. This parameter is effective only when the mode is "custom".
  'outputFormat': outputFormat_example, // {String} This parameter represents the format of the output audio. This parameter is effective only when the mode is "custom".
  'forPreview': true, // {Boolean} If this is true, the mastering is treated for preview purpose (ex. not purchasable, not publishable, short lifetime). 
  'startAt': 8.14, // {BigDecimal} Partial mastering start at. 
  'endAt': 8.14, // {BigDecimal} Partial mastering end at. 
  'videoTitle': videoTitle_example // {String} This parameter represents the title of output video.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createMastering(apiecoKey, inputAudioId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createMasteringExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new MasteringApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var inputAudioId = 56;  // Integer | Input audio id
            var mode = mode_example;  // String | Mode (optional)  (default to default)
            var bassPreservation = true;  // Boolean | This parameter represents if the bass preservation is enabled. (optional)  (default to false)
            var mastering = true;  // Boolean | This parameter represents if the mastering is enabled. This parameter is effective only when the mode is "default" or "custom". (optional)  (default to false)
            var masteringAlgorithm = masteringAlgorithm_example;  // String |  (optional)  (default to v2)
            var noiseReduction = true;  // Boolean | This parameter represents if the nosie reduction is enabled. This parameter is effective only when the mode is "custom". (optional)  (default to false)
            var preset = preset_example;  // String | This parameter is effective only when the mode is "custom". (optional)  (default to general)
            var targetLoudness = 8.14;  // BigDecimal | This parameter represents the target loudness of the output audio in dB. This parameter is effective only when the mode is "custom". (optional)  (default to -5)
            var targetLoudnessMode = targetLoudnessMode_example;  // String |  (optional)  (default to loudness)
            var masteringMatchingLevel = 8.14;  // BigDecimal | This parameter represents the mastering reference matching level. This parameter is effective only when the mode is "custom" and the mastering is enabled. (optional)  (default to 0.5)
            var masteringReverb = true;  // Boolean | This parameter represents if the mastering reverb is enabled. This parameter is effective only when the mode is "custom" and the mastering is enabled. (optional)  (default to false)
            var masteringReverbGain = 8.14;  // BigDecimal | This parameter represents the mastering reverb gain relative to the dry sound in dB. This parameter is effective only when the mode is "custom" and the mastering is "true" and the mastering_reverb is "true". (optional)  (default to -36)
            var referenceAudioId = 56;  // Integer | Reference audio id. This parameter is effective only when the mode is "custom" and the mastering is enabled. (optional) 
            var lowCutFreq = 8.14;  // BigDecimal | This parameter represents the low cut freq  of the output audio in Hz. This parameter is effective only when the mode is "custom". (optional)  (default to 20)
            var highCutFreq = 8.14;  // BigDecimal | This parameter represents the high cut freq of the output audio in Hz. This parameter is effective only when the mode is "custom". (optional)  (default to 20000)
            var ceiling = 8.14;  // BigDecimal |  (optional)  (default to 0)
            var ceilingMode = ceilingMode_example;  // String |  (optional)  (default to peak)
            var oversample = 56;  // Integer |  (optional)  (default to 1)
            var sampleRate = 56;  // Integer | This parameter represents the sample rate of the output audio in dB. This parameter is effective only when the mode is "custom". (optional)  (default to 44100)
            var bitDepth = 56;  // Integer | This parameter represents the bit depth of the output audio in dB. This parameter is effective only when the mode is "custom". (optional)  (default to 16)
            var outputFormat = outputFormat_example;  // String | This parameter represents the format of the output audio. This parameter is effective only when the mode is "custom". (optional)  (default to wav)
            var forPreview = true;  // Boolean | If this is true, the mastering is treated for preview purpose (ex. not purchasable, not publishable, short lifetime).  (optional)  (default to false)
            var startAt = 8.14;  // BigDecimal | Partial mastering start at.  (optional)  (default to 0)
            var endAt = 8.14;  // BigDecimal | Partial mastering end at.  (optional)  (default to -1)
            var videoTitle = videoTitle_example;  // String | This parameter represents the title of output video. (optional)  (default to )

            try
            {
                // Create a new mastering.
                Mastering result = apiInstance.createMastering(apiecoKey, inputAudioId, mode, bassPreservation, mastering, masteringAlgorithm, noiseReduction, preset, targetLoudness, targetLoudnessMode, masteringMatchingLevel, masteringReverb, masteringReverbGain, referenceAudioId, lowCutFreq, highCutFreq, ceiling, ceilingMode, oversample, sampleRate, bitDepth, outputFormat, forPreview, startAt, endAt, videoTitle);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MasteringApi.createMastering: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\MasteringApi();
$apiecoKey = apiecoKey_example; // String | 
$inputAudioId = 56; // Integer | Input audio id
$mode = mode_example; // String | Mode
$bassPreservation = true; // Boolean | This parameter represents if the bass preservation is enabled.
$mastering = true; // Boolean | This parameter represents if the mastering is enabled. This parameter is effective only when the mode is "default" or "custom".
$masteringAlgorithm = masteringAlgorithm_example; // String | 
$noiseReduction = true; // Boolean | This parameter represents if the nosie reduction is enabled. This parameter is effective only when the mode is "custom".
$preset = preset_example; // String | This parameter is effective only when the mode is "custom".
$targetLoudness = 8.14; // BigDecimal | This parameter represents the target loudness of the output audio in dB. This parameter is effective only when the mode is "custom".
$targetLoudnessMode = targetLoudnessMode_example; // String | 
$masteringMatchingLevel = 8.14; // BigDecimal | This parameter represents the mastering reference matching level. This parameter is effective only when the mode is "custom" and the mastering is enabled.
$masteringReverb = true; // Boolean | This parameter represents if the mastering reverb is enabled. This parameter is effective only when the mode is "custom" and the mastering is enabled.
$masteringReverbGain = 8.14; // BigDecimal | This parameter represents the mastering reverb gain relative to the dry sound in dB. This parameter is effective only when the mode is "custom" and the mastering is "true" and the mastering_reverb is "true".
$referenceAudioId = 56; // Integer | Reference audio id. This parameter is effective only when the mode is "custom" and the mastering is enabled.
$lowCutFreq = 8.14; // BigDecimal | This parameter represents the low cut freq  of the output audio in Hz. This parameter is effective only when the mode is "custom".
$highCutFreq = 8.14; // BigDecimal | This parameter represents the high cut freq of the output audio in Hz. This parameter is effective only when the mode is "custom".
$ceiling = 8.14; // BigDecimal | 
$ceilingMode = ceilingMode_example; // String | 
$oversample = 56; // Integer | 
$sampleRate = 56; // Integer | This parameter represents the sample rate of the output audio in dB. This parameter is effective only when the mode is "custom".
$bitDepth = 56; // Integer | This parameter represents the bit depth of the output audio in dB. This parameter is effective only when the mode is "custom".
$outputFormat = outputFormat_example; // String | This parameter represents the format of the output audio. This parameter is effective only when the mode is "custom".
$forPreview = true; // Boolean | If this is true, the mastering is treated for preview purpose (ex. not purchasable, not publishable, short lifetime). 
$startAt = 8.14; // BigDecimal | Partial mastering start at. 
$endAt = 8.14; // BigDecimal | Partial mastering end at. 
$videoTitle = videoTitle_example; // String | This parameter represents the title of output video.

try {
    $result = $api_instance->createMastering($apiecoKey, $inputAudioId, $mode, $bassPreservation, $mastering, $masteringAlgorithm, $noiseReduction, $preset, $targetLoudness, $targetLoudnessMode, $masteringMatchingLevel, $masteringReverb, $masteringReverbGain, $referenceAudioId, $lowCutFreq, $highCutFreq, $ceiling, $ceilingMode, $oversample, $sampleRate, $bitDepth, $outputFormat, $forPreview, $startAt, $endAt, $videoTitle);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MasteringApi->createMastering: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MasteringApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::MasteringApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $inputAudioId = 56; # Integer | Input audio id
my $mode = mode_example; # String | Mode
my $bassPreservation = true; # Boolean | This parameter represents if the bass preservation is enabled.
my $mastering = true; # Boolean | This parameter represents if the mastering is enabled. This parameter is effective only when the mode is "default" or "custom".
my $masteringAlgorithm = masteringAlgorithm_example; # String | 
my $noiseReduction = true; # Boolean | This parameter represents if the nosie reduction is enabled. This parameter is effective only when the mode is "custom".
my $preset = preset_example; # String | This parameter is effective only when the mode is "custom".
my $targetLoudness = 8.14; # BigDecimal | This parameter represents the target loudness of the output audio in dB. This parameter is effective only when the mode is "custom".
my $targetLoudnessMode = targetLoudnessMode_example; # String | 
my $masteringMatchingLevel = 8.14; # BigDecimal | This parameter represents the mastering reference matching level. This parameter is effective only when the mode is "custom" and the mastering is enabled.
my $masteringReverb = true; # Boolean | This parameter represents if the mastering reverb is enabled. This parameter is effective only when the mode is "custom" and the mastering is enabled.
my $masteringReverbGain = 8.14; # BigDecimal | This parameter represents the mastering reverb gain relative to the dry sound in dB. This parameter is effective only when the mode is "custom" and the mastering is "true" and the mastering_reverb is "true".
my $referenceAudioId = 56; # Integer | Reference audio id. This parameter is effective only when the mode is "custom" and the mastering is enabled.
my $lowCutFreq = 8.14; # BigDecimal | This parameter represents the low cut freq  of the output audio in Hz. This parameter is effective only when the mode is "custom".
my $highCutFreq = 8.14; # BigDecimal | This parameter represents the high cut freq of the output audio in Hz. This parameter is effective only when the mode is "custom".
my $ceiling = 8.14; # BigDecimal | 
my $ceilingMode = ceilingMode_example; # String | 
my $oversample = 56; # Integer | 
my $sampleRate = 56; # Integer | This parameter represents the sample rate of the output audio in dB. This parameter is effective only when the mode is "custom".
my $bitDepth = 56; # Integer | This parameter represents the bit depth of the output audio in dB. This parameter is effective only when the mode is "custom".
my $outputFormat = outputFormat_example; # String | This parameter represents the format of the output audio. This parameter is effective only when the mode is "custom".
my $forPreview = true; # Boolean | If this is true, the mastering is treated for preview purpose (ex. not purchasable, not publishable, short lifetime). 
my $startAt = 8.14; # BigDecimal | Partial mastering start at. 
my $endAt = 8.14; # BigDecimal | Partial mastering end at. 
my $videoTitle = videoTitle_example; # String | This parameter represents the title of output video.

eval { 
    my $result = $api_instance->createMastering(apiecoKey => $apiecoKey, inputAudioId => $inputAudioId, mode => $mode, bassPreservation => $bassPreservation, mastering => $mastering, masteringAlgorithm => $masteringAlgorithm, noiseReduction => $noiseReduction, preset => $preset, targetLoudness => $targetLoudness, targetLoudnessMode => $targetLoudnessMode, masteringMatchingLevel => $masteringMatchingLevel, masteringReverb => $masteringReverb, masteringReverbGain => $masteringReverbGain, referenceAudioId => $referenceAudioId, lowCutFreq => $lowCutFreq, highCutFreq => $highCutFreq, ceiling => $ceiling, ceilingMode => $ceilingMode, oversample => $oversample, sampleRate => $sampleRate, bitDepth => $bitDepth, outputFormat => $outputFormat, forPreview => $forPreview, startAt => $startAt, endAt => $endAt, videoTitle => $videoTitle);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MasteringApi->createMastering: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.MasteringApi()
apiecoKey = apiecoKey_example # String | 
inputAudioId = 56 # Integer | Input audio id
mode = mode_example # String | Mode (optional) (default to default)
bassPreservation = true # Boolean | This parameter represents if the bass preservation is enabled. (optional) (default to false)
mastering = true # Boolean | This parameter represents if the mastering is enabled. This parameter is effective only when the mode is "default" or "custom". (optional) (default to false)
masteringAlgorithm = masteringAlgorithm_example # String |  (optional) (default to v2)
noiseReduction = true # Boolean | This parameter represents if the nosie reduction is enabled. This parameter is effective only when the mode is "custom". (optional) (default to false)
preset = preset_example # String | This parameter is effective only when the mode is "custom". (optional) (default to general)
targetLoudness = 8.14 # BigDecimal | This parameter represents the target loudness of the output audio in dB. This parameter is effective only when the mode is "custom". (optional) (default to -5)
targetLoudnessMode = targetLoudnessMode_example # String |  (optional) (default to loudness)
masteringMatchingLevel = 8.14 # BigDecimal | This parameter represents the mastering reference matching level. This parameter is effective only when the mode is "custom" and the mastering is enabled. (optional) (default to 0.5)
masteringReverb = true # Boolean | This parameter represents if the mastering reverb is enabled. This parameter is effective only when the mode is "custom" and the mastering is enabled. (optional) (default to false)
masteringReverbGain = 8.14 # BigDecimal | This parameter represents the mastering reverb gain relative to the dry sound in dB. This parameter is effective only when the mode is "custom" and the mastering is "true" and the mastering_reverb is "true". (optional) (default to -36)
referenceAudioId = 56 # Integer | Reference audio id. This parameter is effective only when the mode is "custom" and the mastering is enabled. (optional)
lowCutFreq = 8.14 # BigDecimal | This parameter represents the low cut freq  of the output audio in Hz. This parameter is effective only when the mode is "custom". (optional) (default to 20)
highCutFreq = 8.14 # BigDecimal | This parameter represents the high cut freq of the output audio in Hz. This parameter is effective only when the mode is "custom". (optional) (default to 20000)
ceiling = 8.14 # BigDecimal |  (optional) (default to 0)
ceilingMode = ceilingMode_example # String |  (optional) (default to peak)
oversample = 56 # Integer |  (optional) (default to 1)
sampleRate = 56 # Integer | This parameter represents the sample rate of the output audio in dB. This parameter is effective only when the mode is "custom". (optional) (default to 44100)
bitDepth = 56 # Integer | This parameter represents the bit depth of the output audio in dB. This parameter is effective only when the mode is "custom". (optional) (default to 16)
outputFormat = outputFormat_example # String | This parameter represents the format of the output audio. This parameter is effective only when the mode is "custom". (optional) (default to wav)
forPreview = true # Boolean | If this is true, the mastering is treated for preview purpose (ex. not purchasable, not publishable, short lifetime).  (optional) (default to false)
startAt = 8.14 # BigDecimal | Partial mastering start at.  (optional) (default to 0)
endAt = 8.14 # BigDecimal | Partial mastering end at.  (optional) (default to -1)
videoTitle = videoTitle_example # String | This parameter represents the title of output video. (optional) (default to )

try: 
    # Create a new mastering.
    api_response = api_instance.create_mastering(apiecoKey, inputAudioId, mode=mode, bassPreservation=bassPreservation, mastering=mastering, masteringAlgorithm=masteringAlgorithm, noiseReduction=noiseReduction, preset=preset, targetLoudness=targetLoudness, targetLoudnessMode=targetLoudnessMode, masteringMatchingLevel=masteringMatchingLevel, masteringReverb=masteringReverb, masteringReverbGain=masteringReverbGain, referenceAudioId=referenceAudioId, lowCutFreq=lowCutFreq, highCutFreq=highCutFreq, ceiling=ceiling, ceilingMode=ceilingMode, oversample=oversample, sampleRate=sampleRate, bitDepth=bitDepth, outputFormat=outputFormat, forPreview=forPreview, startAt=startAt, endAt=endAt, videoTitle=videoTitle)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MasteringApi->createMastering: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Form parameters
Name Description
mode
String
Mode
Enum: default, custom
input_audio_id*
Integer
Input audio id
Required
bass_preservation
Boolean
This parameter represents if the bass preservation is enabled.
mastering
Boolean
This parameter represents if the mastering is enabled. This parameter is effective only when the mode is "default" or "custom".
mastering_algorithm
String
Enum: default, custom v1, v2
noise_reduction
Boolean
This parameter represents if the nosie reduction is enabled. This parameter is effective only when the mode is "custom".
preset
String
This parameter is effective only when the mode is "custom".
Enum: default, custom v1, v2 general, pop, classical, jazz
target_loudness
BigDecimal
This parameter represents the target loudness of the output audio in dB. This parameter is effective only when the mode is "custom".
target_loudness_mode
String
Enum: default, custom v1, v2 general, pop, classical, jazz loudness, rms, peak, youtube_loudness
mastering_matching_level
BigDecimal
This parameter represents the mastering reference matching level. This parameter is effective only when the mode is "custom" and the mastering is enabled.
mastering_reverb
Boolean
This parameter represents if the mastering reverb is enabled. This parameter is effective only when the mode is "custom" and the mastering is enabled.
mastering_reverb_gain
BigDecimal
This parameter represents the mastering reverb gain relative to the dry sound in dB. This parameter is effective only when the mode is "custom" and the mastering is "true" and the mastering_reverb is "true".
reference_audio_id
Integer
Reference audio id. This parameter is effective only when the mode is "custom" and the mastering is enabled.
low_cut_freq
BigDecimal
This parameter represents the low cut freq of the output audio in Hz. This parameter is effective only when the mode is "custom".
high_cut_freq
BigDecimal
This parameter represents the high cut freq of the output audio in Hz. This parameter is effective only when the mode is "custom".
ceiling
BigDecimal
ceiling_mode
String
Enum: default, custom v1, v2 general, pop, classical, jazz loudness, rms, peak, youtube_loudness peak, true_peak, lowpass_true_peak
oversample
Integer
sample_rate
Integer
This parameter represents the sample rate of the output audio in dB. This parameter is effective only when the mode is "custom".
bit_depth
Integer
This parameter represents the bit depth of the output audio in dB. This parameter is effective only when the mode is "custom".
output_format
String
This parameter represents the format of the output audio. This parameter is effective only when the mode is "custom".
Enum: default, custom v1, v2 general, pop, classical, jazz loudness, rms, peak, youtube_loudness peak, true_peak, lowpass_true_peak wav, mp3
for_preview
Boolean
If this is true, the mastering is treated for preview purpose (ex. not purchasable, not publishable, short lifetime).
start_at
BigDecimal
Partial mastering start at.
end_at
BigDecimal
Partial mastering end at.
video_title
String
This parameter represents the title of output video.

Responses

Status: 201 - Success

Status: default - Error


deleteMastering

Delete mastering.


/masterings/{id}

Usage and SDK Samples

curl -X DELETE -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/masterings/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MasteringApi;

import java.io.File;
import java.util.*;

public class MasteringApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        MasteringApi apiInstance = new MasteringApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Mastering id
        try {
            Mastering result = apiInstance.deleteMastering(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MasteringApi#deleteMastering");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MasteringApi;

public class MasteringApiExample {

    public static void main(String[] args) {
        MasteringApi apiInstance = new MasteringApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Mastering id
        try {
            Mastering result = apiInstance.deleteMastering(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MasteringApi#deleteMastering");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // Mastering id

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

// Delete mastering.
[apiInstance deleteMasteringWith:apiecoKey
    id:id
              completionHandler: ^(Mastering output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.MasteringApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} Mastering id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteMastering(apiecoKey, id, , callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteMasteringExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new MasteringApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | Mastering id

            try
            {
                // Delete mastering.
                Mastering result = apiInstance.deleteMastering(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MasteringApi.deleteMastering: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\MasteringApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | Mastering id

try {
    $result = $api_instance->deleteMastering($apiecoKey, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MasteringApi->deleteMastering: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MasteringApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::MasteringApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | Mastering id

eval { 
    my $result = $api_instance->deleteMastering(apiecoKey => $apiecoKey, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MasteringApi->deleteMastering: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.MasteringApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | Mastering id

try: 
    # Delete mastering.
    api_response = api_instance.delete_mastering(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MasteringApi->deleteMastering: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Mastering id
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Success

Status: default - Error


freeUnlockMastering

Free unlock a mastering by id.


/masterings/{id}/free_unlock

Usage and SDK Samples

curl -X PUT -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/masterings/{id}/free_unlock"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MasteringApi;

import java.io.File;
import java.util.*;

public class MasteringApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        MasteringApi apiInstance = new MasteringApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Mastering id
        try {
            Mastering result = apiInstance.freeUnlockMastering(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MasteringApi#freeUnlockMastering");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MasteringApi;

public class MasteringApiExample {

    public static void main(String[] args) {
        MasteringApi apiInstance = new MasteringApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Mastering id
        try {
            Mastering result = apiInstance.freeUnlockMastering(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MasteringApi#freeUnlockMastering");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // Mastering id

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

// Free unlock a mastering by id.
[apiInstance freeUnlockMasteringWith:apiecoKey
    id:id
              completionHandler: ^(Mastering output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.MasteringApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} Mastering id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.freeUnlockMastering(apiecoKey, id, , callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class freeUnlockMasteringExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new MasteringApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | Mastering id

            try
            {
                // Free unlock a mastering by id.
                Mastering result = apiInstance.freeUnlockMastering(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MasteringApi.freeUnlockMastering: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\MasteringApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | Mastering id

try {
    $result = $api_instance->freeUnlockMastering($apiecoKey, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MasteringApi->freeUnlockMastering: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MasteringApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::MasteringApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | Mastering id

eval { 
    my $result = $api_instance->freeUnlockMastering(apiecoKey => $apiecoKey, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MasteringApi->freeUnlockMastering: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.MasteringApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | Mastering id

try: 
    # Free unlock a mastering by id.
    api_response = api_instance.free_unlock_mastering(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MasteringApi->freeUnlockMastering: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Mastering id
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Success

Status: default - Error


getMastering

Get a mastering by id.


/masterings/{id}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/masterings/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MasteringApi;

import java.io.File;
import java.util.*;

public class MasteringApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        MasteringApi apiInstance = new MasteringApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Mastering id
        try {
            Mastering result = apiInstance.getMastering(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MasteringApi#getMastering");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MasteringApi;

public class MasteringApiExample {

    public static void main(String[] args) {
        MasteringApi apiInstance = new MasteringApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Mastering id
        try {
            Mastering result = apiInstance.getMastering(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MasteringApi#getMastering");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // Mastering id

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

// Get a mastering by id.
[apiInstance getMasteringWith:apiecoKey
    id:id
              completionHandler: ^(Mastering output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.MasteringApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} Mastering id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getMastering(apiecoKey, id, , callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getMasteringExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new MasteringApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | Mastering id

            try
            {
                // Get a mastering by id.
                Mastering result = apiInstance.getMastering(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MasteringApi.getMastering: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\MasteringApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | Mastering id

try {
    $result = $api_instance->getMastering($apiecoKey, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MasteringApi->getMastering: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MasteringApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::MasteringApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | Mastering id

eval { 
    my $result = $api_instance->getMastering(apiecoKey => $apiecoKey, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MasteringApi->getMastering: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.MasteringApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | Mastering id

try: 
    # Get a mastering by id.
    api_response = api_instance.get_mastering(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MasteringApi->getMastering: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Mastering id
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Success

Status: default - Error


getMasteringUnlockProduct

Review a mastering by id.


/masterings/{id}/unlock_product

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/masterings/{id}/unlock_product"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MasteringApi;

import java.io.File;
import java.util.*;

public class MasteringApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        MasteringApi apiInstance = new MasteringApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Mastering id
        try {
            Mastering result = apiInstance.getMasteringUnlockProduct(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MasteringApi#getMasteringUnlockProduct");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MasteringApi;

public class MasteringApiExample {

    public static void main(String[] args) {
        MasteringApi apiInstance = new MasteringApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Mastering id
        try {
            Mastering result = apiInstance.getMasteringUnlockProduct(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MasteringApi#getMasteringUnlockProduct");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // Mastering id

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

// Review a mastering by id.
[apiInstance getMasteringUnlockProductWith:apiecoKey
    id:id
              completionHandler: ^(Mastering output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.MasteringApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} Mastering id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getMasteringUnlockProduct(apiecoKey, id, , callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getMasteringUnlockProductExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new MasteringApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | Mastering id

            try
            {
                // Review a mastering by id.
                Mastering result = apiInstance.getMasteringUnlockProduct(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MasteringApi.getMasteringUnlockProduct: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\MasteringApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | Mastering id

try {
    $result = $api_instance->getMasteringUnlockProduct($apiecoKey, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MasteringApi->getMasteringUnlockProduct: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MasteringApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::MasteringApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | Mastering id

eval { 
    my $result = $api_instance->getMasteringUnlockProduct(apiecoKey => $apiecoKey, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MasteringApi->getMasteringUnlockProduct: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.MasteringApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | Mastering id

try: 
    # Review a mastering by id.
    api_response = api_instance.get_mastering_unlock_product(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MasteringApi->getMasteringUnlockProduct: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Mastering id
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Success

Status: default - Error


listMasterings

Get all accessable masterings.


/masterings

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/masterings"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MasteringApi;

import java.io.File;
import java.util.*;

public class MasteringApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        MasteringApi apiInstance = new MasteringApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            array[Mastering] result = apiInstance.listMasterings(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MasteringApi#listMasterings");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MasteringApi;

public class MasteringApiExample {

    public static void main(String[] args) {
        MasteringApi apiInstance = new MasteringApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            array[Mastering] result = apiInstance.listMasterings(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MasteringApi#listMasterings");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 

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

// Get all accessable masterings.
[apiInstance listMasteringsWith:apiecoKey
              completionHandler: ^(array[Mastering] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.MasteringApi()

var apiecoKey = apiecoKey_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.listMasterings(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class listMasteringsExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new MasteringApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                // Get all accessable masterings.
                array[Mastering] result = apiInstance.listMasterings(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MasteringApi.listMasterings: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\MasteringApi();
$apiecoKey = apiecoKey_example; // String | 

try {
    $result = $api_instance->listMasterings($apiecoKey);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MasteringApi->listMasterings: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MasteringApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::MasteringApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->listMasterings(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MasteringApi->listMasterings: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.MasteringApi()
apiecoKey = apiecoKey_example # String | 

try: 
    # Get all accessable masterings.
    api_response = api_instance.list_masterings(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MasteringApi->listMasterings: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Success

Status: default - Error


publishMastering

Publish a mastering by id.


/masterings/{id}/publish

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/masterings/{id}/publish"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MasteringApi;

import java.io.File;
import java.util.*;

public class MasteringApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        MasteringApi apiInstance = new MasteringApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Mastering id
        String accessToken = accessToken_example; // String | This parameter represents if the access token of the publishment service API.
        String message = message_example; // String | This parameter represents the publishment message.
        String service = service_example; // String | This parameter represents the publishment service.
        String accessTokenSecret = accessTokenSecret_example; // String | This parameter represents the access token secret of the publishment service API. This parameter is effective only when the service is "twitter".
        try {
            Mastering result = apiInstance.publishMastering(apiecoKey, id, accessToken, message, service, accessTokenSecret);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MasteringApi#publishMastering");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MasteringApi;

public class MasteringApiExample {

    public static void main(String[] args) {
        MasteringApi apiInstance = new MasteringApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Mastering id
        String accessToken = accessToken_example; // String | This parameter represents if the access token of the publishment service API.
        String message = message_example; // String | This parameter represents the publishment message.
        String service = service_example; // String | This parameter represents the publishment service.
        String accessTokenSecret = accessTokenSecret_example; // String | This parameter represents the access token secret of the publishment service API. This parameter is effective only when the service is "twitter".
        try {
            Mastering result = apiInstance.publishMastering(apiecoKey, id, accessToken, message, service, accessTokenSecret);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MasteringApi#publishMastering");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // Mastering id
String *accessToken = accessToken_example; // This parameter represents if the access token of the publishment service API.
String *message = message_example; // This parameter represents the publishment message.
String *service = service_example; // This parameter represents the publishment service. (optional)
String *accessTokenSecret = accessTokenSecret_example; // This parameter represents the access token secret of the publishment service API. This parameter is effective only when the service is "twitter". (optional)

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

// Publish a mastering by id.
[apiInstance publishMasteringWith:apiecoKey
    id:id
    accessToken:accessToken
    message:message
    service:service
    accessTokenSecret:accessTokenSecret
              completionHandler: ^(Mastering output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.MasteringApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} Mastering id

var accessToken = accessToken_example; // {String} This parameter represents if the access token of the publishment service API.

var message = message_example; // {String} This parameter represents the publishment message.

var opts = { 
  'service': service_example, // {String} This parameter represents the publishment service.
  'accessTokenSecret': accessTokenSecret_example // {String} This parameter represents the access token secret of the publishment service API. This parameter is effective only when the service is "twitter".
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.publishMastering(apiecoKey, id, accessToken, message, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class publishMasteringExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new MasteringApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | Mastering id
            var accessToken = accessToken_example;  // String | This parameter represents if the access token of the publishment service API.
            var message = message_example;  // String | This parameter represents the publishment message.
            var service = service_example;  // String | This parameter represents the publishment service. (optional) 
            var accessTokenSecret = accessTokenSecret_example;  // String | This parameter represents the access token secret of the publishment service API. This parameter is effective only when the service is "twitter". (optional) 

            try
            {
                // Publish a mastering by id.
                Mastering result = apiInstance.publishMastering(apiecoKey, id, accessToken, message, service, accessTokenSecret);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MasteringApi.publishMastering: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\MasteringApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | Mastering id
$accessToken = accessToken_example; // String | This parameter represents if the access token of the publishment service API.
$message = message_example; // String | This parameter represents the publishment message.
$service = service_example; // String | This parameter represents the publishment service.
$accessTokenSecret = accessTokenSecret_example; // String | This parameter represents the access token secret of the publishment service API. This parameter is effective only when the service is "twitter".

try {
    $result = $api_instance->publishMastering($apiecoKey, $id, $accessToken, $message, $service, $accessTokenSecret);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MasteringApi->publishMastering: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MasteringApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::MasteringApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | Mastering id
my $accessToken = accessToken_example; # String | This parameter represents if the access token of the publishment service API.
my $message = message_example; # String | This parameter represents the publishment message.
my $service = service_example; # String | This parameter represents the publishment service.
my $accessTokenSecret = accessTokenSecret_example; # String | This parameter represents the access token secret of the publishment service API. This parameter is effective only when the service is "twitter".

eval { 
    my $result = $api_instance->publishMastering(apiecoKey => $apiecoKey, id => $id, accessToken => $accessToken, message => $message, service => $service, accessTokenSecret => $accessTokenSecret);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MasteringApi->publishMastering: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.MasteringApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | Mastering id
accessToken = accessToken_example # String | This parameter represents if the access token of the publishment service API.
message = message_example # String | This parameter represents the publishment message.
service = service_example # String | This parameter represents the publishment service. (optional)
accessTokenSecret = accessTokenSecret_example # String | This parameter represents the access token secret of the publishment service API. This parameter is effective only when the service is "twitter". (optional)

try: 
    # Publish a mastering by id.
    api_response = api_instance.publish_mastering(apiecoKey, id, accessToken, message, service=service, accessTokenSecret=accessTokenSecret)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MasteringApi->publishMastering: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Mastering id
Required
Header parameters
Name Description
apieco-key*
String
Required
Form parameters
Name Description
service
String
This parameter represents the publishment service.
Enum: twitter, youtube
access_token*
String
This parameter represents if the access token of the publishment service API.
Required
access_token_secret
String
This parameter represents the access token secret of the publishment service API. This parameter is effective only when the service is "twitter".
message*
String
This parameter represents the publishment message.
Required

Responses

Status: 200 - Success

Status: default - Error


reviewMastering

Review a mastering by id.


/masterings/{id}/review

Usage and SDK Samples

curl -X PUT -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/masterings/{id}/review"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MasteringApi;

import java.io.File;
import java.util.*;

public class MasteringApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        MasteringApi apiInstance = new MasteringApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Mastering id
        String reviewComment = reviewComment_example; // String | This parameter represents the review comment.
        BigDecimal reviewScore = 8.14; // BigDecimal | This parameter represents the review score.
        try {
            Mastering result = apiInstance.reviewMastering(apiecoKey, id, reviewComment, reviewScore);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MasteringApi#reviewMastering");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MasteringApi;

public class MasteringApiExample {

    public static void main(String[] args) {
        MasteringApi apiInstance = new MasteringApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Mastering id
        String reviewComment = reviewComment_example; // String | This parameter represents the review comment.
        BigDecimal reviewScore = 8.14; // BigDecimal | This parameter represents the review score.
        try {
            Mastering result = apiInstance.reviewMastering(apiecoKey, id, reviewComment, reviewScore);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MasteringApi#reviewMastering");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // Mastering id
String *reviewComment = reviewComment_example; // This parameter represents the review comment. (optional)
BigDecimal *reviewScore = 8.14; // This parameter represents the review score. (optional)

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

// Review a mastering by id.
[apiInstance reviewMasteringWith:apiecoKey
    id:id
    reviewComment:reviewComment
    reviewScore:reviewScore
              completionHandler: ^(Mastering output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.MasteringApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} Mastering id

var opts = { 
  'reviewComment': reviewComment_example, // {String} This parameter represents the review comment.
  'reviewScore': 8.14 // {BigDecimal} This parameter represents the review score.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.reviewMastering(apiecoKey, id, , opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class reviewMasteringExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new MasteringApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | Mastering id
            var reviewComment = reviewComment_example;  // String | This parameter represents the review comment. (optional) 
            var reviewScore = 8.14;  // BigDecimal | This parameter represents the review score. (optional) 

            try
            {
                // Review a mastering by id.
                Mastering result = apiInstance.reviewMastering(apiecoKey, id, reviewComment, reviewScore);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MasteringApi.reviewMastering: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\MasteringApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | Mastering id
$reviewComment = reviewComment_example; // String | This parameter represents the review comment.
$reviewScore = 8.14; // BigDecimal | This parameter represents the review score.

try {
    $result = $api_instance->reviewMastering($apiecoKey, $id, $reviewComment, $reviewScore);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MasteringApi->reviewMastering: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MasteringApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::MasteringApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | Mastering id
my $reviewComment = reviewComment_example; # String | This parameter represents the review comment.
my $reviewScore = 8.14; # BigDecimal | This parameter represents the review score.

eval { 
    my $result = $api_instance->reviewMastering(apiecoKey => $apiecoKey, id => $id, reviewComment => $reviewComment, reviewScore => $reviewScore);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MasteringApi->reviewMastering: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.MasteringApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | Mastering id
reviewComment = reviewComment_example # String | This parameter represents the review comment. (optional)
reviewScore = 8.14 # BigDecimal | This parameter represents the review score. (optional)

try: 
    # Review a mastering by id.
    api_response = api_instance.review_mastering(apiecoKey, id, reviewComment=reviewComment, reviewScore=reviewScore)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MasteringApi->reviewMastering: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Mastering id
Required
Header parameters
Name Description
apieco-key*
String
Required
Form parameters
Name Description
review_comment
String
This parameter represents the review comment.
review_score
BigDecimal
This parameter represents the review score.

Responses

Status: 200 - Success

Status: default - Error


updateMastering

Update a mastering.


/masterings/{id}

Usage and SDK Samples

curl -X PUT -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/masterings/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MasteringApi;

import java.io.File;
import java.util.*;

public class MasteringApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        MasteringApi apiInstance = new MasteringApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Mastering id
        Boolean preserved = true; // Boolean | Disable auto delete.
        try {
            Mastering result = apiInstance.updateMastering(apiecoKey, id, preserved);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MasteringApi#updateMastering");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MasteringApi;

public class MasteringApiExample {

    public static void main(String[] args) {
        MasteringApi apiInstance = new MasteringApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Mastering id
        Boolean preserved = true; // Boolean | Disable auto delete.
        try {
            Mastering result = apiInstance.updateMastering(apiecoKey, id, preserved);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MasteringApi#updateMastering");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // Mastering id
Boolean *preserved = true; // Disable auto delete. (optional)

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

// Update a mastering.
[apiInstance updateMasteringWith:apiecoKey
    id:id
    preserved:preserved
              completionHandler: ^(Mastering output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.MasteringApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} Mastering id

var opts = { 
  'preserved': true // {Boolean} Disable auto delete.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateMastering(apiecoKey, id, , opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateMasteringExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new MasteringApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | Mastering id
            var preserved = true;  // Boolean | Disable auto delete. (optional) 

            try
            {
                // Update a mastering.
                Mastering result = apiInstance.updateMastering(apiecoKey, id, preserved);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MasteringApi.updateMastering: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\MasteringApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | Mastering id
$preserved = true; // Boolean | Disable auto delete.

try {
    $result = $api_instance->updateMastering($apiecoKey, $id, $preserved);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MasteringApi->updateMastering: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MasteringApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::MasteringApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | Mastering id
my $preserved = true; # Boolean | Disable auto delete.

eval { 
    my $result = $api_instance->updateMastering(apiecoKey => $apiecoKey, id => $id, preserved => $preserved);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MasteringApi->updateMastering: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.MasteringApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | Mastering id
preserved = true # Boolean | Disable auto delete. (optional)

try: 
    # Update a mastering.
    api_response = api_instance.update_mastering(apiecoKey, id, preserved=preserved)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MasteringApi->updateMastering: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Mastering id
Required
Header parameters
Name Description
apieco-key*
String
Required
Form parameters
Name Description
preserved
Boolean
Disable auto delete.

Responses

Status: 200 - Success

Status: default - Error


Payment

createPayment

Create a new payment.


/payments

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/payments"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PaymentApi;

import java.io.File;
import java.util.*;

public class PaymentApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        PaymentApi apiInstance = new PaymentApi();
        String apiecoKey = apiecoKey_example; // String | 
        String productToken = productToken_example; // String | This parameter represents the product token.
        String service = service_example; // String | This parameter represents the payment message.
        String token = token_example; // String | This parameter represents the card token. This parameter is effective only when the service is "stripe".
        try {
            Payment result = apiInstance.createPayment(apiecoKey, productToken, service, token);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#createPayment");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PaymentApi;

public class PaymentApiExample {

    public static void main(String[] args) {
        PaymentApi apiInstance = new PaymentApi();
        String apiecoKey = apiecoKey_example; // String | 
        String productToken = productToken_example; // String | This parameter represents the product token.
        String service = service_example; // String | This parameter represents the payment message.
        String token = token_example; // String | This parameter represents the card token. This parameter is effective only when the service is "stripe".
        try {
            Payment result = apiInstance.createPayment(apiecoKey, productToken, service, token);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#createPayment");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
String *productToken = productToken_example; // This parameter represents the product token.
String *service = service_example; // This parameter represents the payment message.
String *token = token_example; // This parameter represents the card token. This parameter is effective only when the service is "stripe". (optional)

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

// Create a new payment.
[apiInstance createPaymentWith:apiecoKey
    productToken:productToken
    service:service
    token:token
              completionHandler: ^(Payment output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.PaymentApi()

var apiecoKey = apiecoKey_example; // {String} 

var productToken = productToken_example; // {String} This parameter represents the product token.

var service = service_example; // {String} This parameter represents the payment message.

var opts = { 
  'token': token_example // {String} This parameter represents the card token. This parameter is effective only when the service is "stripe".
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createPayment(apiecoKey, productToken, service, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createPaymentExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new PaymentApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var productToken = productToken_example;  // String | This parameter represents the product token.
            var service = service_example;  // String | This parameter represents the payment message.
            var token = token_example;  // String | This parameter represents the card token. This parameter is effective only when the service is "stripe". (optional) 

            try
            {
                // Create a new payment.
                Payment result = apiInstance.createPayment(apiecoKey, productToken, service, token);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PaymentApi.createPayment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\PaymentApi();
$apiecoKey = apiecoKey_example; // String | 
$productToken = productToken_example; // String | This parameter represents the product token.
$service = service_example; // String | This parameter represents the payment message.
$token = token_example; // String | This parameter represents the card token. This parameter is effective only when the service is "stripe".

try {
    $result = $api_instance->createPayment($apiecoKey, $productToken, $service, $token);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PaymentApi->createPayment: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PaymentApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::PaymentApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $productToken = productToken_example; # String | This parameter represents the product token.
my $service = service_example; # String | This parameter represents the payment message.
my $token = token_example; # String | This parameter represents the card token. This parameter is effective only when the service is "stripe".

eval { 
    my $result = $api_instance->createPayment(apiecoKey => $apiecoKey, productToken => $productToken, service => $service, token => $token);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PaymentApi->createPayment: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.PaymentApi()
apiecoKey = apiecoKey_example # String | 
productToken = productToken_example # String | This parameter represents the product token.
service = service_example # String | This parameter represents the payment message.
token = token_example # String | This parameter represents the card token. This parameter is effective only when the service is "stripe". (optional)

try: 
    # Create a new payment.
    api_response = api_instance.create_payment(apiecoKey, productToken, service, token=token)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PaymentApi->createPayment: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Form parameters
Name Description
product_token*
String
This parameter represents the product token.
Required
service*
String
This parameter represents the payment message.
Enum: paypal, stripe
Required
token
String
This parameter represents the card token. This parameter is effective only when the service is "stripe".

Responses

Status: 201 - Success

Status: default - Error


executePayment

Execute a payment by id.


/payments/{id}/execute

Usage and SDK Samples

curl -X PUT -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/payments/{id}/execute"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PaymentApi;

import java.io.File;
import java.util.*;

public class PaymentApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        PaymentApi apiInstance = new PaymentApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Payment id
        String payerId = payerId_example; // String | This parameter represents the card token. This parameter is effective only when the service is "paypal".
        try {
            Payment result = apiInstance.executePayment(apiecoKey, id, payerId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#executePayment");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PaymentApi;

public class PaymentApiExample {

    public static void main(String[] args) {
        PaymentApi apiInstance = new PaymentApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Payment id
        String payerId = payerId_example; // String | This parameter represents the card token. This parameter is effective only when the service is "paypal".
        try {
            Payment result = apiInstance.executePayment(apiecoKey, id, payerId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#executePayment");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // Payment id
String *payerId = payerId_example; // This parameter represents the card token. This parameter is effective only when the service is "paypal".

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

// Execute a payment by id.
[apiInstance executePaymentWith:apiecoKey
    id:id
    payerId:payerId
              completionHandler: ^(Payment output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.PaymentApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} Payment id

var payerId = payerId_example; // {String} This parameter represents the card token. This parameter is effective only when the service is "paypal".


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.executePayment(apiecoKey, id, payerId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class executePaymentExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new PaymentApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | Payment id
            var payerId = payerId_example;  // String | This parameter represents the card token. This parameter is effective only when the service is "paypal".

            try
            {
                // Execute a payment by id.
                Payment result = apiInstance.executePayment(apiecoKey, id, payerId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PaymentApi.executePayment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\PaymentApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | Payment id
$payerId = payerId_example; // String | This parameter represents the card token. This parameter is effective only when the service is "paypal".

try {
    $result = $api_instance->executePayment($apiecoKey, $id, $payerId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PaymentApi->executePayment: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PaymentApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::PaymentApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | Payment id
my $payerId = payerId_example; # String | This parameter represents the card token. This parameter is effective only when the service is "paypal".

eval { 
    my $result = $api_instance->executePayment(apiecoKey => $apiecoKey, id => $id, payerId => $payerId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PaymentApi->executePayment: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.PaymentApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | Payment id
payerId = payerId_example # String | This parameter represents the card token. This parameter is effective only when the service is "paypal".

try: 
    # Execute a payment by id.
    api_response = api_instance.execute_payment(apiecoKey, id, payerId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PaymentApi->executePayment: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Payment id
Required
Header parameters
Name Description
apieco-key*
String
Required
Form parameters
Name Description
payer_id*
String
This parameter represents the card token. This parameter is effective only when the service is "paypal".
Required

Responses

Status: 200 - Success

Status: default - Error


getPayment

Get a payment by id.


/payments/{id}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/payments/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PaymentApi;

import java.io.File;
import java.util.*;

public class PaymentApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        PaymentApi apiInstance = new PaymentApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Payment id
        try {
            Payment result = apiInstance.getPayment(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#getPayment");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PaymentApi;

public class PaymentApiExample {

    public static void main(String[] args) {
        PaymentApi apiInstance = new PaymentApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Payment id
        try {
            Payment result = apiInstance.getPayment(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#getPayment");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // Payment id

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

// Get a payment by id.
[apiInstance getPaymentWith:apiecoKey
    id:id
              completionHandler: ^(Payment output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.PaymentApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} Payment id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getPayment(apiecoKey, id, , callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getPaymentExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new PaymentApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | Payment id

            try
            {
                // Get a payment by id.
                Payment result = apiInstance.getPayment(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PaymentApi.getPayment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\PaymentApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | Payment id

try {
    $result = $api_instance->getPayment($apiecoKey, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PaymentApi->getPayment: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PaymentApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::PaymentApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | Payment id

eval { 
    my $result = $api_instance->getPayment(apiecoKey => $apiecoKey, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PaymentApi->getPayment: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.PaymentApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | Payment id

try: 
    # Get a payment by id.
    api_response = api_instance.get_payment(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PaymentApi->getPayment: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Payment id
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Success

Status: default - Error


listPayments

Get all accessable payments.


/payments

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/payments"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PaymentApi;

import java.io.File;
import java.util.*;

public class PaymentApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        PaymentApi apiInstance = new PaymentApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            array[Payment] result = apiInstance.listPayments(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#listPayments");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PaymentApi;

public class PaymentApiExample {

    public static void main(String[] args) {
        PaymentApi apiInstance = new PaymentApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            array[Payment] result = apiInstance.listPayments(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#listPayments");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 

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

// Get all accessable payments.
[apiInstance listPaymentsWith:apiecoKey
              completionHandler: ^(array[Payment] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.PaymentApi()

var apiecoKey = apiecoKey_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.listPayments(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class listPaymentsExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new PaymentApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                // Get all accessable payments.
                array[Payment] result = apiInstance.listPayments(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PaymentApi.listPayments: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\PaymentApi();
$apiecoKey = apiecoKey_example; // String | 

try {
    $result = $api_instance->listPayments($apiecoKey);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PaymentApi->listPayments: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PaymentApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::PaymentApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->listPayments(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PaymentApi->listPayments: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.PaymentApi()
apiecoKey = apiecoKey_example # String | 

try: 
    # Get all accessable payments.
    api_response = api_instance.list_payments(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PaymentApi->listPayments: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Success

Status: default - Error


PaymentCustomer

getDefaultPaymentCustomer

Get a default payment customer.


/payment_customers/default

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/payment_customers/default"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PaymentCustomerApi;

import java.io.File;
import java.util.*;

public class PaymentCustomerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        PaymentCustomerApi apiInstance = new PaymentCustomerApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            array[PaymentCustomer] result = apiInstance.getDefaultPaymentCustomer(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentCustomerApi#getDefaultPaymentCustomer");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PaymentCustomerApi;

public class PaymentCustomerApiExample {

    public static void main(String[] args) {
        PaymentCustomerApi apiInstance = new PaymentCustomerApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            array[PaymentCustomer] result = apiInstance.getDefaultPaymentCustomer(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentCustomerApi#getDefaultPaymentCustomer");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 

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

// Get a default payment customer.
[apiInstance getDefaultPaymentCustomerWith:apiecoKey
              completionHandler: ^(array[PaymentCustomer] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.PaymentCustomerApi()

var apiecoKey = apiecoKey_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDefaultPaymentCustomer(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getDefaultPaymentCustomerExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new PaymentCustomerApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                // Get a default payment customer.
                array[PaymentCustomer] result = apiInstance.getDefaultPaymentCustomer(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PaymentCustomerApi.getDefaultPaymentCustomer: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\PaymentCustomerApi();
$apiecoKey = apiecoKey_example; // String | 

try {
    $result = $api_instance->getDefaultPaymentCustomer($apiecoKey);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PaymentCustomerApi->getDefaultPaymentCustomer: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PaymentCustomerApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::PaymentCustomerApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->getDefaultPaymentCustomer(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PaymentCustomerApi->getDefaultPaymentCustomer: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.PaymentCustomerApi()
apiecoKey = apiecoKey_example # String | 

try: 
    # Get a default payment customer.
    api_response = api_instance.get_default_payment_customer(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PaymentCustomerApi->getDefaultPaymentCustomer: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Success

Status: default - Error


Plan

listPlans

Get all accessable plans.


/plans

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/plans"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PlanApi;

import java.io.File;
import java.util.*;

public class PlanApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        PlanApi apiInstance = new PlanApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            array[Plan] result = apiInstance.listPlans(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlanApi#listPlans");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PlanApi;

public class PlanApiExample {

    public static void main(String[] args) {
        PlanApi apiInstance = new PlanApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            array[Plan] result = apiInstance.listPlans(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlanApi#listPlans");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 

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

// Get all accessable plans.
[apiInstance listPlansWith:apiecoKey
              completionHandler: ^(array[Plan] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.PlanApi()

var apiecoKey = apiecoKey_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.listPlans(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class listPlansExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new PlanApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                // Get all accessable plans.
                array[Plan] result = apiInstance.listPlans(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PlanApi.listPlans: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\PlanApi();
$apiecoKey = apiecoKey_example; // String | 

try {
    $result = $api_instance->listPlans($apiecoKey);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PlanApi->listPlans: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PlanApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::PlanApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->listPlans(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PlanApi->listPlans: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.PlanApi()
apiecoKey = apiecoKey_example # String | 

try: 
    # Get all accessable plans.
    api_response = api_instance.list_plans(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PlanApi->listPlans: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Success

Status: default - Error


SpSubscription

createSpSubscription

Create a new smartphone subscription.


/sp_subscriptions

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/sp_subscriptions"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SpSubscriptionApi;

import java.io.File;
import java.util.*;

public class SpSubscriptionApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        SpSubscriptionApi apiInstance = new SpSubscriptionApi();
        String apiecoKey = apiecoKey_example; // String | 
        String service = service_example; // String | Service.
        String receipt = receipt_example; // String | Base64 encoded app store receipt. This parameter is effective only when the service is "appstore".
        try {
            SpSubscription result = apiInstance.createSpSubscription(apiecoKey, service, receipt);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SpSubscriptionApi#createSpSubscription");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SpSubscriptionApi;

public class SpSubscriptionApiExample {

    public static void main(String[] args) {
        SpSubscriptionApi apiInstance = new SpSubscriptionApi();
        String apiecoKey = apiecoKey_example; // String | 
        String service = service_example; // String | Service.
        String receipt = receipt_example; // String | Base64 encoded app store receipt. This parameter is effective only when the service is "appstore".
        try {
            SpSubscription result = apiInstance.createSpSubscription(apiecoKey, service, receipt);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SpSubscriptionApi#createSpSubscription");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
String *service = service_example; // Service.
String *receipt = receipt_example; // Base64 encoded app store receipt. This parameter is effective only when the service is "appstore". (optional)

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

// Create a new smartphone subscription.
[apiInstance createSpSubscriptionWith:apiecoKey
    service:service
    receipt:receipt
              completionHandler: ^(SpSubscription output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.SpSubscriptionApi()

var apiecoKey = apiecoKey_example; // {String} 

var service = service_example; // {String} Service.

var opts = { 
  'receipt': receipt_example // {String} Base64 encoded app store receipt. This parameter is effective only when the service is "appstore".
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createSpSubscription(apiecoKey, service, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createSpSubscriptionExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new SpSubscriptionApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var service = service_example;  // String | Service.
            var receipt = receipt_example;  // String | Base64 encoded app store receipt. This parameter is effective only when the service is "appstore". (optional) 

            try
            {
                // Create a new smartphone subscription.
                SpSubscription result = apiInstance.createSpSubscription(apiecoKey, service, receipt);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SpSubscriptionApi.createSpSubscription: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\SpSubscriptionApi();
$apiecoKey = apiecoKey_example; // String | 
$service = service_example; // String | Service.
$receipt = receipt_example; // String | Base64 encoded app store receipt. This parameter is effective only when the service is "appstore".

try {
    $result = $api_instance->createSpSubscription($apiecoKey, $service, $receipt);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SpSubscriptionApi->createSpSubscription: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SpSubscriptionApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::SpSubscriptionApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $service = service_example; # String | Service.
my $receipt = receipt_example; # String | Base64 encoded app store receipt. This parameter is effective only when the service is "appstore".

eval { 
    my $result = $api_instance->createSpSubscription(apiecoKey => $apiecoKey, service => $service, receipt => $receipt);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SpSubscriptionApi->createSpSubscription: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.SpSubscriptionApi()
apiecoKey = apiecoKey_example # String | 
service = service_example # String | Service.
receipt = receipt_example # String | Base64 encoded app store receipt. This parameter is effective only when the service is "appstore". (optional)

try: 
    # Create a new smartphone subscription.
    api_response = api_instance.create_sp_subscription(apiecoKey, service, receipt=receipt)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SpSubscriptionApi->createSpSubscription: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Form parameters
Name Description
service*
String
Service.
Enum: appstore
Required
receipt
String
Base64 encoded app store receipt. This parameter is effective only when the service is "appstore".

Responses

Status: 201 - Success

Status: default - Error


listSpSubscriptions

Get all accessable smartphone subscriptions.


/sp_subscriptions

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/sp_subscriptions"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SpSubscriptionApi;

import java.io.File;
import java.util.*;

public class SpSubscriptionApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        SpSubscriptionApi apiInstance = new SpSubscriptionApi();
        try {
            array[SpSubscription] result = apiInstance.listSpSubscriptions();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SpSubscriptionApi#listSpSubscriptions");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SpSubscriptionApi;

public class SpSubscriptionApiExample {

    public static void main(String[] args) {
        SpSubscriptionApi apiInstance = new SpSubscriptionApi();
        try {
            array[SpSubscription] result = apiInstance.listSpSubscriptions();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SpSubscriptionApi#listSpSubscriptions");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];


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

// Get all accessable smartphone subscriptions.
[apiInstance listSpSubscriptionsWithCompletionHandler: 
              ^(array[SpSubscription] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.SpSubscriptionApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.listSpSubscriptions(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class listSpSubscriptionsExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new SpSubscriptionApi();

            try
            {
                // Get all accessable smartphone subscriptions.
                array[SpSubscription] result = apiInstance.listSpSubscriptions();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SpSubscriptionApi.listSpSubscriptions: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\SpSubscriptionApi();

try {
    $result = $api_instance->listSpSubscriptions();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SpSubscriptionApi->listSpSubscriptions: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SpSubscriptionApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::SpSubscriptionApi->new();

eval { 
    my $result = $api_instance->listSpSubscriptions();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SpSubscriptionApi->listSpSubscriptions: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.SpSubscriptionApi()

try: 
    # Get all accessable smartphone subscriptions.
    api_response = api_instance.list_sp_subscriptions()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SpSubscriptionApi->listSpSubscriptions: %s\n" % e)

Parameters

Responses

Status: 200 - Success

Status: default - Error


Statistics

getGroupBuyStatistics

Get group buy statistics.


/statistics/group_buy

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/statistics/group_buy"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.StatisticsApi;

import java.io.File;
import java.util.*;

public class StatisticsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        StatisticsApi apiInstance = new StatisticsApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            GroupBuyStatistics result = apiInstance.getGroupBuyStatistics(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StatisticsApi#getGroupBuyStatistics");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.StatisticsApi;

public class StatisticsApiExample {

    public static void main(String[] args) {
        StatisticsApi apiInstance = new StatisticsApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            GroupBuyStatistics result = apiInstance.getGroupBuyStatistics(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StatisticsApi#getGroupBuyStatistics");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 

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

// Get group buy statistics.
[apiInstance getGroupBuyStatisticsWith:apiecoKey
              completionHandler: ^(GroupBuyStatistics output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.StatisticsApi()

var apiecoKey = apiecoKey_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getGroupBuyStatistics(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getGroupBuyStatisticsExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new StatisticsApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                // Get group buy statistics.
                GroupBuyStatistics result = apiInstance.getGroupBuyStatistics(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling StatisticsApi.getGroupBuyStatistics: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\StatisticsApi();
$apiecoKey = apiecoKey_example; // String | 

try {
    $result = $api_instance->getGroupBuyStatistics($apiecoKey);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StatisticsApi->getGroupBuyStatistics: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::StatisticsApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::StatisticsApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->getGroupBuyStatistics(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StatisticsApi->getGroupBuyStatistics: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.StatisticsApi()
apiecoKey = apiecoKey_example # String | 

try: 
    # Get group buy statistics.
    api_response = api_instance.get_group_buy_statistics(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StatisticsApi->getGroupBuyStatistics: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Success

Status: default - Error


listAnonymizedMasterings

Get anonymized masterings.


/statistics/anonymized_masterings

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/statistics/anonymized_masterings"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.StatisticsApi;

import java.io.File;
import java.util.*;

public class StatisticsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        StatisticsApi apiInstance = new StatisticsApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            array[AnonymizedMastering] result = apiInstance.listAnonymizedMasterings(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StatisticsApi#listAnonymizedMasterings");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.StatisticsApi;

public class StatisticsApiExample {

    public static void main(String[] args) {
        StatisticsApi apiInstance = new StatisticsApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            array[AnonymizedMastering] result = apiInstance.listAnonymizedMasterings(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StatisticsApi#listAnonymizedMasterings");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 

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

// Get anonymized masterings.
[apiInstance listAnonymizedMasteringsWith:apiecoKey
              completionHandler: ^(array[AnonymizedMastering] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.StatisticsApi()

var apiecoKey = apiecoKey_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.listAnonymizedMasterings(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class listAnonymizedMasteringsExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new StatisticsApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                // Get anonymized masterings.
                array[AnonymizedMastering] result = apiInstance.listAnonymizedMasterings(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling StatisticsApi.listAnonymizedMasterings: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\StatisticsApi();
$apiecoKey = apiecoKey_example; // String | 

try {
    $result = $api_instance->listAnonymizedMasterings($apiecoKey);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StatisticsApi->listAnonymizedMasterings: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::StatisticsApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::StatisticsApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->listAnonymizedMasterings(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StatisticsApi->listAnonymizedMasterings: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.StatisticsApi()
apiecoKey = apiecoKey_example # String | 

try: 
    # Get anonymized masterings.
    api_response = api_instance.list_anonymized_masterings(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StatisticsApi->listAnonymizedMasterings: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Success

Status: default - Error


listKpis

Get KPIs.


/statistics/kpis

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/statistics/kpis"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.StatisticsApi;

import java.io.File;
import java.util.*;

public class StatisticsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        StatisticsApi apiInstance = new StatisticsApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            Kpi result = apiInstance.listKpis(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StatisticsApi#listKpis");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.StatisticsApi;

public class StatisticsApiExample {

    public static void main(String[] args) {
        StatisticsApi apiInstance = new StatisticsApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            Kpi result = apiInstance.listKpis(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StatisticsApi#listKpis");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 

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

// Get KPIs.
[apiInstance listKpisWith:apiecoKey
              completionHandler: ^(Kpi output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.StatisticsApi()

var apiecoKey = apiecoKey_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.listKpis(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class listKpisExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new StatisticsApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                // Get KPIs.
                Kpi result = apiInstance.listKpis(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling StatisticsApi.listKpis: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\StatisticsApi();
$apiecoKey = apiecoKey_example; // String | 

try {
    $result = $api_instance->listKpis($apiecoKey);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StatisticsApi->listKpis: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::StatisticsApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::StatisticsApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->listKpis(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StatisticsApi->listKpis: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.StatisticsApi()
apiecoKey = apiecoKey_example # String | 

try: 
    # Get KPIs.
    api_response = api_instance.list_kpis(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StatisticsApi->listKpis: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Success

Status: default - Error


Subscription

cancelSubscription

Cancel a subscription by id.


/subscriptions/{id}/cancel

Usage and SDK Samples

curl -X PUT -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/subscriptions/{id}/cancel"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SubscriptionApi;

import java.io.File;
import java.util.*;

public class SubscriptionApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        SubscriptionApi apiInstance = new SubscriptionApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Subscription id
        try {
            Subscription result = apiInstance.cancelSubscription(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscriptionApi#cancelSubscription");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SubscriptionApi;

public class SubscriptionApiExample {

    public static void main(String[] args) {
        SubscriptionApi apiInstance = new SubscriptionApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Subscription id
        try {
            Subscription result = apiInstance.cancelSubscription(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscriptionApi#cancelSubscription");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // Subscription id

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

// Cancel a subscription by id.
[apiInstance cancelSubscriptionWith:apiecoKey
    id:id
              completionHandler: ^(Subscription output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.SubscriptionApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} Subscription id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.cancelSubscription(apiecoKey, id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class cancelSubscriptionExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new SubscriptionApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | Subscription id

            try
            {
                // Cancel a subscription by id.
                Subscription result = apiInstance.cancelSubscription(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SubscriptionApi.cancelSubscription: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\SubscriptionApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | Subscription id

try {
    $result = $api_instance->cancelSubscription($apiecoKey, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SubscriptionApi->cancelSubscription: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SubscriptionApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::SubscriptionApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | Subscription id

eval { 
    my $result = $api_instance->cancelSubscription(apiecoKey => $apiecoKey, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SubscriptionApi->cancelSubscription: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.SubscriptionApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | Subscription id

try: 
    # Cancel a subscription by id.
    api_response = api_instance.cancel_subscription(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SubscriptionApi->cancelSubscription: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Subscription id
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Success

Status: default - Error


cancelSubscriptionCancellation

Cancel the subscription cancellation by id.


/subscriptions/{id}/cancel_cancellation

Usage and SDK Samples

curl -X PUT -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/subscriptions/{id}/cancel_cancellation"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SubscriptionApi;

import java.io.File;
import java.util.*;

public class SubscriptionApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        SubscriptionApi apiInstance = new SubscriptionApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Subscription id
        try {
            Subscription result = apiInstance.cancelSubscriptionCancellation(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscriptionApi#cancelSubscriptionCancellation");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SubscriptionApi;

public class SubscriptionApiExample {

    public static void main(String[] args) {
        SubscriptionApi apiInstance = new SubscriptionApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Subscription id
        try {
            Subscription result = apiInstance.cancelSubscriptionCancellation(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscriptionApi#cancelSubscriptionCancellation");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // Subscription id

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

// Cancel the subscription cancellation  by id.
[apiInstance cancelSubscriptionCancellationWith:apiecoKey
    id:id
              completionHandler: ^(Subscription output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.SubscriptionApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} Subscription id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.cancelSubscriptionCancellation(apiecoKey, id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class cancelSubscriptionCancellationExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new SubscriptionApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | Subscription id

            try
            {
                // Cancel the subscription cancellation  by id.
                Subscription result = apiInstance.cancelSubscriptionCancellation(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SubscriptionApi.cancelSubscriptionCancellation: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\SubscriptionApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | Subscription id

try {
    $result = $api_instance->cancelSubscriptionCancellation($apiecoKey, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SubscriptionApi->cancelSubscriptionCancellation: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SubscriptionApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::SubscriptionApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | Subscription id

eval { 
    my $result = $api_instance->cancelSubscriptionCancellation(apiecoKey => $apiecoKey, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SubscriptionApi->cancelSubscriptionCancellation: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.SubscriptionApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | Subscription id

try: 
    # Cancel the subscription cancellation  by id.
    api_response = api_instance.cancel_subscription_cancellation(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SubscriptionApi->cancelSubscriptionCancellation: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Subscription id
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Success

Status: default - Error


createSubscription

Create a new subscription.


/subscriptions

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/subscriptions"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SubscriptionApi;

import java.io.File;
import java.util.*;

public class SubscriptionApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        SubscriptionApi apiInstance = new SubscriptionApi();
        String apiecoKey = apiecoKey_example; // String | 
        String service = service_example; // String | This parameter represents the payment message.
        String stripePlanId = stripePlanId_example; // String | The Stripe plan id. This parameter is effective only when the service is "stripe".
        String token = token_example; // String | This parameter represents the card token. This parameter is effective only when the service is "stripe".
        String affiliateId = affiliateId_example; // String | Affiliate id of inviter user.
        try {
            Subscription result = apiInstance.createSubscription(apiecoKey, service, stripePlanId, token, affiliateId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscriptionApi#createSubscription");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SubscriptionApi;

public class SubscriptionApiExample {

    public static void main(String[] args) {
        SubscriptionApi apiInstance = new SubscriptionApi();
        String apiecoKey = apiecoKey_example; // String | 
        String service = service_example; // String | This parameter represents the payment message.
        String stripePlanId = stripePlanId_example; // String | The Stripe plan id. This parameter is effective only when the service is "stripe".
        String token = token_example; // String | This parameter represents the card token. This parameter is effective only when the service is "stripe".
        String affiliateId = affiliateId_example; // String | Affiliate id of inviter user.
        try {
            Subscription result = apiInstance.createSubscription(apiecoKey, service, stripePlanId, token, affiliateId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscriptionApi#createSubscription");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
String *service = service_example; // This parameter represents the payment message.
String *stripePlanId = stripePlanId_example; // The Stripe plan id. This parameter is effective only when the service is "stripe". (optional)
String *token = token_example; // This parameter represents the card token. This parameter is effective only when the service is "stripe". (optional)
String *affiliateId = affiliateId_example; // Affiliate id of inviter user. (optional)

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

// Create a new subscription.
[apiInstance createSubscriptionWith:apiecoKey
    service:service
    stripePlanId:stripePlanId
    token:token
    affiliateId:affiliateId
              completionHandler: ^(Subscription output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.SubscriptionApi()

var apiecoKey = apiecoKey_example; // {String} 

var service = service_example; // {String} This parameter represents the payment message.

var opts = { 
  'stripePlanId': stripePlanId_example, // {String} The Stripe plan id. This parameter is effective only when the service is "stripe".
  'token': token_example, // {String} This parameter represents the card token. This parameter is effective only when the service is "stripe".
  'affiliateId': affiliateId_example // {String} Affiliate id of inviter user.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createSubscription(apiecoKey, service, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createSubscriptionExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new SubscriptionApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var service = service_example;  // String | This parameter represents the payment message.
            var stripePlanId = stripePlanId_example;  // String | The Stripe plan id. This parameter is effective only when the service is "stripe". (optional) 
            var token = token_example;  // String | This parameter represents the card token. This parameter is effective only when the service is "stripe". (optional) 
            var affiliateId = affiliateId_example;  // String | Affiliate id of inviter user. (optional) 

            try
            {
                // Create a new subscription.
                Subscription result = apiInstance.createSubscription(apiecoKey, service, stripePlanId, token, affiliateId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SubscriptionApi.createSubscription: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\SubscriptionApi();
$apiecoKey = apiecoKey_example; // String | 
$service = service_example; // String | This parameter represents the payment message.
$stripePlanId = stripePlanId_example; // String | The Stripe plan id. This parameter is effective only when the service is "stripe".
$token = token_example; // String | This parameter represents the card token. This parameter is effective only when the service is "stripe".
$affiliateId = affiliateId_example; // String | Affiliate id of inviter user.

try {
    $result = $api_instance->createSubscription($apiecoKey, $service, $stripePlanId, $token, $affiliateId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SubscriptionApi->createSubscription: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SubscriptionApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::SubscriptionApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $service = service_example; # String | This parameter represents the payment message.
my $stripePlanId = stripePlanId_example; # String | The Stripe plan id. This parameter is effective only when the service is "stripe".
my $token = token_example; # String | This parameter represents the card token. This parameter is effective only when the service is "stripe".
my $affiliateId = affiliateId_example; # String | Affiliate id of inviter user.

eval { 
    my $result = $api_instance->createSubscription(apiecoKey => $apiecoKey, service => $service, stripePlanId => $stripePlanId, token => $token, affiliateId => $affiliateId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SubscriptionApi->createSubscription: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.SubscriptionApi()
apiecoKey = apiecoKey_example # String | 
service = service_example # String | This parameter represents the payment message.
stripePlanId = stripePlanId_example # String | The Stripe plan id. This parameter is effective only when the service is "stripe". (optional)
token = token_example # String | This parameter represents the card token. This parameter is effective only when the service is "stripe". (optional)
affiliateId = affiliateId_example # String | Affiliate id of inviter user. (optional)

try: 
    # Create a new subscription.
    api_response = api_instance.create_subscription(apiecoKey, service, stripePlanId=stripePlanId, token=token, affiliateId=affiliateId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SubscriptionApi->createSubscription: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Form parameters
Name Description
service*
String
This parameter represents the payment message.
Enum: stripe
Required
stripe_plan_id
String
The Stripe plan id. This parameter is effective only when the service is "stripe".
token
String
This parameter represents the card token. This parameter is effective only when the service is "stripe".
affiliate_id
String
Affiliate id of inviter user.

Responses

Status: 201 - Success

Status: default - Error


getSubscription

Get a subscription by id.


/subscriptions/{id}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/subscriptions/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SubscriptionApi;

import java.io.File;
import java.util.*;

public class SubscriptionApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        SubscriptionApi apiInstance = new SubscriptionApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Subscription id
        try {
            Subscription result = apiInstance.getSubscription(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscriptionApi#getSubscription");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SubscriptionApi;

public class SubscriptionApiExample {

    public static void main(String[] args) {
        SubscriptionApi apiInstance = new SubscriptionApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Subscription id
        try {
            Subscription result = apiInstance.getSubscription(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscriptionApi#getSubscription");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // Subscription id

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

// Get a subscription by id.
[apiInstance getSubscriptionWith:apiecoKey
    id:id
              completionHandler: ^(Subscription output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.SubscriptionApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} Subscription id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getSubscription(apiecoKey, id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getSubscriptionExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new SubscriptionApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | Subscription id

            try
            {
                // Get a subscription by id.
                Subscription result = apiInstance.getSubscription(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SubscriptionApi.getSubscription: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\SubscriptionApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | Subscription id

try {
    $result = $api_instance->getSubscription($apiecoKey, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SubscriptionApi->getSubscription: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SubscriptionApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::SubscriptionApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | Subscription id

eval { 
    my $result = $api_instance->getSubscription(apiecoKey => $apiecoKey, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SubscriptionApi->getSubscription: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.SubscriptionApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | Subscription id

try: 
    # Get a subscription by id.
    api_response = api_instance.get_subscription(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SubscriptionApi->getSubscription: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Subscription id
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Success

Status: default - Error


listSubscriptions

Get all accessable subscriptions.


/subscriptions

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/subscriptions"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SubscriptionApi;

import java.io.File;
import java.util.*;

public class SubscriptionApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        SubscriptionApi apiInstance = new SubscriptionApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            array[Subscription] result = apiInstance.listSubscriptions(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscriptionApi#listSubscriptions");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SubscriptionApi;

public class SubscriptionApiExample {

    public static void main(String[] args) {
        SubscriptionApi apiInstance = new SubscriptionApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            array[Subscription] result = apiInstance.listSubscriptions(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscriptionApi#listSubscriptions");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 

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

// Get all accessable subscriptions.
[apiInstance listSubscriptionsWith:apiecoKey
              completionHandler: ^(array[Subscription] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.SubscriptionApi()

var apiecoKey = apiecoKey_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.listSubscriptions(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class listSubscriptionsExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new SubscriptionApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                // Get all accessable subscriptions.
                array[Subscription] result = apiInstance.listSubscriptions(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SubscriptionApi.listSubscriptions: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\SubscriptionApi();
$apiecoKey = apiecoKey_example; // String | 

try {
    $result = $api_instance->listSubscriptions($apiecoKey);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SubscriptionApi->listSubscriptions: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SubscriptionApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::SubscriptionApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->listSubscriptions(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SubscriptionApi->listSubscriptions: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.SubscriptionApi()
apiecoKey = apiecoKey_example # String | 

try: 
    # Get all accessable subscriptions.
    api_response = api_instance.list_subscriptions(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SubscriptionApi->listSubscriptions: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Success

Status: default - Error


User

getSelf

Get self user.


/users/self

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/users/self"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserApi;

import java.io.File;
import java.util.*;

public class UserApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        UserApi apiInstance = new UserApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            User result = apiInstance.getSelf(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#getSelf");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserApi;

public class UserApiExample {

    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            User result = apiInstance.getSelf(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#getSelf");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 

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

// Get self user.
[apiInstance getSelfWith:apiecoKey
              completionHandler: ^(User output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.UserApi()

var apiecoKey = apiecoKey_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getSelf(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getSelfExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new UserApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                // Get self user.
                User result = apiInstance.getSelf(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserApi.getSelf: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\UserApi();
$apiecoKey = apiecoKey_example; // String | 

try {
    $result = $api_instance->getSelf($apiecoKey);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UserApi->getSelf: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UserApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::UserApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->getSelf(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserApi->getSelf: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.UserApi()
apiecoKey = apiecoKey_example # String | 

try: 
    # Get self user.
    api_response = api_instance.get_self(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->getSelf: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Success

Status: default - Error


notifyRegistration

Notify user is registered.


/users/self/notify_registration

Usage and SDK Samples

curl -X PUT -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/users/self/notify_registration"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserApi;

import java.io.File;
import java.util.*;

public class UserApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        UserApi apiInstance = new UserApi();
        String apiecoKey = apiecoKey_example; // String | 
        String affiliateId = affiliateId_example; // String | The affiliate id of inviter.
        String referrerUrl = referrerUrl_example; // String | The referrer URL.
        try {
            User result = apiInstance.notifyRegistration(apiecoKey, affiliateId, referrerUrl);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#notifyRegistration");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserApi;

public class UserApiExample {

    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        String apiecoKey = apiecoKey_example; // String | 
        String affiliateId = affiliateId_example; // String | The affiliate id of inviter.
        String referrerUrl = referrerUrl_example; // String | The referrer URL.
        try {
            User result = apiInstance.notifyRegistration(apiecoKey, affiliateId, referrerUrl);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#notifyRegistration");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
String *affiliateId = affiliateId_example; // The affiliate id of inviter. (optional)
String *referrerUrl = referrerUrl_example; // The referrer URL. (optional)

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

// Notify user is registered.
[apiInstance notifyRegistrationWith:apiecoKey
    affiliateId:affiliateId
    referrerUrl:referrerUrl
              completionHandler: ^(User output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.UserApi()

var apiecoKey = apiecoKey_example; // {String} 

var opts = { 
  'affiliateId': affiliateId_example, // {String} The affiliate id of inviter.
  'referrerUrl': referrerUrl_example // {String} The referrer URL.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.notifyRegistration(apiecoKey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class notifyRegistrationExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new UserApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var affiliateId = affiliateId_example;  // String | The affiliate id of inviter. (optional) 
            var referrerUrl = referrerUrl_example;  // String | The referrer URL. (optional) 

            try
            {
                // Notify user is registered.
                User result = apiInstance.notifyRegistration(apiecoKey, affiliateId, referrerUrl);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserApi.notifyRegistration: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\UserApi();
$apiecoKey = apiecoKey_example; // String | 
$affiliateId = affiliateId_example; // String | The affiliate id of inviter.
$referrerUrl = referrerUrl_example; // String | The referrer URL.

try {
    $result = $api_instance->notifyRegistration($apiecoKey, $affiliateId, $referrerUrl);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UserApi->notifyRegistration: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UserApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::UserApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $affiliateId = affiliateId_example; # String | The affiliate id of inviter.
my $referrerUrl = referrerUrl_example; # String | The referrer URL.

eval { 
    my $result = $api_instance->notifyRegistration(apiecoKey => $apiecoKey, affiliateId => $affiliateId, referrerUrl => $referrerUrl);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserApi->notifyRegistration: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.UserApi()
apiecoKey = apiecoKey_example # String | 
affiliateId = affiliateId_example # String | The affiliate id of inviter. (optional)
referrerUrl = referrerUrl_example # String | The referrer URL. (optional)

try: 
    # Notify user is registered.
    api_response = api_instance.notify_registration(apiecoKey, affiliateId=affiliateId, referrerUrl=referrerUrl)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->notifyRegistration: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Form parameters
Name Description
affiliate_id
String
The affiliate id of inviter.
referrer_url
String
The referrer URL.

Responses

Status: 200 - Success

Status: default - Error


sendInvitation

Send invitation.


/users/self/send_invitation

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/users/self/send_invitation"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserApi;

import java.io.File;
import java.util.*;

public class UserApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        UserApi apiInstance = new UserApi();
        String apiecoKey = apiecoKey_example; // String | 
        String inviteeEmail = inviteeEmail_example; // String | The email of invitee.
        try {
            User result = apiInstance.sendInvitation(apiecoKey, inviteeEmail);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#sendInvitation");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserApi;

public class UserApiExample {

    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        String apiecoKey = apiecoKey_example; // String | 
        String inviteeEmail = inviteeEmail_example; // String | The email of invitee.
        try {
            User result = apiInstance.sendInvitation(apiecoKey, inviteeEmail);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#sendInvitation");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
String *inviteeEmail = inviteeEmail_example; // The email of invitee.

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

// Send invitation.
[apiInstance sendInvitationWith:apiecoKey
    inviteeEmail:inviteeEmail
              completionHandler: ^(User output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.UserApi()

var apiecoKey = apiecoKey_example; // {String} 

var inviteeEmail = inviteeEmail_example; // {String} The email of invitee.


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.sendInvitation(apiecoKey, inviteeEmail, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class sendInvitationExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new UserApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var inviteeEmail = inviteeEmail_example;  // String | The email of invitee.

            try
            {
                // Send invitation.
                User result = apiInstance.sendInvitation(apiecoKey, inviteeEmail);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserApi.sendInvitation: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\UserApi();
$apiecoKey = apiecoKey_example; // String | 
$inviteeEmail = inviteeEmail_example; // String | The email of invitee.

try {
    $result = $api_instance->sendInvitation($apiecoKey, $inviteeEmail);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UserApi->sendInvitation: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UserApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::UserApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $inviteeEmail = inviteeEmail_example; # String | The email of invitee.

eval { 
    my $result = $api_instance->sendInvitation(apiecoKey => $apiecoKey, inviteeEmail => $inviteeEmail);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserApi->sendInvitation: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.UserApi()
apiecoKey = apiecoKey_example # String | 
inviteeEmail = inviteeEmail_example # String | The email of invitee.

try: 
    # Send invitation.
    api_response = api_instance.send_invitation(apiecoKey, inviteeEmail)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->sendInvitation: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Form parameters
Name Description
invitee_email*
String
The email of invitee.
Required

Responses

Status: 200 - Success

Status: default - Error


updateSelf

Update self user.


/users/self

Usage and SDK Samples

curl -X PUT -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/users/self"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserApi;

import java.io.File;
import java.util.*;

public class UserApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        UserApi apiInstance = new UserApi();
        String apiecoKey = apiecoKey_example; // String | 
        Boolean agreedTermsOfService = true; // Boolean | Whether you agreed terms of service.
        String email = email_example; // String | The email.
        try {
            User result = apiInstance.updateSelf(apiecoKey, agreedTermsOfService, email);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#updateSelf");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserApi;

public class UserApiExample {

    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        String apiecoKey = apiecoKey_example; // String | 
        Boolean agreedTermsOfService = true; // Boolean | Whether you agreed terms of service.
        String email = email_example; // String | The email.
        try {
            User result = apiInstance.updateSelf(apiecoKey, agreedTermsOfService, email);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#updateSelf");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Boolean *agreedTermsOfService = true; // Whether you agreed terms of service. (optional)
String *email = email_example; // The email. (optional)

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

// Update self user.
[apiInstance updateSelfWith:apiecoKey
    agreedTermsOfService:agreedTermsOfService
    email:email
              completionHandler: ^(User output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.UserApi()

var apiecoKey = apiecoKey_example; // {String} 

var opts = { 
  'agreedTermsOfService': true, // {Boolean} Whether you agreed terms of service.
  'email': email_example // {String} The email.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateSelf(apiecoKey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateSelfExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new UserApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var agreedTermsOfService = true;  // Boolean | Whether you agreed terms of service. (optional) 
            var email = email_example;  // String | The email. (optional) 

            try
            {
                // Update self user.
                User result = apiInstance.updateSelf(apiecoKey, agreedTermsOfService, email);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserApi.updateSelf: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\UserApi();
$apiecoKey = apiecoKey_example; // String | 
$agreedTermsOfService = true; // Boolean | Whether you agreed terms of service.
$email = email_example; // String | The email.

try {
    $result = $api_instance->updateSelf($apiecoKey, $agreedTermsOfService, $email);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UserApi->updateSelf: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UserApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::UserApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $agreedTermsOfService = true; # Boolean | Whether you agreed terms of service.
my $email = email_example; # String | The email.

eval { 
    my $result = $api_instance->updateSelf(apiecoKey => $apiecoKey, agreedTermsOfService => $agreedTermsOfService, email => $email);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserApi->updateSelf: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.UserApi()
apiecoKey = apiecoKey_example # String | 
agreedTermsOfService = true # Boolean | Whether you agreed terms of service. (optional)
email = email_example # String | The email. (optional)

try: 
    # Update self user.
    api_response = api_instance.update_self(apiecoKey, agreedTermsOfService=agreedTermsOfService, email=email)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->updateSelf: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Form parameters
Name Description
agreed_terms_of_service
Boolean
Whether you agreed terms of service.
email
String
The email.

Responses

Status: 200 - Success

Status: default - Error


Video

downloadVideo

Download an video data by id.


/videos/{id}/download

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/videos/{id}/download"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.VideoApi;

import java.io.File;
import java.util.*;

public class VideoApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        VideoApi apiInstance = new VideoApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Video id
        try {
            byte[] result = apiInstance.downloadVideo(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VideoApi#downloadVideo");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.VideoApi;

public class VideoApiExample {

    public static void main(String[] args) {
        VideoApi apiInstance = new VideoApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Video id
        try {
            byte[] result = apiInstance.downloadVideo(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VideoApi#downloadVideo");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // Video id

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

// Download an video data by id.
[apiInstance downloadVideoWith:apiecoKey
    id:id
              completionHandler: ^(byte[] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.VideoApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} Video id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.downloadVideo(apiecoKey, id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class downloadVideoExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new VideoApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | Video id

            try
            {
                // Download an video data by id.
                byte[] result = apiInstance.downloadVideo(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling VideoApi.downloadVideo: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\VideoApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | Video id

try {
    $result = $api_instance->downloadVideo($apiecoKey, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling VideoApi->downloadVideo: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::VideoApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::VideoApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | Video id

eval { 
    my $result = $api_instance->downloadVideo(apiecoKey => $apiecoKey, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VideoApi->downloadVideo: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.VideoApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | Video id

try: 
    # Download an video data by id.
    api_response = api_instance.download_video(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VideoApi->downloadVideo: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Video id
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Success

Status: default - Error


downloadVideoByToken

Download an video data by video_download_token.


/videos/download_by_token

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/videos/download_by_token?download_token="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.VideoApi;

import java.io.File;
import java.util.*;

public class VideoApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        VideoApi apiInstance = new VideoApi();
        String apiecoKey = apiecoKey_example; // String | 
        String downloadToken = downloadToken_example; // String | Video download token
        try {
            byte[] result = apiInstance.downloadVideoByToken(apiecoKey, downloadToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VideoApi#downloadVideoByToken");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.VideoApi;

public class VideoApiExample {

    public static void main(String[] args) {
        VideoApi apiInstance = new VideoApi();
        String apiecoKey = apiecoKey_example; // String | 
        String downloadToken = downloadToken_example; // String | Video download token
        try {
            byte[] result = apiInstance.downloadVideoByToken(apiecoKey, downloadToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VideoApi#downloadVideoByToken");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
String *downloadToken = downloadToken_example; // Video download token

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

// Download an video data by video_download_token.
[apiInstance downloadVideoByTokenWith:apiecoKey
    downloadToken:downloadToken
              completionHandler: ^(byte[] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.VideoApi()

var apiecoKey = apiecoKey_example; // {String} 

var downloadToken = downloadToken_example; // {String} Video download token


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.downloadVideoByToken(apiecoKey, downloadToken, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class downloadVideoByTokenExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new VideoApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var downloadToken = downloadToken_example;  // String | Video download token

            try
            {
                // Download an video data by video_download_token.
                byte[] result = apiInstance.downloadVideoByToken(apiecoKey, downloadToken);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling VideoApi.downloadVideoByToken: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\VideoApi();
$apiecoKey = apiecoKey_example; // String | 
$downloadToken = downloadToken_example; // String | Video download token

try {
    $result = $api_instance->downloadVideoByToken($apiecoKey, $downloadToken);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling VideoApi->downloadVideoByToken: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::VideoApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::VideoApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $downloadToken = downloadToken_example; # String | Video download token

eval { 
    my $result = $api_instance->downloadVideoByToken(apiecoKey => $apiecoKey, downloadToken => $downloadToken);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VideoApi->downloadVideoByToken: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.VideoApi()
apiecoKey = apiecoKey_example # String | 
downloadToken = downloadToken_example # String | Video download token

try: 
    # Download an video data by video_download_token.
    api_response = api_instance.download_video_by_token(apiecoKey, downloadToken)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VideoApi->downloadVideoByToken: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
download_token*
String (JWT)
Video download token
Required

Responses

Status: 200 - Success

Status: default - Error


getVideo

Get an video by id.


/videos/{id}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/videos/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.VideoApi;

import java.io.File;
import java.util.*;

public class VideoApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        VideoApi apiInstance = new VideoApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Video id
        try {
            Video result = apiInstance.getVideo(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VideoApi#getVideo");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.VideoApi;

public class VideoApiExample {

    public static void main(String[] args) {
        VideoApi apiInstance = new VideoApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Video id
        try {
            Video result = apiInstance.getVideo(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VideoApi#getVideo");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // Video id

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

// Get an video by id.
[apiInstance getVideoWith:apiecoKey
    id:id
              completionHandler: ^(Video output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.VideoApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} Video id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getVideo(apiecoKey, id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getVideoExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new VideoApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | Video id

            try
            {
                // Get an video by id.
                Video result = apiInstance.getVideo(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling VideoApi.getVideo: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\VideoApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | Video id

try {
    $result = $api_instance->getVideo($apiecoKey, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling VideoApi->getVideo: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::VideoApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::VideoApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | Video id

eval { 
    my $result = $api_instance->getVideo(apiecoKey => $apiecoKey, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VideoApi->getVideo: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.VideoApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | Video id

try: 
    # Get an video by id.
    api_response = api_instance.get_video(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VideoApi->getVideo: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Video id
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Success

Status: default - Error


getVideoDownloadToken

Get an video download token by id.


/videos/{id}/download_token

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/videos/{id}/download_token"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.VideoApi;

import java.io.File;
import java.util.*;

public class VideoApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        VideoApi apiInstance = new VideoApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Video id
        try {
            VideoDownloadToken result = apiInstance.getVideoDownloadToken(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VideoApi#getVideoDownloadToken");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.VideoApi;

public class VideoApiExample {

    public static void main(String[] args) {
        VideoApi apiInstance = new VideoApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | Video id
        try {
            VideoDownloadToken result = apiInstance.getVideoDownloadToken(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VideoApi#getVideoDownloadToken");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // Video id

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

// Get an video download token by id.
[apiInstance getVideoDownloadTokenWith:apiecoKey
    id:id
              completionHandler: ^(VideoDownloadToken output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.VideoApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} Video id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getVideoDownloadToken(apiecoKey, id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getVideoDownloadTokenExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new VideoApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | Video id

            try
            {
                // Get an video download token by id.
                VideoDownloadToken result = apiInstance.getVideoDownloadToken(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling VideoApi.getVideoDownloadToken: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\VideoApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | Video id

try {
    $result = $api_instance->getVideoDownloadToken($apiecoKey, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling VideoApi->getVideoDownloadToken: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::VideoApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::VideoApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | Video id

eval { 
    my $result = $api_instance->getVideoDownloadToken(apiecoKey => $apiecoKey, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VideoApi->getVideoDownloadToken: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.VideoApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | Video id

try: 
    # Get an video download token by id.
    api_response = api_instance.get_video_download_token(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VideoApi->getVideoDownloadToken: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Video id
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Success

Status: default - Error


listVideos

Get all videos accessable.


/videos

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/videos"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.VideoApi;

import java.io.File;
import java.util.*;

public class VideoApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        VideoApi apiInstance = new VideoApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            array[Video] result = apiInstance.listVideos(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VideoApi#listVideos");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.VideoApi;

public class VideoApiExample {

    public static void main(String[] args) {
        VideoApi apiInstance = new VideoApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            array[Video] result = apiInstance.listVideos(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VideoApi#listVideos");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 

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

// Get all videos accessable.
[apiInstance listVideosWith:apiecoKey
              completionHandler: ^(array[Video] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new AiMasteringApi.VideoApi()

var apiecoKey = apiecoKey_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.listVideos(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class listVideosExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new VideoApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                // Get all videos accessable.
                array[Video] result = apiInstance.listVideos(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling VideoApi.listVideos: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\VideoApi();
$apiecoKey = apiecoKey_example; // String | 

try {
    $result = $api_instance->listVideos($apiecoKey);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling VideoApi->listVideos: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::VideoApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::VideoApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->listVideos(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VideoApi->listVideos: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.VideoApi()
apiecoKey = apiecoKey_example # String | 

try: 
    # Get all videos accessable.
    api_response = api_instance.list_videos(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VideoApi->listVideos: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Success

Status: default - Error