Paperlit API

AppAccount

loginAppAcc

Login App Account


/projects/{projectid}/app-accounts/authentication/login

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/projects/{projectid}/app-accounts/authentication/login"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AppAccountApi;

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

public class AppAccountApiExample {

    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");

        AppAccountApi apiInstance = new AppAccountApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        Body_7 body = ; // Body_7 | 
        try {
            inline_response_200_3_data result = apiInstance.loginAppAcc(apiecoKey, projectid, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AppAccountApi#loginAppAcc");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AppAccountApi;

public class AppAccountApiExample {

    public static void main(String[] args) {
        AppAccountApi apiInstance = new AppAccountApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        Body_7 body = ; // Body_7 | 
        try {
            inline_response_200_3_data result = apiInstance.loginAppAcc(apiecoKey, projectid, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AppAccountApi#loginAppAcc");
            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 *projectid = projectid_example; // 
Body_7 *body = ; //  (optional)

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

[apiInstance loginAppAccWith:apiecoKey
    projectid:projectid
    body:body
              completionHandler: ^(inline_response_200_3_data output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.AppAccountApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_example; // {String} 

var opts = { 
  'body':  // {Body_7} 
};

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

namespace Example
{
    public class loginAppAccExample
    {
        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 AppAccountApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 
            var body = new Body_7(); // Body_7 |  (optional) 

            try
            {
                inline_response_200_3_data result = apiInstance.loginAppAcc(apiecoKey, projectid, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AppAccountApi.loginAppAcc: " + 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\AppAccountApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 
$body = ; // Body_7 | 

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

# 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::AppAccountApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 
my $body = WWW::SwaggerClient::Object::Body_7->new(); # Body_7 | 

eval { 
    my $result = $api_instance->loginAppAcc(apiecoKey => $apiecoKey, projectid => $projectid, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AppAccountApi->loginAppAcc: $@\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.AppAccountApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 
body =  # Body_7 |  (optional)

try: 
    api_response = api_instance.login_app_acc(apiecoKey, projectid, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AppAccountApi->loginAppAcc: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required
Body parameters
Name Description
body

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


Apps

settingsList

List of settings to use for building an app. Only administrator can expand the api with build settings. Without the build parameter are returned a subset of these settings


/v8/projects/{projectid}/apps/{bundleid}/settings/{version}/{platform}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/v8/projects/{projectid}/apps/{bundleid}/settings/{version}/{platform}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AppsApi;

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

public class AppsApiExample {

    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");

        AppsApi apiInstance = new AppsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String bundleid = bundleid_example; // String | 
        String version = version_example; // String | 
        String platform = platform_example; // String | 
        try {
            inline_response_200_9 result = apiInstance.settingsList(apiecoKey, projectid, bundleid, version, platform);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AppsApi#settingsList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AppsApi;

public class AppsApiExample {

    public static void main(String[] args) {
        AppsApi apiInstance = new AppsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String bundleid = bundleid_example; // String | 
        String version = version_example; // String | 
        String platform = platform_example; // String | 
        try {
            inline_response_200_9 result = apiInstance.settingsList(apiecoKey, projectid, bundleid, version, platform);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AppsApi#settingsList");
            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 *projectid = projectid_example; // 
String *bundleid = bundleid_example; // 
String *version = version_example; // 
String *platform = platform_example; // 

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

[apiInstance settingsListWith:apiecoKey
    projectid:projectid
    bundleid:bundleid
    version:version
    platform:platform
              completionHandler: ^(inline_response_200_9 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.AppsApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_example; // {String} 

var bundleid = bundleid_example; // {String} 

var version = version_example; // {String} 

var platform = platform_example; // {String} 


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

namespace Example
{
    public class settingsListExample
    {
        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 AppsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 
            var bundleid = bundleid_example;  // String | 
            var version = version_example;  // String | 
            var platform = platform_example;  // String | 

            try
            {
                inline_response_200_9 result = apiInstance.settingsList(apiecoKey, projectid, bundleid, version, platform);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AppsApi.settingsList: " + 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\AppsApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 
$bundleid = bundleid_example; // String | 
$version = version_example; // String | 
$platform = platform_example; // String | 

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

# 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::AppsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 
my $bundleid = bundleid_example; # String | 
my $version = version_example; # String | 
my $platform = platform_example; # String | 

eval { 
    my $result = $api_instance->settingsList(apiecoKey => $apiecoKey, projectid => $projectid, bundleid => $bundleid, version => $version, platform => $platform);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AppsApi->settingsList: $@\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.AppsApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 
bundleid = bundleid_example # String | 
version = version_example # String | 
platform = platform_example # String | 

try: 
    api_response = api_instance.settings_list(apiecoKey, projectid, bundleid, version, platform)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AppsApi->settingsList: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
bundleid*
String
Required
version*
String
Required
platform*
String
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


Audios

audioSAS

Audio SAS


/v8/projects/{projectid}/audios/sas

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/v8/projects/{projectid}/audios/sas"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AudiosApi;

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

public class AudiosApiExample {

    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");

        AudiosApi apiInstance = new AudiosApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        try {
            inline_response_200_16 result = apiInstance.audioSAS(apiecoKey, projectid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AudiosApi#audioSAS");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AudiosApi;

public class AudiosApiExample {

    public static void main(String[] args) {
        AudiosApi apiInstance = new AudiosApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        try {
            inline_response_200_16 result = apiInstance.audioSAS(apiecoKey, projectid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AudiosApi#audioSAS");
            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 *projectid = projectid_example; // 

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

[apiInstance audioSASWith:apiecoKey
    projectid:projectid
              completionHandler: ^(inline_response_200_16 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.AudiosApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_example; // {String} 


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

namespace Example
{
    public class audioSASExample
    {
        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 AudiosApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 

            try
            {
                inline_response_200_16 result = apiInstance.audioSAS(apiecoKey, projectid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AudiosApi.audioSAS: " + 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\AudiosApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 

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

# 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::AudiosApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 

eval { 
    my $result = $api_instance->audioSAS(apiecoKey => $apiecoKey, projectid => $projectid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AudiosApi->audioSAS: $@\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.AudiosApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 

try: 
    api_response = api_instance.audio_sas(apiecoKey, projectid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AudiosApi->audioSAS: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


createAudio

Create Audio


/v8/projects/{projectid}/audios

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/v8/projects/{projectid}/audios"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AudiosApi;

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

public class AudiosApiExample {

    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");

        AudiosApi apiInstance = new AudiosApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        Body_11 body = ; // Body_11 | 
        try {
            inline_response_200_15 result = apiInstance.createAudio(apiecoKey, projectid, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AudiosApi#createAudio");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AudiosApi;

public class AudiosApiExample {

    public static void main(String[] args) {
        AudiosApi apiInstance = new AudiosApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        Body_11 body = ; // Body_11 | 
        try {
            inline_response_200_15 result = apiInstance.createAudio(apiecoKey, projectid, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AudiosApi#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; // 
String *projectid = projectid_example; // 
Body_11 *body = ; // 

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

[apiInstance createAudioWith:apiecoKey
    projectid:projectid
    body:body
              completionHandler: ^(inline_response_200_15 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.AudiosApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_example; // {String} 

var body = ; // {Body_11} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createAudio(apiecoKey, projectid, body, 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 AudiosApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 
            var body = new Body_11(); // Body_11 | 

            try
            {
                inline_response_200_15 result = apiInstance.createAudio(apiecoKey, projectid, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AudiosApi.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\AudiosApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 
$body = ; // Body_11 | 

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

# 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::AudiosApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 
my $body = WWW::SwaggerClient::Object::Body_11->new(); # Body_11 | 

eval { 
    my $result = $api_instance->createAudio(apiecoKey => $apiecoKey, projectid => $projectid, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AudiosApi->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.AudiosApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 
body =  # Body_11 | 

try: 
    api_response = api_instance.create_audio(apiecoKey, projectid, body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AudiosApi->createAudio: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


deleteDudio


/v8/projects/{projectid}/audios/{audioid}

Usage and SDK Samples

curl -X DELETE -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/v8/projects/{projectid}/audios/{audioid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AudiosApi;

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

public class AudiosApiExample {

    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");

        AudiosApi apiInstance = new AudiosApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String audioid = audioid_example; // String | 
        try {
            inline_response_200_3_data result = apiInstance.deleteDudio(apiecoKey, projectid, audioid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AudiosApi#deleteDudio");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AudiosApi;

public class AudiosApiExample {

    public static void main(String[] args) {
        AudiosApi apiInstance = new AudiosApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String audioid = audioid_example; // String | 
        try {
            inline_response_200_3_data result = apiInstance.deleteDudio(apiecoKey, projectid, audioid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AudiosApi#deleteDudio");
            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 *projectid = projectid_example; // 
String *audioid = audioid_example; // 

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

[apiInstance deleteDudioWith:apiecoKey
    projectid:projectid
    audioid:audioid
              completionHandler: ^(inline_response_200_3_data output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.AudiosApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_example; // {String} 

var audioid = audioid_example; // {String} 


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

namespace Example
{
    public class deleteDudioExample
    {
        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 AudiosApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 
            var audioid = audioid_example;  // String | 

            try
            {
                inline_response_200_3_data result = apiInstance.deleteDudio(apiecoKey, projectid, audioid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AudiosApi.deleteDudio: " + 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\AudiosApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 
$audioid = audioid_example; // String | 

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

# 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::AudiosApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 
my $audioid = audioid_example; # String | 

eval { 
    my $result = $api_instance->deleteDudio(apiecoKey => $apiecoKey, projectid => $projectid, audioid => $audioid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AudiosApi->deleteDudio: $@\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.AudiosApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 
audioid = audioid_example # String | 

try: 
    api_response = api_instance.delete_dudio(apiecoKey, projectid, audioid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AudiosApi->deleteDudio: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
audioid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


getAudioByID


/v8/projects/{projectid}/audios/{audioid}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/v8/projects/{projectid}/audios/{audioid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AudiosApi;

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

public class AudiosApiExample {

    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");

        AudiosApi apiInstance = new AudiosApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String audioid = audioid_example; // String | 
        try {
            inline_response_200_15 result = apiInstance.getAudioByID(apiecoKey, projectid, audioid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AudiosApi#getAudioByID");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AudiosApi;

public class AudiosApiExample {

    public static void main(String[] args) {
        AudiosApi apiInstance = new AudiosApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String audioid = audioid_example; // String | 
        try {
            inline_response_200_15 result = apiInstance.getAudioByID(apiecoKey, projectid, audioid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AudiosApi#getAudioByID");
            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 *projectid = projectid_example; // 
String *audioid = audioid_example; // 

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

[apiInstance getAudioByIDWith:apiecoKey
    projectid:projectid
    audioid:audioid
              completionHandler: ^(inline_response_200_15 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.AudiosApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_example; // {String} 

var audioid = audioid_example; // {String} 


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

namespace Example
{
    public class getAudioByIDExample
    {
        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 AudiosApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 
            var audioid = audioid_example;  // String | 

            try
            {
                inline_response_200_15 result = apiInstance.getAudioByID(apiecoKey, projectid, audioid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AudiosApi.getAudioByID: " + 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\AudiosApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 
$audioid = audioid_example; // String | 

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

# 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::AudiosApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 
my $audioid = audioid_example; # String | 

eval { 
    my $result = $api_instance->getAudioByID(apiecoKey => $apiecoKey, projectid => $projectid, audioid => $audioid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AudiosApi->getAudioByID: $@\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.AudiosApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 
audioid = audioid_example # String | 

try: 
    api_response = api_instance.get_audio_by_id(apiecoKey, projectid, audioid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AudiosApi->getAudioByID: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
audioid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


listAudios


/v8/projects/{projectid}/audios

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/v8/projects/{projectid}/audios"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AudiosApi;

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

public class AudiosApiExample {

    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");

        AudiosApi apiInstance = new AudiosApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        try {
            inline_response_200_15 result = apiInstance.listAudios(apiecoKey, projectid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AudiosApi#listAudios");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AudiosApi;

public class AudiosApiExample {

    public static void main(String[] args) {
        AudiosApi apiInstance = new AudiosApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        try {
            inline_response_200_15 result = apiInstance.listAudios(apiecoKey, projectid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AudiosApi#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; // 
String *projectid = projectid_example; // 

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

[apiInstance listAudiosWith:apiecoKey
    projectid:projectid
              completionHandler: ^(inline_response_200_15 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.AudiosApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_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, projectid, 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 AudiosApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 

            try
            {
                inline_response_200_15 result = apiInstance.listAudios(apiecoKey, projectid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AudiosApi.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\AudiosApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 

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

# 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::AudiosApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 

eval { 
    my $result = $api_instance->listAudios(apiecoKey => $apiecoKey, projectid => $projectid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AudiosApi->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.AudiosApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 

try: 
    api_response = api_instance.list_audios(apiecoKey, projectid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AudiosApi->listAudios: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


Channels

addChannels

Create a new channel


/v8/projects/{projectid}/channels

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/v8/projects/{projectid}/channels"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChannelsApi;

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

public class ChannelsApiExample {

    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");

        ChannelsApi apiInstance = new ChannelsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        Channel channel = ; // Channel | 
        try {
            inline_response_200_5 result = apiInstance.addChannels(apiecoKey, projectid, channel);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelsApi#addChannels");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChannelsApi;

public class ChannelsApiExample {

    public static void main(String[] args) {
        ChannelsApi apiInstance = new ChannelsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        Channel channel = ; // Channel | 
        try {
            inline_response_200_5 result = apiInstance.addChannels(apiecoKey, projectid, channel);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelsApi#addChannels");
            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 *projectid = projectid_example; // 
Channel *channel = ; //  (optional)

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

[apiInstance addChannelsWith:apiecoKey
    projectid:projectid
    channel:channel
              completionHandler: ^(inline_response_200_5 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.ChannelsApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_example; // {String} 

var opts = { 
  'channel':  // {Channel} 
};

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

namespace Example
{
    public class addChannelsExample
    {
        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 ChannelsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 
            var channel = new Channel(); // Channel |  (optional) 

            try
            {
                inline_response_200_5 result = apiInstance.addChannels(apiecoKey, projectid, channel);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChannelsApi.addChannels: " + 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\ChannelsApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 
$channel = ; // Channel | 

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

# 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::ChannelsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 
my $channel = WWW::SwaggerClient::Object::Channel->new(); # Channel | 

eval { 
    my $result = $api_instance->addChannels(apiecoKey => $apiecoKey, projectid => $projectid, channel => $channel);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChannelsApi->addChannels: $@\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.ChannelsApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 
channel =  # Channel |  (optional)

try: 
    api_response = api_instance.add_channels(apiecoKey, projectid, channel=channel)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChannelsApi->addChannels: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required
Body parameters
Name Description
channel

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


channelByID

Retrieve information about a specific channel


/v8/projects/{projectid}/channels/{channelid}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/v8/projects/{projectid}/channels/{channelid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChannelsApi;

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

public class ChannelsApiExample {

    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");

        ChannelsApi apiInstance = new ChannelsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String channelid = channelid_example; // String | 
        try {
            inline_response_200_5 result = apiInstance.channelByID(apiecoKey, projectid, channelid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelsApi#channelByID");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChannelsApi;

public class ChannelsApiExample {

    public static void main(String[] args) {
        ChannelsApi apiInstance = new ChannelsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String channelid = channelid_example; // String | 
        try {
            inline_response_200_5 result = apiInstance.channelByID(apiecoKey, projectid, channelid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelsApi#channelByID");
            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 *projectid = projectid_example; // 
String *channelid = channelid_example; // 

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

[apiInstance channelByIDWith:apiecoKey
    projectid:projectid
    channelid:channelid
              completionHandler: ^(inline_response_200_5 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.ChannelsApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_example; // {String} 

var channelid = channelid_example; // {String} 


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

namespace Example
{
    public class channelByIDExample
    {
        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 ChannelsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 
            var channelid = channelid_example;  // String | 

            try
            {
                inline_response_200_5 result = apiInstance.channelByID(apiecoKey, projectid, channelid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChannelsApi.channelByID: " + 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\ChannelsApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 
$channelid = channelid_example; // String | 

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

# 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::ChannelsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 
my $channelid = channelid_example; # String | 

eval { 
    my $result = $api_instance->channelByID(apiecoKey => $apiecoKey, projectid => $projectid, channelid => $channelid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChannelsApi->channelByID: $@\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.ChannelsApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 
channelid = channelid_example # String | 

try: 
    api_response = api_instance.channel_by_id(apiecoKey, projectid, channelid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChannelsApi->channelByID: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
channelid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


createSourceFeed

Set a new source feed to the feed channel


/v8/projects/{projectid}/channels/{channelid}/feeds

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/v8/projects/{projectid}/channels/{channelid}/feeds"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChannelsApi;

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

public class ChannelsApiExample {

    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");

        ChannelsApi apiInstance = new ChannelsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String channelid = channelid_example; // String | 
        Channel_2 channel = ; // Channel_2 | 
        try {
            inline_response_200_5 result = apiInstance.createSourceFeed(apiecoKey, projectid, channelid, channel);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelsApi#createSourceFeed");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChannelsApi;

public class ChannelsApiExample {

    public static void main(String[] args) {
        ChannelsApi apiInstance = new ChannelsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String channelid = channelid_example; // String | 
        Channel_2 channel = ; // Channel_2 | 
        try {
            inline_response_200_5 result = apiInstance.createSourceFeed(apiecoKey, projectid, channelid, channel);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelsApi#createSourceFeed");
            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 *projectid = projectid_example; // 
String *channelid = channelid_example; // 
Channel_2 *channel = ; //  (optional)

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

[apiInstance createSourceFeedWith:apiecoKey
    projectid:projectid
    channelid:channelid
    channel:channel
              completionHandler: ^(inline_response_200_5 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.ChannelsApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_example; // {String} 

var channelid = channelid_example; // {String} 

var opts = { 
  'channel':  // {Channel_2} 
};

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

namespace Example
{
    public class createSourceFeedExample
    {
        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 ChannelsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 
            var channelid = channelid_example;  // String | 
            var channel = new Channel_2(); // Channel_2 |  (optional) 

            try
            {
                inline_response_200_5 result = apiInstance.createSourceFeed(apiecoKey, projectid, channelid, channel);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChannelsApi.createSourceFeed: " + 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\ChannelsApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 
$channelid = channelid_example; // String | 
$channel = ; // Channel_2 | 

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

# 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::ChannelsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 
my $channelid = channelid_example; # String | 
my $channel = WWW::SwaggerClient::Object::Channel_2->new(); # Channel_2 | 

eval { 
    my $result = $api_instance->createSourceFeed(apiecoKey => $apiecoKey, projectid => $projectid, channelid => $channelid, channel => $channel);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChannelsApi->createSourceFeed: $@\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.ChannelsApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 
channelid = channelid_example # String | 
channel =  # Channel_2 |  (optional)

try: 
    api_response = api_instance.create_source_feed(apiecoKey, projectid, channelid, channel=channel)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChannelsApi->createSourceFeed: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
channelid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required
Body parameters
Name Description
channel

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


deleteChannel

Delete a channel


/v8/projects/{projectid}/channels/{channelid}

Usage and SDK Samples

curl -X DELETE -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/v8/projects/{projectid}/channels/{channelid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChannelsApi;

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

public class ChannelsApiExample {

    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");

        ChannelsApi apiInstance = new ChannelsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String channelid = channelid_example; // String | 
        try {
            inline_response_200_3 result = apiInstance.deleteChannel(apiecoKey, projectid, channelid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelsApi#deleteChannel");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChannelsApi;

public class ChannelsApiExample {

    public static void main(String[] args) {
        ChannelsApi apiInstance = new ChannelsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String channelid = channelid_example; // String | 
        try {
            inline_response_200_3 result = apiInstance.deleteChannel(apiecoKey, projectid, channelid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelsApi#deleteChannel");
            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 *projectid = projectid_example; // 
String *channelid = channelid_example; // 

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

[apiInstance deleteChannelWith:apiecoKey
    projectid:projectid
    channelid:channelid
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.ChannelsApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_example; // {String} 

var channelid = channelid_example; // {String} 


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

namespace Example
{
    public class deleteChannelExample
    {
        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 ChannelsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 
            var channelid = channelid_example;  // String | 

            try
            {
                inline_response_200_3 result = apiInstance.deleteChannel(apiecoKey, projectid, channelid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChannelsApi.deleteChannel: " + 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\ChannelsApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 
$channelid = channelid_example; // String | 

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

# 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::ChannelsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 
my $channelid = channelid_example; # String | 

eval { 
    my $result = $api_instance->deleteChannel(apiecoKey => $apiecoKey, projectid => $projectid, channelid => $channelid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChannelsApi->deleteChannel: $@\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.ChannelsApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 
channelid = channelid_example # String | 

try: 
    api_response = api_instance.delete_channel(apiecoKey, projectid, channelid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChannelsApi->deleteChannel: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
channelid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


deleteSourceFeed

Delete a source feed from the specified channel


/v8/projects/{projectid}/channels/{channelid}/feeds/{feedid}

Usage and SDK Samples

curl -X DELETE -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/v8/projects/{projectid}/channels/{channelid}/feeds/{feedid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChannelsApi;

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

public class ChannelsApiExample {

    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");

        ChannelsApi apiInstance = new ChannelsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String channelid = channelid_example; // String | 
        String feedid = feedid_example; // String | 
        try {
            inline_response_200_3_data result = apiInstance.deleteSourceFeed(apiecoKey, projectid, channelid, feedid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelsApi#deleteSourceFeed");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChannelsApi;

public class ChannelsApiExample {

    public static void main(String[] args) {
        ChannelsApi apiInstance = new ChannelsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String channelid = channelid_example; // String | 
        String feedid = feedid_example; // String | 
        try {
            inline_response_200_3_data result = apiInstance.deleteSourceFeed(apiecoKey, projectid, channelid, feedid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelsApi#deleteSourceFeed");
            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 *projectid = projectid_example; // 
String *channelid = channelid_example; // 
String *feedid = feedid_example; // 

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

[apiInstance deleteSourceFeedWith:apiecoKey
    projectid:projectid
    channelid:channelid
    feedid:feedid
              completionHandler: ^(inline_response_200_3_data output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.ChannelsApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_example; // {String} 

var channelid = channelid_example; // {String} 

var feedid = feedid_example; // {String} 


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

namespace Example
{
    public class deleteSourceFeedExample
    {
        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 ChannelsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 
            var channelid = channelid_example;  // String | 
            var feedid = feedid_example;  // String | 

            try
            {
                inline_response_200_3_data result = apiInstance.deleteSourceFeed(apiecoKey, projectid, channelid, feedid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChannelsApi.deleteSourceFeed: " + 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\ChannelsApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 
$channelid = channelid_example; // String | 
$feedid = feedid_example; // String | 

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

# 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::ChannelsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 
my $channelid = channelid_example; # String | 
my $feedid = feedid_example; # String | 

eval { 
    my $result = $api_instance->deleteSourceFeed(apiecoKey => $apiecoKey, projectid => $projectid, channelid => $channelid, feedid => $feedid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChannelsApi->deleteSourceFeed: $@\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.ChannelsApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 
channelid = channelid_example # String | 
feedid = feedid_example # String | 

try: 
    api_response = api_instance.delete_source_feed(apiecoKey, projectid, channelid, feedid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChannelsApi->deleteSourceFeed: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
channelid*
String
Required
feedid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


editchannel

Edit a channel


/v8/projects/{projectid}/channels/{channelid}

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/v8/projects/{projectid}/channels/{channelid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChannelsApi;

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

public class ChannelsApiExample {

    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");

        ChannelsApi apiInstance = new ChannelsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String channelid = channelid_example; // String | 
        Channel_1 channel = ; // Channel_1 | 
        try {
            inline_response_200_5 result = apiInstance.editchannel(apiecoKey, projectid, channelid, channel);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelsApi#editchannel");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChannelsApi;

public class ChannelsApiExample {

    public static void main(String[] args) {
        ChannelsApi apiInstance = new ChannelsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String channelid = channelid_example; // String | 
        Channel_1 channel = ; // Channel_1 | 
        try {
            inline_response_200_5 result = apiInstance.editchannel(apiecoKey, projectid, channelid, channel);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelsApi#editchannel");
            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 *projectid = projectid_example; // 
String *channelid = channelid_example; // 
Channel_1 *channel = ; //  (optional)

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

[apiInstance editchannelWith:apiecoKey
    projectid:projectid
    channelid:channelid
    channel:channel
              completionHandler: ^(inline_response_200_5 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.ChannelsApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_example; // {String} 

var channelid = channelid_example; // {String} 

var opts = { 
  'channel':  // {Channel_1} 
};

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

namespace Example
{
    public class editchannelExample
    {
        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 ChannelsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 
            var channelid = channelid_example;  // String | 
            var channel = new Channel_1(); // Channel_1 |  (optional) 

            try
            {
                inline_response_200_5 result = apiInstance.editchannel(apiecoKey, projectid, channelid, channel);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChannelsApi.editchannel: " + 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\ChannelsApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 
$channelid = channelid_example; // String | 
$channel = ; // Channel_1 | 

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

# 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::ChannelsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 
my $channelid = channelid_example; # String | 
my $channel = WWW::SwaggerClient::Object::Channel_1->new(); # Channel_1 | 

eval { 
    my $result = $api_instance->editchannel(apiecoKey => $apiecoKey, projectid => $projectid, channelid => $channelid, channel => $channel);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChannelsApi->editchannel: $@\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.ChannelsApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 
channelid = channelid_example # String | 
channel =  # Channel_1 |  (optional)

try: 
    api_response = api_instance.editchannel(apiecoKey, projectid, channelid, channel=channel)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChannelsApi->editchannel: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
channelid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required
Body parameters
Name Description
channel

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


listChannels

List of feed channels


/v8/projects/{projectid}/channels

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/v8/projects/{projectid}/channels"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChannelsApi;

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

public class ChannelsApiExample {

    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");

        ChannelsApi apiInstance = new ChannelsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        try {
            inline_response_200_5 result = apiInstance.listChannels(apiecoKey, projectid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelsApi#listChannels");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChannelsApi;

public class ChannelsApiExample {

    public static void main(String[] args) {
        ChannelsApi apiInstance = new ChannelsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        try {
            inline_response_200_5 result = apiInstance.listChannels(apiecoKey, projectid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelsApi#listChannels");
            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 *projectid = projectid_example; // 

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

[apiInstance listChannelsWith:apiecoKey
    projectid:projectid
              completionHandler: ^(inline_response_200_5 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.ChannelsApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_example; // {String} 


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

namespace Example
{
    public class listChannelsExample
    {
        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 ChannelsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 

            try
            {
                inline_response_200_5 result = apiInstance.listChannels(apiecoKey, projectid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChannelsApi.listChannels: " + 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\ChannelsApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 

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

# 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::ChannelsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 

eval { 
    my $result = $api_instance->listChannels(apiecoKey => $apiecoKey, projectid => $projectid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChannelsApi->listChannels: $@\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.ChannelsApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 

try: 
    api_response = api_instance.list_channels(apiecoKey, projectid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChannelsApi->listChannels: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


sourceFeedByChannel

List of source feeds set in the specified channel


/v8/projects/{projectid}/channels/{channelid}/feeds

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/v8/projects/{projectid}/channels/{channelid}/feeds"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChannelsApi;

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

public class ChannelsApiExample {

    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");

        ChannelsApi apiInstance = new ChannelsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String channelid = channelid_example; // String | 
        try {
            inline_response_200_6 result = apiInstance.sourceFeedByChannel(apiecoKey, projectid, channelid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelsApi#sourceFeedByChannel");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChannelsApi;

public class ChannelsApiExample {

    public static void main(String[] args) {
        ChannelsApi apiInstance = new ChannelsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String channelid = channelid_example; // String | 
        try {
            inline_response_200_6 result = apiInstance.sourceFeedByChannel(apiecoKey, projectid, channelid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelsApi#sourceFeedByChannel");
            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 *projectid = projectid_example; // 
String *channelid = channelid_example; // 

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

[apiInstance sourceFeedByChannelWith:apiecoKey
    projectid:projectid
    channelid:channelid
              completionHandler: ^(inline_response_200_6 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.ChannelsApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_example; // {String} 

var channelid = channelid_example; // {String} 


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

namespace Example
{
    public class sourceFeedByChannelExample
    {
        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 ChannelsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 
            var channelid = channelid_example;  // String | 

            try
            {
                inline_response_200_6 result = apiInstance.sourceFeedByChannel(apiecoKey, projectid, channelid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChannelsApi.sourceFeedByChannel: " + 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\ChannelsApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 
$channelid = channelid_example; // String | 

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

# 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::ChannelsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 
my $channelid = channelid_example; # String | 

eval { 
    my $result = $api_instance->sourceFeedByChannel(apiecoKey => $apiecoKey, projectid => $projectid, channelid => $channelid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChannelsApi->sourceFeedByChannel: $@\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.ChannelsApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 
channelid = channelid_example # String | 

try: 
    api_response = api_instance.source_feed_by_channel(apiecoKey, projectid, channelid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChannelsApi->sourceFeedByChannel: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
channelid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


ChannelsItems

channelItems

Retrieve list of items in the specific channel. Items are chronologically sorted. The result contains only the items directly related to the channel. It means that for node items, their children are not returned


/v8/projects/{projectid}/channels/{channelid}/items

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/v8/projects/{projectid}/channels/{channelid}/items"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChannelsItemsApi;

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

public class ChannelsItemsApiExample {

    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");

        ChannelsItemsApi apiInstance = new ChannelsItemsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String channelid = channelid_example; // String | 
        try {
            inline_response_200_7 result = apiInstance.channelItems(apiecoKey, projectid, channelid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelsItemsApi#channelItems");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChannelsItemsApi;

public class ChannelsItemsApiExample {

    public static void main(String[] args) {
        ChannelsItemsApi apiInstance = new ChannelsItemsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String channelid = channelid_example; // String | 
        try {
            inline_response_200_7 result = apiInstance.channelItems(apiecoKey, projectid, channelid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelsItemsApi#channelItems");
            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 *projectid = projectid_example; // 
String *channelid = channelid_example; // 

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

[apiInstance channelItemsWith:apiecoKey
    projectid:projectid
    channelid:channelid
              completionHandler: ^(inline_response_200_7 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.ChannelsItemsApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_example; // {String} 

var channelid = channelid_example; // {String} 


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

namespace Example
{
    public class channelItemsExample
    {
        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 ChannelsItemsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 
            var channelid = channelid_example;  // String | 

            try
            {
                inline_response_200_7 result = apiInstance.channelItems(apiecoKey, projectid, channelid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChannelsItemsApi.channelItems: " + 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\ChannelsItemsApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 
$channelid = channelid_example; // String | 

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

# 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::ChannelsItemsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 
my $channelid = channelid_example; # String | 

eval { 
    my $result = $api_instance->channelItems(apiecoKey => $apiecoKey, projectid => $projectid, channelid => $channelid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChannelsItemsApi->channelItems: $@\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.ChannelsItemsApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 
channelid = channelid_example # String | 

try: 
    api_response = api_instance.channel_items(apiecoKey, projectid, channelid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChannelsItemsApi->channelItems: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
channelid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


channelItemsChildren

List of items that are children of the specific item


/v8/projects/{projectid}/channels/{channelid}/items/{itemid}/children

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/v8/projects/{projectid}/channels/{channelid}/items/{itemid}/children"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChannelsItemsApi;

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

public class ChannelsItemsApiExample {

    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");

        ChannelsItemsApi apiInstance = new ChannelsItemsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String channelid = channelid_example; // String | 
        String itemid = itemid_example; // String | 
        try {
            inline_response_200_8 result = apiInstance.channelItemsChildren(apiecoKey, projectid, channelid, itemid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelsItemsApi#channelItemsChildren");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChannelsItemsApi;

public class ChannelsItemsApiExample {

    public static void main(String[] args) {
        ChannelsItemsApi apiInstance = new ChannelsItemsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String channelid = channelid_example; // String | 
        String itemid = itemid_example; // String | 
        try {
            inline_response_200_8 result = apiInstance.channelItemsChildren(apiecoKey, projectid, channelid, itemid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelsItemsApi#channelItemsChildren");
            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 *projectid = projectid_example; // 
String *channelid = channelid_example; // 
String *itemid = itemid_example; // 

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

[apiInstance channelItemsChildrenWith:apiecoKey
    projectid:projectid
    channelid:channelid
    itemid:itemid
              completionHandler: ^(inline_response_200_8 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.ChannelsItemsApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_example; // {String} 

var channelid = channelid_example; // {String} 

var itemid = itemid_example; // {String} 


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

namespace Example
{
    public class channelItemsChildrenExample
    {
        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 ChannelsItemsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 
            var channelid = channelid_example;  // String | 
            var itemid = itemid_example;  // String | 

            try
            {
                inline_response_200_8 result = apiInstance.channelItemsChildren(apiecoKey, projectid, channelid, itemid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChannelsItemsApi.channelItemsChildren: " + 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\ChannelsItemsApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 
$channelid = channelid_example; // String | 
$itemid = itemid_example; // String | 

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

# 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::ChannelsItemsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 
my $channelid = channelid_example; # String | 
my $itemid = itemid_example; # String | 

eval { 
    my $result = $api_instance->channelItemsChildren(apiecoKey => $apiecoKey, projectid => $projectid, channelid => $channelid, itemid => $itemid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChannelsItemsApi->channelItemsChildren: $@\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.ChannelsItemsApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 
channelid = channelid_example # String | 
itemid = itemid_example # String | 

try: 
    api_response = api_instance.channel_items_children(apiecoKey, projectid, channelid, itemid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChannelsItemsApi->channelItemsChildren: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
channelid*
String
Required
itemid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


Issues

addIssues

Add a new Issue


/v8/projects/{projectid}/issues/{publicationid}

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/v8/projects/{projectid}/issues/{publicationid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.IssuesApi;

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

public class IssuesApiExample {

    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");

        IssuesApi apiInstance = new IssuesApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String publicationid = publicationid_example; // String | 
        Issue issue = ; // Issue | 
        try {
            inline_response_200_2 result = apiInstance.addIssues(apiecoKey, projectid, publicationid, issue);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling IssuesApi#addIssues");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.IssuesApi;

public class IssuesApiExample {

    public static void main(String[] args) {
        IssuesApi apiInstance = new IssuesApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String publicationid = publicationid_example; // String | 
        Issue issue = ; // Issue | 
        try {
            inline_response_200_2 result = apiInstance.addIssues(apiecoKey, projectid, publicationid, issue);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling IssuesApi#addIssues");
            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 *projectid = projectid_example; // 
String *publicationid = publicationid_example; // 
Issue *issue = ; // 

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

[apiInstance addIssuesWith:apiecoKey
    projectid:projectid
    publicationid:publicationid
    issue:issue
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.IssuesApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_example; // {String} 

var publicationid = publicationid_example; // {String} 

var issue = ; // {Issue} 


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

namespace Example
{
    public class addIssuesExample
    {
        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 IssuesApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 
            var publicationid = publicationid_example;  // String | 
            var issue = new Issue(); // Issue | 

            try
            {
                inline_response_200_2 result = apiInstance.addIssues(apiecoKey, projectid, publicationid, issue);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling IssuesApi.addIssues: " + 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\IssuesApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 
$publicationid = publicationid_example; // String | 
$issue = ; // Issue | 

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

# 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::IssuesApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 
my $publicationid = publicationid_example; # String | 
my $issue = WWW::SwaggerClient::Object::Issue->new(); # Issue | 

eval { 
    my $result = $api_instance->addIssues(apiecoKey => $apiecoKey, projectid => $projectid, publicationid => $publicationid, issue => $issue);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling IssuesApi->addIssues: $@\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.IssuesApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 
publicationid = publicationid_example # String | 
issue =  # Issue | 

try: 
    api_response = api_instance.add_issues(apiecoKey, projectid, publicationid, issue)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling IssuesApi->addIssues: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
publicationid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required
Body parameters
Name Description
issue *

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


deleteIssue

Delete an Issue


/v8/projects/{projectid}/issues/{publicationid}/{issueid}

Usage and SDK Samples

curl -X DELETE -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/v8/projects/{projectid}/issues/{publicationid}/{issueid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.IssuesApi;

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

public class IssuesApiExample {

    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");

        IssuesApi apiInstance = new IssuesApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String publicationid = publicationid_example; // String | 
        String issueid = issueid_example; // String | 
        try {
            inline_response_200_3 result = apiInstance.deleteIssue(apiecoKey, projectid, publicationid, issueid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling IssuesApi#deleteIssue");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.IssuesApi;

public class IssuesApiExample {

    public static void main(String[] args) {
        IssuesApi apiInstance = new IssuesApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String publicationid = publicationid_example; // String | 
        String issueid = issueid_example; // String | 
        try {
            inline_response_200_3 result = apiInstance.deleteIssue(apiecoKey, projectid, publicationid, issueid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling IssuesApi#deleteIssue");
            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 *projectid = projectid_example; // 
String *publicationid = publicationid_example; // 
String *issueid = issueid_example; // 

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

[apiInstance deleteIssueWith:apiecoKey
    projectid:projectid
    publicationid:publicationid
    issueid:issueid
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.IssuesApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_example; // {String} 

var publicationid = publicationid_example; // {String} 

var issueid = issueid_example; // {String} 


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

namespace Example
{
    public class deleteIssueExample
    {
        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 IssuesApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 
            var publicationid = publicationid_example;  // String | 
            var issueid = issueid_example;  // String | 

            try
            {
                inline_response_200_3 result = apiInstance.deleteIssue(apiecoKey, projectid, publicationid, issueid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling IssuesApi.deleteIssue: " + 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\IssuesApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 
$publicationid = publicationid_example; // String | 
$issueid = issueid_example; // String | 

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

# 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::IssuesApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 
my $publicationid = publicationid_example; # String | 
my $issueid = issueid_example; # String | 

eval { 
    my $result = $api_instance->deleteIssue(apiecoKey => $apiecoKey, projectid => $projectid, publicationid => $publicationid, issueid => $issueid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling IssuesApi->deleteIssue: $@\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.IssuesApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 
publicationid = publicationid_example # String | 
issueid = issueid_example # String | 

try: 
    api_response = api_instance.delete_issue(apiecoKey, projectid, publicationid, issueid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling IssuesApi->deleteIssue: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
publicationid*
String
Required
issueid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


issueByID

Retrieve information about a specific issue


/v8/projects/{projectid}/issues/{publicationid}/{issueid}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/v8/projects/{projectid}/issues/{publicationid}/{issueid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.IssuesApi;

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

public class IssuesApiExample {

    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");

        IssuesApi apiInstance = new IssuesApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String publicationid = publicationid_example; // String | 
        String issueid = issueid_example; // String | 
        try {
            inline_response_200_2 result = apiInstance.issueByID(apiecoKey, projectid, publicationid, issueid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling IssuesApi#issueByID");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.IssuesApi;

public class IssuesApiExample {

    public static void main(String[] args) {
        IssuesApi apiInstance = new IssuesApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String publicationid = publicationid_example; // String | 
        String issueid = issueid_example; // String | 
        try {
            inline_response_200_2 result = apiInstance.issueByID(apiecoKey, projectid, publicationid, issueid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling IssuesApi#issueByID");
            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 *projectid = projectid_example; // 
String *publicationid = publicationid_example; // 
String *issueid = issueid_example; // 

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

[apiInstance issueByIDWith:apiecoKey
    projectid:projectid
    publicationid:publicationid
    issueid:issueid
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.IssuesApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_example; // {String} 

var publicationid = publicationid_example; // {String} 

var issueid = issueid_example; // {String} 


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

namespace Example
{
    public class issueByIDExample
    {
        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 IssuesApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 
            var publicationid = publicationid_example;  // String | 
            var issueid = issueid_example;  // String | 

            try
            {
                inline_response_200_2 result = apiInstance.issueByID(apiecoKey, projectid, publicationid, issueid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling IssuesApi.issueByID: " + 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\IssuesApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 
$publicationid = publicationid_example; // String | 
$issueid = issueid_example; // String | 

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

# 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::IssuesApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 
my $publicationid = publicationid_example; # String | 
my $issueid = issueid_example; # String | 

eval { 
    my $result = $api_instance->issueByID(apiecoKey => $apiecoKey, projectid => $projectid, publicationid => $publicationid, issueid => $issueid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling IssuesApi->issueByID: $@\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.IssuesApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 
publicationid = publicationid_example # String | 
issueid = issueid_example # String | 

try: 
    api_response = api_instance.issue_by_id(apiecoKey, projectid, publicationid, issueid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling IssuesApi->issueByID: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
publicationid*
String
Required
issueid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


projectIssues

List of issues between all project's publications


/v8/projects/{projectid}/issues

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/v8/projects/{projectid}/issues"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.IssuesApi;

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

public class IssuesApiExample {

    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");

        IssuesApi apiInstance = new IssuesApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        try {
            inline_response_200_2 result = apiInstance.projectIssues(apiecoKey, projectid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling IssuesApi#projectIssues");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.IssuesApi;

public class IssuesApiExample {

    public static void main(String[] args) {
        IssuesApi apiInstance = new IssuesApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        try {
            inline_response_200_2 result = apiInstance.projectIssues(apiecoKey, projectid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling IssuesApi#projectIssues");
            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 *projectid = projectid_example; // 

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

[apiInstance projectIssuesWith:apiecoKey
    projectid:projectid
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.IssuesApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_example; // {String} 


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

namespace Example
{
    public class projectIssuesExample
    {
        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 IssuesApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 

            try
            {
                inline_response_200_2 result = apiInstance.projectIssues(apiecoKey, projectid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling IssuesApi.projectIssues: " + 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\IssuesApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 

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

# 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::IssuesApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 

eval { 
    my $result = $api_instance->projectIssues(apiecoKey => $apiecoKey, projectid => $projectid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling IssuesApi->projectIssues: $@\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.IssuesApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 

try: 
    api_response = api_instance.project_issues(apiecoKey, projectid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling IssuesApi->projectIssues: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


publicationsIssues

List of publication's issues


/v8/projects/{projectid}/issues/{publicationid}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/v8/projects/{projectid}/issues/{publicationid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.IssuesApi;

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

public class IssuesApiExample {

    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");

        IssuesApi apiInstance = new IssuesApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String publicationid = publicationid_example; // String | 
        try {
            inline_response_200_2 result = apiInstance.publicationsIssues(apiecoKey, projectid, publicationid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling IssuesApi#publicationsIssues");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.IssuesApi;

public class IssuesApiExample {

    public static void main(String[] args) {
        IssuesApi apiInstance = new IssuesApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String publicationid = publicationid_example; // String | 
        try {
            inline_response_200_2 result = apiInstance.publicationsIssues(apiecoKey, projectid, publicationid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling IssuesApi#publicationsIssues");
            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 *projectid = projectid_example; // 
String *publicationid = publicationid_example; // 

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

[apiInstance publicationsIssuesWith:apiecoKey
    projectid:projectid
    publicationid:publicationid
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.IssuesApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_example; // {String} 

var publicationid = publicationid_example; // {String} 


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

namespace Example
{
    public class publicationsIssuesExample
    {
        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 IssuesApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 
            var publicationid = publicationid_example;  // String | 

            try
            {
                inline_response_200_2 result = apiInstance.publicationsIssues(apiecoKey, projectid, publicationid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling IssuesApi.publicationsIssues: " + 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\IssuesApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 
$publicationid = publicationid_example; // String | 

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

# 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::IssuesApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 
my $publicationid = publicationid_example; # String | 

eval { 
    my $result = $api_instance->publicationsIssues(apiecoKey => $apiecoKey, projectid => $projectid, publicationid => $publicationid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling IssuesApi->publicationsIssues: $@\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.IssuesApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 
publicationid = publicationid_example # String | 

try: 
    api_response = api_instance.publications_issues(apiecoKey, projectid, publicationid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling IssuesApi->publicationsIssues: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
publicationid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


Login

login

Request the user's token to access to APIs


/v8/users/token/get

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/v8/users/token/get"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LoginApi;

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

public class LoginApiExample {

    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");

        LoginApi apiInstance = new LoginApi();
        String apiecoKey = apiecoKey_example; // String | 
        Body_1 body = ; // Body_1 | 
        try {
            inline_response_200 result = apiInstance.login(apiecoKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LoginApi#login");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LoginApi;

public class LoginApiExample {

    public static void main(String[] args) {
        LoginApi apiInstance = new LoginApi();
        String apiecoKey = apiecoKey_example; // String | 
        Body_1 body = ; // Body_1 | 
        try {
            inline_response_200 result = apiInstance.login(apiecoKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LoginApi#login");
            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; // 
Body_1 *body = ; // 

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

[apiInstance loginWith:apiecoKey
    body:body
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.LoginApi()

var apiecoKey = apiecoKey_example; // {String} 

var body = ; // {Body_1} 


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

namespace Example
{
    public class loginExample
    {
        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 LoginApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var body = new Body_1(); // Body_1 | 

            try
            {
                inline_response_200 result = apiInstance.login(apiecoKey, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LoginApi.login: " + 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\LoginApi();
$apiecoKey = apiecoKey_example; // String | 
$body = ; // Body_1 | 

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

# 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::LoginApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $body = WWW::SwaggerClient::Object::Body_1->new(); # Body_1 | 

eval { 
    my $result = $api_instance->login(apiecoKey => $apiecoKey, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LoginApi->login: $@\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.LoginApi()
apiecoKey = apiecoKey_example # String | 
body =  # Body_1 | 

try: 
    api_response = api_instance.login(apiecoKey, body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LoginApi->login: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


PaperlitStore

listTransactions

Validate and register purchases from App Store and Google Play


/projects/{projectid}/app-accounts/{paperlitid}/store/transactions

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/projects/{projectid}/app-accounts/{paperlitid}/store/transactions"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PaperlitStoreApi;

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

public class PaperlitStoreApiExample {

    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");

        PaperlitStoreApi apiInstance = new PaperlitStoreApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String paperlitid = paperlitid_example; // String | 
        try {
            inline_response_200_11 result = apiInstance.listTransactions(apiecoKey, projectid, paperlitid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaperlitStoreApi#listTransactions");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PaperlitStoreApi;

public class PaperlitStoreApiExample {

    public static void main(String[] args) {
        PaperlitStoreApi apiInstance = new PaperlitStoreApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String paperlitid = paperlitid_example; // String | 
        try {
            inline_response_200_11 result = apiInstance.listTransactions(apiecoKey, projectid, paperlitid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaperlitStoreApi#listTransactions");
            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 *projectid = projectid_example; // 
String *paperlitid = paperlitid_example; // 

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

[apiInstance listTransactionsWith:apiecoKey
    projectid:projectid
    paperlitid:paperlitid
              completionHandler: ^(inline_response_200_11 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.PaperlitStoreApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_example; // {String} 

var paperlitid = paperlitid_example; // {String} 


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

namespace Example
{
    public class listTransactionsExample
    {
        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 PaperlitStoreApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 
            var paperlitid = paperlitid_example;  // String | 

            try
            {
                inline_response_200_11 result = apiInstance.listTransactions(apiecoKey, projectid, paperlitid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PaperlitStoreApi.listTransactions: " + 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\PaperlitStoreApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 
$paperlitid = paperlitid_example; // String | 

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

# 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::PaperlitStoreApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 
my $paperlitid = paperlitid_example; # String | 

eval { 
    my $result = $api_instance->listTransactions(apiecoKey => $apiecoKey, projectid => $projectid, paperlitid => $paperlitid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PaperlitStoreApi->listTransactions: $@\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.PaperlitStoreApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 
paperlitid = paperlitid_example # String | 

try: 
    api_response = api_instance.list_transactions(apiecoKey, projectid, paperlitid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PaperlitStoreApi->listTransactions: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
paperlitid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


productsList

List of subscription products


/projects/{projectid}/products

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/projects/{projectid}/products"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PaperlitStoreApi;

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

public class PaperlitStoreApiExample {

    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");

        PaperlitStoreApi apiInstance = new PaperlitStoreApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        try {
            inline_response_200_12 result = apiInstance.productsList(apiecoKey, projectid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaperlitStoreApi#productsList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PaperlitStoreApi;

public class PaperlitStoreApiExample {

    public static void main(String[] args) {
        PaperlitStoreApi apiInstance = new PaperlitStoreApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        try {
            inline_response_200_12 result = apiInstance.productsList(apiecoKey, projectid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaperlitStoreApi#productsList");
            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 *projectid = projectid_example; // 

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

[apiInstance productsListWith:apiecoKey
    projectid:projectid
              completionHandler: ^(inline_response_200_12 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.PaperlitStoreApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_example; // {String} 


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

namespace Example
{
    public class productsListExample
    {
        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 PaperlitStoreApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 

            try
            {
                inline_response_200_12 result = apiInstance.productsList(apiecoKey, projectid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PaperlitStoreApi.productsList: " + 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\PaperlitStoreApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 

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

# 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::PaperlitStoreApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 

eval { 
    my $result = $api_instance->productsList(apiecoKey => $apiecoKey, projectid => $projectid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PaperlitStoreApi->productsList: $@\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.PaperlitStoreApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 

try: 
    api_response = api_instance.products_list(apiecoKey, projectid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PaperlitStoreApi->productsList: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


registerTransactions

Register transactions made in other stores or related to offline subscriptions


/projects/{projectid}/store/transaction

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/projects/{projectid}/store/transaction"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PaperlitStoreApi;

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

public class PaperlitStoreApiExample {

    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");

        PaperlitStoreApi apiInstance = new PaperlitStoreApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        Body_5 body = ; // Body_5 | 
        try {
            inline_response_200_3 result = apiInstance.registerTransactions(apiecoKey, projectid, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaperlitStoreApi#registerTransactions");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PaperlitStoreApi;

public class PaperlitStoreApiExample {

    public static void main(String[] args) {
        PaperlitStoreApi apiInstance = new PaperlitStoreApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        Body_5 body = ; // Body_5 | 
        try {
            inline_response_200_3 result = apiInstance.registerTransactions(apiecoKey, projectid, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaperlitStoreApi#registerTransactions");
            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 *projectid = projectid_example; // 
Body_5 *body = ; //  (optional)

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

[apiInstance registerTransactionsWith:apiecoKey
    projectid:projectid
    body:body
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.PaperlitStoreApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_example; // {String} 

var opts = { 
  'body':  // {Body_5} 
};

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

namespace Example
{
    public class registerTransactionsExample
    {
        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 PaperlitStoreApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 
            var body = new Body_5(); // Body_5 |  (optional) 

            try
            {
                inline_response_200_3 result = apiInstance.registerTransactions(apiecoKey, projectid, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PaperlitStoreApi.registerTransactions: " + 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\PaperlitStoreApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 
$body = ; // Body_5 | 

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

# 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::PaperlitStoreApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 
my $body = WWW::SwaggerClient::Object::Body_5->new(); # Body_5 | 

eval { 
    my $result = $api_instance->registerTransactions(apiecoKey => $apiecoKey, projectid => $projectid, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PaperlitStoreApi->registerTransactions: $@\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.PaperlitStoreApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 
body =  # Body_5 |  (optional)

try: 
    api_response = api_instance.register_transactions(apiecoKey, projectid, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PaperlitStoreApi->registerTransactions: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required
Body parameters
Name Description
body

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


transactionsByDevice

Transactions based on device id specifications


/v8/projects/{projectid}/devices/{deviceid}/store/transactions

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/v8/projects/{projectid}/devices/{deviceid}/store/transactions"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PaperlitStoreApi;

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

public class PaperlitStoreApiExample {

    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");

        PaperlitStoreApi apiInstance = new PaperlitStoreApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String deviceid = deviceid_example; // String | 
        try {
            inline_response_200_13 result = apiInstance.transactionsByDevice(apiecoKey, projectid, deviceid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaperlitStoreApi#transactionsByDevice");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PaperlitStoreApi;

public class PaperlitStoreApiExample {

    public static void main(String[] args) {
        PaperlitStoreApi apiInstance = new PaperlitStoreApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String deviceid = deviceid_example; // String | 
        try {
            inline_response_200_13 result = apiInstance.transactionsByDevice(apiecoKey, projectid, deviceid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaperlitStoreApi#transactionsByDevice");
            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 *projectid = projectid_example; // 
String *deviceid = deviceid_example; // 

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

[apiInstance transactionsByDeviceWith:apiecoKey
    projectid:projectid
    deviceid:deviceid
              completionHandler: ^(inline_response_200_13 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.PaperlitStoreApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_example; // {String} 

var deviceid = deviceid_example; // {String} 


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

namespace Example
{
    public class transactionsByDeviceExample
    {
        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 PaperlitStoreApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 
            var deviceid = deviceid_example;  // String | 

            try
            {
                inline_response_200_13 result = apiInstance.transactionsByDevice(apiecoKey, projectid, deviceid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PaperlitStoreApi.transactionsByDevice: " + 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\PaperlitStoreApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 
$deviceid = deviceid_example; // String | 

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

# 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::PaperlitStoreApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 
my $deviceid = deviceid_example; # String | 

eval { 
    my $result = $api_instance->transactionsByDevice(apiecoKey => $apiecoKey, projectid => $projectid, deviceid => $deviceid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PaperlitStoreApi->transactionsByDevice: $@\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.PaperlitStoreApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 
deviceid = deviceid_example # String | 

try: 
    api_response = api_instance.transactions_by_device(apiecoKey, projectid, deviceid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PaperlitStoreApi->transactionsByDevice: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
deviceid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


validatePurchase

Validate and register purchases from App Store and Google Play


/projects/{projectid}/store/receipt

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/projects/{projectid}/store/receipt"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PaperlitStoreApi;

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

public class PaperlitStoreApiExample {

    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");

        PaperlitStoreApi apiInstance = new PaperlitStoreApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        Body_6 body = ; // Body_6 | 
        try {
            inline_response_200_11 result = apiInstance.validatePurchase(apiecoKey, projectid, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaperlitStoreApi#validatePurchase");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PaperlitStoreApi;

public class PaperlitStoreApiExample {

    public static void main(String[] args) {
        PaperlitStoreApi apiInstance = new PaperlitStoreApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        Body_6 body = ; // Body_6 | 
        try {
            inline_response_200_11 result = apiInstance.validatePurchase(apiecoKey, projectid, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaperlitStoreApi#validatePurchase");
            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 *projectid = projectid_example; // 
Body_6 *body = ; //  (optional)

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

[apiInstance validatePurchaseWith:apiecoKey
    projectid:projectid
    body:body
              completionHandler: ^(inline_response_200_11 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.PaperlitStoreApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_example; // {String} 

var opts = { 
  'body':  // {Body_6} 
};

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

namespace Example
{
    public class validatePurchaseExample
    {
        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 PaperlitStoreApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 
            var body = new Body_6(); // Body_6 |  (optional) 

            try
            {
                inline_response_200_11 result = apiInstance.validatePurchase(apiecoKey, projectid, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PaperlitStoreApi.validatePurchase: " + 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\PaperlitStoreApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 
$body = ; // Body_6 | 

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

# 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::PaperlitStoreApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 
my $body = WWW::SwaggerClient::Object::Body_6->new(); # Body_6 | 

eval { 
    my $result = $api_instance->validatePurchase(apiecoKey => $apiecoKey, projectid => $projectid, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PaperlitStoreApi->validatePurchase: $@\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.PaperlitStoreApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 
body =  # Body_6 |  (optional)

try: 
    api_response = api_instance.validate_purchase(apiecoKey, projectid, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PaperlitStoreApi->validatePurchase: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required
Body parameters
Name Description
body

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


Plans

addPlan

Add Plan


/v8/plans

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/v8/plans"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PlansApi;

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

public class PlansApiExample {

    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");

        PlansApi apiInstance = new PlansApi();
        String apiecoKey = apiecoKey_example; // String | 
        Body_8 body = ; // Body_8 | 
        try {
            inline_response_200_14 result = apiInstance.addPlan(apiecoKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlansApi#addPlan");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PlansApi;

public class PlansApiExample {

    public static void main(String[] args) {
        PlansApi apiInstance = new PlansApi();
        String apiecoKey = apiecoKey_example; // String | 
        Body_8 body = ; // Body_8 | 
        try {
            inline_response_200_14 result = apiInstance.addPlan(apiecoKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlansApi#addPlan");
            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; // 
Body_8 *body = ; //  (optional)

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

[apiInstance addPlanWith:apiecoKey
    body:body
              completionHandler: ^(inline_response_200_14 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.PlansApi()

var apiecoKey = apiecoKey_example; // {String} 

var opts = { 
  'body':  // {Body_8} 
};

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

namespace Example
{
    public class addPlanExample
    {
        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 PlansApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var body = new Body_8(); // Body_8 |  (optional) 

            try
            {
                inline_response_200_14 result = apiInstance.addPlan(apiecoKey, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PlansApi.addPlan: " + 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\PlansApi();
$apiecoKey = apiecoKey_example; // String | 
$body = ; // Body_8 | 

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

# 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::PlansApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $body = WWW::SwaggerClient::Object::Body_8->new(); # Body_8 | 

eval { 
    my $result = $api_instance->addPlan(apiecoKey => $apiecoKey, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PlansApi->addPlan: $@\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.PlansApi()
apiecoKey = apiecoKey_example # String | 
body =  # Body_8 |  (optional)

try: 
    api_response = api_instance.add_plan(apiecoKey, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PlansApi->addPlan: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Body parameters
Name Description
body

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


addPlanPurchase

Add Plan Purchase


/v8/projects/{projectid}/plans

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/v8/projects/{projectid}/plans"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PlansApi;

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

public class PlansApiExample {

    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");

        PlansApi apiInstance = new PlansApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        Body_9 body = ; // Body_9 | 
        try {
            inline_response_200_14 result = apiInstance.addPlanPurchase(apiecoKey, projectid, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlansApi#addPlanPurchase");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PlansApi;

public class PlansApiExample {

    public static void main(String[] args) {
        PlansApi apiInstance = new PlansApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        Body_9 body = ; // Body_9 | 
        try {
            inline_response_200_14 result = apiInstance.addPlanPurchase(apiecoKey, projectid, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlansApi#addPlanPurchase");
            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 *projectid = projectid_example; // 
Body_9 *body = ; //  (optional)

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

[apiInstance addPlanPurchaseWith:apiecoKey
    projectid:projectid
    body:body
              completionHandler: ^(inline_response_200_14 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.PlansApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_example; // {String} 

var opts = { 
  'body':  // {Body_9} 
};

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

namespace Example
{
    public class addPlanPurchaseExample
    {
        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 PlansApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 
            var body = new Body_9(); // Body_9 |  (optional) 

            try
            {
                inline_response_200_14 result = apiInstance.addPlanPurchase(apiecoKey, projectid, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PlansApi.addPlanPurchase: " + 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\PlansApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 
$body = ; // Body_9 | 

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

# 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::PlansApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 
my $body = WWW::SwaggerClient::Object::Body_9->new(); # Body_9 | 

eval { 
    my $result = $api_instance->addPlanPurchase(apiecoKey => $apiecoKey, projectid => $projectid, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PlansApi->addPlanPurchase: $@\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.PlansApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 
body =  # Body_9 |  (optional)

try: 
    api_response = api_instance.add_plan_purchase(apiecoKey, projectid, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PlansApi->addPlanPurchase: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required
Body parameters
Name Description
body

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


upgradePlanPurchase

Upgrade plan purchase


/v8/projects/{projectid}/plans/{planid}/upgrade

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/v8/projects/{projectid}/plans/{planid}/upgrade"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PlansApi;

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

public class PlansApiExample {

    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");

        PlansApi apiInstance = new PlansApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String planid = planid_example; // String | 
        Body_10 body = ; // Body_10 | 
        try {
            inline_response_200_14 result = apiInstance.upgradePlanPurchase(apiecoKey, projectid, planid, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlansApi#upgradePlanPurchase");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PlansApi;

public class PlansApiExample {

    public static void main(String[] args) {
        PlansApi apiInstance = new PlansApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String planid = planid_example; // String | 
        Body_10 body = ; // Body_10 | 
        try {
            inline_response_200_14 result = apiInstance.upgradePlanPurchase(apiecoKey, projectid, planid, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlansApi#upgradePlanPurchase");
            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 *projectid = projectid_example; // 
String *planid = planid_example; // 
Body_10 *body = ; //  (optional)

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

[apiInstance upgradePlanPurchaseWith:apiecoKey
    projectid:projectid
    planid:planid
    body:body
              completionHandler: ^(inline_response_200_14 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.PlansApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_example; // {String} 

var planid = planid_example; // {String} 

var opts = { 
  'body':  // {Body_10} 
};

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

namespace Example
{
    public class upgradePlanPurchaseExample
    {
        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 PlansApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 
            var planid = planid_example;  // String | 
            var body = new Body_10(); // Body_10 |  (optional) 

            try
            {
                inline_response_200_14 result = apiInstance.upgradePlanPurchase(apiecoKey, projectid, planid, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PlansApi.upgradePlanPurchase: " + 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\PlansApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 
$planid = planid_example; // String | 
$body = ; // Body_10 | 

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

# 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::PlansApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 
my $planid = planid_example; # String | 
my $body = WWW::SwaggerClient::Object::Body_10->new(); # Body_10 | 

eval { 
    my $result = $api_instance->upgradePlanPurchase(apiecoKey => $apiecoKey, projectid => $projectid, planid => $planid, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PlansApi->upgradePlanPurchase: $@\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.PlansApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 
planid = planid_example # String | 
body =  # Body_10 |  (optional)

try: 
    api_response = api_instance.upgrade_plan_purchase(apiecoKey, projectid, planid, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PlansApi->upgradePlanPurchase: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
planid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required
Body parameters
Name Description
body

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


Projects

getProjectByID

Retrieve information about the specific project


/v8/projects/{projectid}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/v8/projects/{projectid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ProjectsApi;

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

public class ProjectsApiExample {

    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");

        ProjectsApi apiInstance = new ProjectsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        try {
            inline_response_200_1 result = apiInstance.getProjectByID(apiecoKey, projectid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#getProjectByID");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ProjectsApi;

public class ProjectsApiExample {

    public static void main(String[] args) {
        ProjectsApi apiInstance = new ProjectsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        try {
            inline_response_200_1 result = apiInstance.getProjectByID(apiecoKey, projectid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#getProjectByID");
            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 *projectid = projectid_example; // 

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

[apiInstance getProjectByIDWith:apiecoKey
    projectid:projectid
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.ProjectsApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_example; // {String} 


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

namespace Example
{
    public class getProjectByIDExample
    {
        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 ProjectsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 

            try
            {
                inline_response_200_1 result = apiInstance.getProjectByID(apiecoKey, projectid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ProjectsApi.getProjectByID: " + 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\ProjectsApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 

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

# 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::ProjectsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 

eval { 
    my $result = $api_instance->getProjectByID(apiecoKey => $apiecoKey, projectid => $projectid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectsApi->getProjectByID: $@\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.ProjectsApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 

try: 
    api_response = api_instance.get_project_by_id(apiecoKey, projectid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectsApi->getProjectByID: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


listProjects

Projects that the user has access to


/v8/projects

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/v8/projects"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ProjectsApi;

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

public class ProjectsApiExample {

    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");

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

public class ProjectsApiExample {

    public static void main(String[] args) {
        ProjectsApi apiInstance = new ProjectsApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200_1 result = apiInstance.listProjects(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#listProjects");
            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; // 

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

[apiInstance listProjectsWith:apiecoKey
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.ProjectsApi()

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.listProjects(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class listProjectsExample
    {
        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 ProjectsApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                inline_response_200_1 result = apiInstance.listProjects(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ProjectsApi.listProjects: " + 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\ProjectsApi();
$apiecoKey = apiecoKey_example; // String | 

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

# 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::ProjectsApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->listProjects(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectsApi->listProjects: $@\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.ProjectsApi()
apiecoKey = apiecoKey_example # String | 

try: 
    api_response = api_instance.list_projects(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectsApi->listProjects: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


Publication

editPublication

Edit publication's informations


/v8/projects/{projectid}/publications/{publicationid}

Usage and SDK Samples

curl -X PUT -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/v8/projects/{projectid}/publications/{publicationid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicationApi;

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

public class PublicationApiExample {

    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");

        PublicationApi apiInstance = new PublicationApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String publicationid = publicationid_example; // String | 
        Body body = ; // Body | 
        try {
            inline_response_200_1 result = apiInstance.editPublication(apiecoKey, projectid, publicationid, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicationApi#editPublication");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicationApi;

public class PublicationApiExample {

    public static void main(String[] args) {
        PublicationApi apiInstance = new PublicationApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String publicationid = publicationid_example; // String | 
        Body body = ; // Body | 
        try {
            inline_response_200_1 result = apiInstance.editPublication(apiecoKey, projectid, publicationid, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicationApi#editPublication");
            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 *projectid = projectid_example; // 
String *publicationid = publicationid_example; // 
Body *body = ; // 

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

[apiInstance editPublicationWith:apiecoKey
    projectid:projectid
    publicationid:publicationid
    body:body
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.PublicationApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_example; // {String} 

var publicationid = publicationid_example; // {String} 

var body = ; // {Body} 


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

namespace Example
{
    public class editPublicationExample
    {
        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 PublicationApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 
            var publicationid = publicationid_example;  // String | 
            var body = new Body(); // Body | 

            try
            {
                inline_response_200_1 result = apiInstance.editPublication(apiecoKey, projectid, publicationid, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicationApi.editPublication: " + 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\PublicationApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 
$publicationid = publicationid_example; // String | 
$body = ; // Body | 

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

# 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::PublicationApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 
my $publicationid = publicationid_example; # String | 
my $body = WWW::SwaggerClient::Object::Body->new(); # Body | 

eval { 
    my $result = $api_instance->editPublication(apiecoKey => $apiecoKey, projectid => $projectid, publicationid => $publicationid, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicationApi->editPublication: $@\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.PublicationApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 
publicationid = publicationid_example # String | 
body =  # Body | 

try: 
    api_response = api_instance.edit_publication(apiecoKey, projectid, publicationid, body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicationApi->editPublication: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
publicationid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


getPublicationByID

Retrieve information about a specific publication


/v8/projects/{projectid}/publications/{publicationid}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/v8/projects/{projectid}/publications/{publicationid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicationApi;

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

public class PublicationApiExample {

    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");

        PublicationApi apiInstance = new PublicationApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String publicationid = publicationid_example; // String | 
        try {
            inline_response_200 result = apiInstance.getPublicationByID(apiecoKey, projectid, publicationid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicationApi#getPublicationByID");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicationApi;

public class PublicationApiExample {

    public static void main(String[] args) {
        PublicationApi apiInstance = new PublicationApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String publicationid = publicationid_example; // String | 
        try {
            inline_response_200 result = apiInstance.getPublicationByID(apiecoKey, projectid, publicationid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicationApi#getPublicationByID");
            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 *projectid = projectid_example; // 
String *publicationid = publicationid_example; // 

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

[apiInstance getPublicationByIDWith:apiecoKey
    projectid:projectid
    publicationid:publicationid
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.PublicationApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_example; // {String} 

var publicationid = publicationid_example; // {String} 


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

namespace Example
{
    public class getPublicationByIDExample
    {
        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 PublicationApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 
            var publicationid = publicationid_example;  // String | 

            try
            {
                inline_response_200 result = apiInstance.getPublicationByID(apiecoKey, projectid, publicationid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicationApi.getPublicationByID: " + 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\PublicationApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 
$publicationid = publicationid_example; // String | 

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

# 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::PublicationApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 
my $publicationid = publicationid_example; # String | 

eval { 
    my $result = $api_instance->getPublicationByID(apiecoKey => $apiecoKey, projectid => $projectid, publicationid => $publicationid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicationApi->getPublicationByID: $@\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.PublicationApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 
publicationid = publicationid_example # String | 

try: 
    api_response = api_instance.get_publication_by_id(apiecoKey, projectid, publicationid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicationApi->getPublicationByID: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
publicationid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


listPublications

List of publications included in the specified project


/v8/projects/{projectid}/publications

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/v8/projects/{projectid}/publications"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicationApi;

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

public class PublicationApiExample {

    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");

        PublicationApi apiInstance = new PublicationApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        try {
            inline_response_200_1 result = apiInstance.listPublications(apiecoKey, projectid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicationApi#listPublications");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicationApi;

public class PublicationApiExample {

    public static void main(String[] args) {
        PublicationApi apiInstance = new PublicationApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        try {
            inline_response_200_1 result = apiInstance.listPublications(apiecoKey, projectid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicationApi#listPublications");
            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 *projectid = projectid_example; // 

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

[apiInstance listPublicationsWith:apiecoKey
    projectid:projectid
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.PublicationApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_example; // {String} 


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

namespace Example
{
    public class listPublicationsExample
    {
        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 PublicationApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 

            try
            {
                inline_response_200_1 result = apiInstance.listPublications(apiecoKey, projectid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicationApi.listPublications: " + 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\PublicationApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 

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

# 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::PublicationApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 

eval { 
    my $result = $api_instance->listPublications(apiecoKey => $apiecoKey, projectid => $projectid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicationApi->listPublications: $@\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.PublicationApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 

try: 
    api_response = api_instance.list_publications(apiecoKey, projectid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicationApi->listPublications: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


Push

getPush

Create push


/v8/projects/{projectid}/push

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/v8/projects/{projectid}/push"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PushApi;

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

public class PushApiExample {

    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");

        PushApi apiInstance = new PushApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        Body_12 body = ; // Body_12 | 
        try {
            inline_response_200_18 result = apiInstance.getPush(apiecoKey, projectid, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PushApi#getPush");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PushApi;

public class PushApiExample {

    public static void main(String[] args) {
        PushApi apiInstance = new PushApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        Body_12 body = ; // Body_12 | 
        try {
            inline_response_200_18 result = apiInstance.getPush(apiecoKey, projectid, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PushApi#getPush");
            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 *projectid = projectid_example; // 
Body_12 *body = ; // 

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

[apiInstance getPushWith:apiecoKey
    projectid:projectid
    body:body
              completionHandler: ^(inline_response_200_18 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.PushApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_example; // {String} 

var body = ; // {Body_12} 


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

namespace Example
{
    public class getPushExample
    {
        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 PushApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 
            var body = new Body_12(); // Body_12 | 

            try
            {
                inline_response_200_18 result = apiInstance.getPush(apiecoKey, projectid, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PushApi.getPush: " + 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\PushApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 
$body = ; // Body_12 | 

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

# 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::PushApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 
my $body = WWW::SwaggerClient::Object::Body_12->new(); # Body_12 | 

eval { 
    my $result = $api_instance->getPush(apiecoKey => $apiecoKey, projectid => $projectid, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PushApi->getPush: $@\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.PushApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 
body =  # Body_12 | 

try: 
    api_response = api_instance.get_push(apiecoKey, projectid, body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PushApi->getPush: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


push

get Push


/v8/projects/{projectid}/push

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/v8/projects/{projectid}/push"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PushApi;

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

public class PushApiExample {

    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");

        PushApi apiInstance = new PushApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        try {
            inline_response_200_18 result = apiInstance.push(apiecoKey, projectid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PushApi#push");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PushApi;

public class PushApiExample {

    public static void main(String[] args) {
        PushApi apiInstance = new PushApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        try {
            inline_response_200_18 result = apiInstance.push(apiecoKey, projectid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PushApi#push");
            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 *projectid = projectid_example; // 

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

[apiInstance pushWith:apiecoKey
    projectid:projectid
              completionHandler: ^(inline_response_200_18 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.PushApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_example; // {String} 


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

namespace Example
{
    public class pushExample
    {
        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 PushApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 

            try
            {
                inline_response_200_18 result = apiInstance.push(apiecoKey, projectid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PushApi.push: " + 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\PushApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 

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

# 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::PushApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 

eval { 
    my $result = $api_instance->push(apiecoKey => $apiecoKey, projectid => $projectid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PushApi->push: $@\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.PushApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 

try: 
    api_response = api_instance.push(apiecoKey, projectid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PushApi->push: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


Users

projectsByUser

List Projects for User


/v8/users/{userid}/projects

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/v8/users/{userid}/projects"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UsersApi;

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

public class UsersApiExample {

    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");

        UsersApi apiInstance = new UsersApi();
        String apiecoKey = apiecoKey_example; // String | 
        String userid = userid_example; // String | 
        try {
            inline_response_200_17 result = apiInstance.projectsByUser(apiecoKey, userid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#projectsByUser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UsersApi;

public class UsersApiExample {

    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        String apiecoKey = apiecoKey_example; // String | 
        String userid = userid_example; // String | 
        try {
            inline_response_200_17 result = apiInstance.projectsByUser(apiecoKey, userid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#projectsByUser");
            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 *userid = userid_example; // 

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

[apiInstance projectsByUserWith:apiecoKey
    userid:userid
              completionHandler: ^(inline_response_200_17 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.UsersApi()

var apiecoKey = apiecoKey_example; // {String} 

var userid = userid_example; // {String} 


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

namespace Example
{
    public class projectsByUserExample
    {
        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 UsersApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var userid = userid_example;  // String | 

            try
            {
                inline_response_200_17 result = apiInstance.projectsByUser(apiecoKey, userid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UsersApi.projectsByUser: " + 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\UsersApi();
$apiecoKey = apiecoKey_example; // String | 
$userid = userid_example; // String | 

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

# 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::UsersApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $userid = userid_example; # String | 

eval { 
    my $result = $api_instance->projectsByUser(apiecoKey => $apiecoKey, userid => $userid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsersApi->projectsByUser: $@\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.UsersApi()
apiecoKey = apiecoKey_example # String | 
userid = userid_example # String | 

try: 
    api_response = api_instance.projects_by_user(apiecoKey, userid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->projectsByUser: %s\n" % e)

Parameters

Path parameters
Name Description
userid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


VariantAssets

variantAssets

List all Assets of a specific Variant of a specific Issue


/v8/projects/{projectid}/issues/{uniqueid}/variant/{variantid}/assets

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/v8/projects/{projectid}/issues/{uniqueid}/variant/{variantid}/assets"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.VariantAssetsApi;

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

public class VariantAssetsApiExample {

    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");

        VariantAssetsApi apiInstance = new VariantAssetsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String uniqueid = uniqueid_example; // String | 
        String variantid = variantid_example; // String | 
        try {
            inline_response_200_10 result = apiInstance.variantAssets(apiecoKey, projectid, uniqueid, variantid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VariantAssetsApi#variantAssets");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.VariantAssetsApi;

public class VariantAssetsApiExample {

    public static void main(String[] args) {
        VariantAssetsApi apiInstance = new VariantAssetsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String uniqueid = uniqueid_example; // String | 
        String variantid = variantid_example; // String | 
        try {
            inline_response_200_10 result = apiInstance.variantAssets(apiecoKey, projectid, uniqueid, variantid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VariantAssetsApi#variantAssets");
            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 *projectid = projectid_example; // 
String *uniqueid = uniqueid_example; // 
String *variantid = variantid_example; // 

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

[apiInstance variantAssetsWith:apiecoKey
    projectid:projectid
    uniqueid:uniqueid
    variantid:variantid
              completionHandler: ^(inline_response_200_10 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.VariantAssetsApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_example; // {String} 

var uniqueid = uniqueid_example; // {String} 

var variantid = variantid_example; // {String} 


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

namespace Example
{
    public class variantAssetsExample
    {
        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 VariantAssetsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 
            var uniqueid = uniqueid_example;  // String | 
            var variantid = variantid_example;  // String | 

            try
            {
                inline_response_200_10 result = apiInstance.variantAssets(apiecoKey, projectid, uniqueid, variantid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling VariantAssetsApi.variantAssets: " + 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\VariantAssetsApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 
$uniqueid = uniqueid_example; // String | 
$variantid = variantid_example; // String | 

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

# 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::VariantAssetsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 
my $uniqueid = uniqueid_example; # String | 
my $variantid = variantid_example; # String | 

eval { 
    my $result = $api_instance->variantAssets(apiecoKey => $apiecoKey, projectid => $projectid, uniqueid => $uniqueid, variantid => $variantid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VariantAssetsApi->variantAssets: $@\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.VariantAssetsApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 
uniqueid = uniqueid_example # String | 
variantid = variantid_example # String | 

try: 
    api_response = api_instance.variant_assets(apiecoKey, projectid, uniqueid, variantid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VariantAssetsApi->variantAssets: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
uniqueid*
String
Required
variantid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


Variants

addVariant

Add a new variant for a specific issue


/v8/projects/{projectid}/issues/{uniqueid}/variant

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/v8/projects/{projectid}/issues/{uniqueid}/variant"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.VariantsApi;

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

public class VariantsApiExample {

    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");

        VariantsApi apiInstance = new VariantsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String uniqueid = uniqueid_example; // String | 
        Body_2 body = ; // Body_2 | 
        try {
            inline_response_200_4 result = apiInstance.addVariant(apiecoKey, projectid, uniqueid, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VariantsApi#addVariant");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.VariantsApi;

public class VariantsApiExample {

    public static void main(String[] args) {
        VariantsApi apiInstance = new VariantsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String uniqueid = uniqueid_example; // String | 
        Body_2 body = ; // Body_2 | 
        try {
            inline_response_200_4 result = apiInstance.addVariant(apiecoKey, projectid, uniqueid, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VariantsApi#addVariant");
            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 *projectid = projectid_example; // 
String *uniqueid = uniqueid_example; // 
Body_2 *body = ; //  (optional)

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

[apiInstance addVariantWith:apiecoKey
    projectid:projectid
    uniqueid:uniqueid
    body:body
              completionHandler: ^(inline_response_200_4 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.VariantsApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_example; // {String} 

var uniqueid = uniqueid_example; // {String} 

var opts = { 
  'body':  // {Body_2} 
};

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

namespace Example
{
    public class addVariantExample
    {
        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 VariantsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 
            var uniqueid = uniqueid_example;  // String | 
            var body = new Body_2(); // Body_2 |  (optional) 

            try
            {
                inline_response_200_4 result = apiInstance.addVariant(apiecoKey, projectid, uniqueid, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling VariantsApi.addVariant: " + 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\VariantsApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 
$uniqueid = uniqueid_example; // String | 
$body = ; // Body_2 | 

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

# 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::VariantsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 
my $uniqueid = uniqueid_example; # String | 
my $body = WWW::SwaggerClient::Object::Body_2->new(); # Body_2 | 

eval { 
    my $result = $api_instance->addVariant(apiecoKey => $apiecoKey, projectid => $projectid, uniqueid => $uniqueid, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VariantsApi->addVariant: $@\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.VariantsApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 
uniqueid = uniqueid_example # String | 
body =  # Body_2 |  (optional)

try: 
    api_response = api_instance.add_variant(apiecoKey, projectid, uniqueid, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VariantsApi->addVariant: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
uniqueid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required
Body parameters
Name Description
body

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


deleteVariant

Delete a specific variant for a specific issue


/v8/projects/{projectid}/issues/{uniqueid}/variant/{variantid}

Usage and SDK Samples

curl -X DELETE -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/v8/projects/{projectid}/issues/{uniqueid}/variant/{variantid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.VariantsApi;

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

public class VariantsApiExample {

    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");

        VariantsApi apiInstance = new VariantsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String uniqueid = uniqueid_example; // String | 
        String variantid = variantid_example; // String | 
        Body_4 body = ; // Body_4 | 
        try {
            inline_response_200_4 result = apiInstance.deleteVariant(apiecoKey, projectid, uniqueid, variantid, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VariantsApi#deleteVariant");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.VariantsApi;

public class VariantsApiExample {

    public static void main(String[] args) {
        VariantsApi apiInstance = new VariantsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String uniqueid = uniqueid_example; // String | 
        String variantid = variantid_example; // String | 
        Body_4 body = ; // Body_4 | 
        try {
            inline_response_200_4 result = apiInstance.deleteVariant(apiecoKey, projectid, uniqueid, variantid, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VariantsApi#deleteVariant");
            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 *projectid = projectid_example; // 
String *uniqueid = uniqueid_example; // 
String *variantid = variantid_example; // 
Body_4 *body = ; //  (optional)

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

[apiInstance deleteVariantWith:apiecoKey
    projectid:projectid
    uniqueid:uniqueid
    variantid:variantid
    body:body
              completionHandler: ^(inline_response_200_4 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.VariantsApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_example; // {String} 

var uniqueid = uniqueid_example; // {String} 

var variantid = variantid_example; // {String} 

var opts = { 
  'body':  // {Body_4} 
};

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

namespace Example
{
    public class deleteVariantExample
    {
        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 VariantsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 
            var uniqueid = uniqueid_example;  // String | 
            var variantid = variantid_example;  // String | 
            var body = new Body_4(); // Body_4 |  (optional) 

            try
            {
                inline_response_200_4 result = apiInstance.deleteVariant(apiecoKey, projectid, uniqueid, variantid, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling VariantsApi.deleteVariant: " + 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\VariantsApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 
$uniqueid = uniqueid_example; // String | 
$variantid = variantid_example; // String | 
$body = ; // Body_4 | 

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

# 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::VariantsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 
my $uniqueid = uniqueid_example; # String | 
my $variantid = variantid_example; # String | 
my $body = WWW::SwaggerClient::Object::Body_4->new(); # Body_4 | 

eval { 
    my $result = $api_instance->deleteVariant(apiecoKey => $apiecoKey, projectid => $projectid, uniqueid => $uniqueid, variantid => $variantid, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VariantsApi->deleteVariant: $@\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.VariantsApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 
uniqueid = uniqueid_example # String | 
variantid = variantid_example # String | 
body =  # Body_4 |  (optional)

try: 
    api_response = api_instance.delete_variant(apiecoKey, projectid, uniqueid, variantid, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VariantsApi->deleteVariant: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
uniqueid*
String
Required
variantid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required
Body parameters
Name Description
body

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


editVariant

Edit the variant for a specific issue. The variant file can be replaced


/v8/projects/{projectid}/issues/{uniqueid}/variant/{variantid}

Usage and SDK Samples

curl -X PUT -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/paperlit/v8/projects/{projectid}/issues/{uniqueid}/variant/{variantid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.VariantsApi;

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

public class VariantsApiExample {

    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");

        VariantsApi apiInstance = new VariantsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String uniqueid = uniqueid_example; // String | 
        String variantid = variantid_example; // String | 
        Body_3 body = ; // Body_3 | 
        try {
            inline_response_200_4 result = apiInstance.editVariant(apiecoKey, projectid, uniqueid, variantid, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VariantsApi#editVariant");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.VariantsApi;

public class VariantsApiExample {

    public static void main(String[] args) {
        VariantsApi apiInstance = new VariantsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String projectid = projectid_example; // String | 
        String uniqueid = uniqueid_example; // String | 
        String variantid = variantid_example; // String | 
        Body_3 body = ; // Body_3 | 
        try {
            inline_response_200_4 result = apiInstance.editVariant(apiecoKey, projectid, uniqueid, variantid, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VariantsApi#editVariant");
            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 *projectid = projectid_example; // 
String *uniqueid = uniqueid_example; // 
String *variantid = variantid_example; // 
Body_3 *body = ; //  (optional)

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

[apiInstance editVariantWith:apiecoKey
    projectid:projectid
    uniqueid:uniqueid
    variantid:variantid
    body:body
              completionHandler: ^(inline_response_200_4 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaperlitApi_ = require('paperlit_api_');
var defaultClient = PaperlitApi_.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 PaperlitApi_.VariantsApi()

var apiecoKey = apiecoKey_example; // {String} 

var projectid = projectid_example; // {String} 

var uniqueid = uniqueid_example; // {String} 

var variantid = variantid_example; // {String} 

var opts = { 
  'body':  // {Body_3} 
};

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

namespace Example
{
    public class editVariantExample
    {
        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 VariantsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var projectid = projectid_example;  // String | 
            var uniqueid = uniqueid_example;  // String | 
            var variantid = variantid_example;  // String | 
            var body = new Body_3(); // Body_3 |  (optional) 

            try
            {
                inline_response_200_4 result = apiInstance.editVariant(apiecoKey, projectid, uniqueid, variantid, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling VariantsApi.editVariant: " + 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\VariantsApi();
$apiecoKey = apiecoKey_example; // String | 
$projectid = projectid_example; // String | 
$uniqueid = uniqueid_example; // String | 
$variantid = variantid_example; // String | 
$body = ; // Body_3 | 

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

# 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::VariantsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $projectid = projectid_example; # String | 
my $uniqueid = uniqueid_example; # String | 
my $variantid = variantid_example; # String | 
my $body = WWW::SwaggerClient::Object::Body_3->new(); # Body_3 | 

eval { 
    my $result = $api_instance->editVariant(apiecoKey => $apiecoKey, projectid => $projectid, uniqueid => $uniqueid, variantid => $variantid, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VariantsApi->editVariant: $@\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.VariantsApi()
apiecoKey = apiecoKey_example # String | 
projectid = projectid_example # String | 
uniqueid = uniqueid_example # String | 
variantid = variantid_example # String | 
body =  # Body_3 |  (optional)

try: 
    api_response = api_instance.edit_variant(apiecoKey, projectid, uniqueid, variantid, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VariantsApi->editVariant: %s\n" % e)

Parameters

Path parameters
Name Description
projectid*
String
Required
uniqueid*
String
Required
variantid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required
Body parameters
Name Description
body

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input