وب سرویس پیامک

cancel

انصراف از ارسال


/v1/sms/cancel.json

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/msg/v1/sms/cancel.json"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Body_8 body = ; // Body_8 | 
        try {
            inline_response_200_7 result = apiInstance.cancel(apiecoKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#cancel");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Body_8 body = ; // Body_8 | 
        try {
            inline_response_200_7 result = apiInstance.cancel(apiecoKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#cancel");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
Body_8 *body = ; //  (optional)

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

// انصراف از ارسال
[apiInstance cancelWith:apiecoKey
    body:body
              completionHandler: ^(inline_response_200_7 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('__');

var api = new _.DefaultApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

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

namespace Example
{
    public class cancelExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var body = new Body_8(); // Body_8 |  (optional) 

            try
            {
                // انصراف از ارسال
                inline_response_200_7 result = apiInstance.cancel(apiecoKey, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.cancel: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$body = ; // Body_8 | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $body = WWW::SwaggerClient::Object::Body_8->new(); # Body_8 | 

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

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
body =  # Body_8 |  (optional)

try: 
    # انصراف از ارسال
    api_response = api_instance.cancel(apiecoKey, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->cancel: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Body parameters
Name Description
body

Responses

Status: 200 - 200 response


config

تنظیمات ضروری


/v1/account/config.json

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/msg/v1/account/config.json"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Body_13 body = ; // Body_13 | 
        try {
            inline_response_200_12 result = apiInstance.config(apiecoKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#config");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Body_13 body = ; // Body_13 | 
        try {
            inline_response_200_12 result = apiInstance.config(apiecoKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#config");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
Body_13 *body = ; //  (optional)

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

// تنظیمات ضروری
[apiInstance configWith:apiecoKey
    body:body
              completionHandler: ^(inline_response_200_12 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('__');

var api = new _.DefaultApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

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

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

namespace Example
{
    public class configExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var body = new Body_13(); // Body_13 |  (optional) 

            try
            {
                // تنظیمات ضروری
                inline_response_200_12 result = apiInstance.config(apiecoKey, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.config: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$body = ; // Body_13 | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $body = WWW::SwaggerClient::Object::Body_13->new(); # Body_13 | 

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

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
body =  # Body_13 |  (optional)

try: 
    # تنظیمات ضروری
    api_response = api_instance.config(apiecoKey, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->config: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Body parameters
Name Description
body

Responses

Status: 200 - 200 response


countInbox

تعداد پیامک های دریافت شده


/v1/sms/CountInbox.json

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/msg/v1/sms/CountInbox.json"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Body_10 body = ; // Body_10 | 
        try {
            inline_response_200_9 result = apiInstance.countInbox(apiecoKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#countInbox");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Body_10 body = ; // Body_10 | 
        try {
            inline_response_200_9 result = apiInstance.countInbox(apiecoKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#countInbox");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
Body_10 *body = ; //  (optional)

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

// تعداد پیامک های دریافت شده
[apiInstance countInboxWith:apiecoKey
    body:body
              completionHandler: ^(inline_response_200_9 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('__');

var api = new _.DefaultApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

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

namespace Example
{
    public class countInboxExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var body = new Body_10(); // Body_10 |  (optional) 

            try
            {
                // تعداد پیامک های دریافت شده
                inline_response_200_9 result = apiInstance.countInbox(apiecoKey, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.countInbox: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$body = ; // Body_10 | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $body = WWW::SwaggerClient::Object::Body_10->new(); # Body_10 | 

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

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
body =  # Body_10 |  (optional)

try: 
    # تعداد پیامک های دریافت شده
    api_response = api_instance.count_inbox(apiecoKey, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->countInbox: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Body parameters
Name Description
body

Responses

Status: 200 - 200 response


countOutbox

تعداد ارسال ها


/v1/sms/CountOutbox.json

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/msg/v1/sms/CountOutbox.json"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Body_7 body = ; // Body_7 | 
        try {
            inline_response_200_6 result = apiInstance.countOutbox(apiecoKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#countOutbox");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Body_7 body = ; // Body_7 | 
        try {
            inline_response_200_6 result = apiInstance.countOutbox(apiecoKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#countOutbox");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
Body_7 *body = ; //  (optional)

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

// تعداد ارسال ها
[apiInstance countOutboxWith:apiecoKey
    body:body
              completionHandler: ^(inline_response_200_6 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('__');

var api = new _.DefaultApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

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

namespace Example
{
    public class countOutboxExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var body = new Body_7(); // Body_7 |  (optional) 

            try
            {
                // تعداد ارسال ها
                inline_response_200_6 result = apiInstance.countOutbox(apiecoKey, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.countOutbox: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$body = ; // Body_7 | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $body = WWW::SwaggerClient::Object::Body_7->new(); # Body_7 | 

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

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
body =  # Body_7 |  (optional)

try: 
    # تعداد ارسال ها
    api_response = api_instance.count_outbox(apiecoKey, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->countOutbox: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Body parameters
Name Description
body

Responses

Status: 200 - 200 response


info

دریافت اطلاعات حساب کاربری


/v1/account/Info.json

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/msg/v1/account/Info.json"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        try {
            inline_response_200_11 result = apiInstance.info(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#info");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        try {
            inline_response_200_11 result = apiInstance.info(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#info");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)

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

// دریافت اطلاعات حساب کاربری
[apiInstance infoWith:apiecoKey
              completionHandler: ^(inline_response_200_11 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('__');

var api = new _.DefaultApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API


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

namespace Example
{
    public class infoExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)

            try
            {
                // دریافت اطلاعات حساب کاربری
                inline_response_200_11 result = apiInstance.info(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.info: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API

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

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)

try: 
    # دریافت اطلاعات حساب کاربری
    api_response = api_instance.info(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->info: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required

Responses

Status: 200 - 200 response


latestOutBox

آخرین ارسال ها


/v1/sms/LatestOutBox.json

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/msg/v1/sms/LatestOutBox.json"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Body_6 body = ; // Body_6 | 
        try {
            inline_response_200_5 result = apiInstance.latestOutBox(apiecoKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#latestOutBox");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Body_6 body = ; // Body_6 | 
        try {
            inline_response_200_5 result = apiInstance.latestOutBox(apiecoKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#latestOutBox");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
Body_6 *body = ; //  (optional)

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

// آخرین ارسال ها
[apiInstance latestOutBoxWith:apiecoKey
    body:body
              completionHandler: ^(inline_response_200_5 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('__');

var api = new _.DefaultApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

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

namespace Example
{
    public class latestOutBoxExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var body = new Body_6(); // Body_6 |  (optional) 

            try
            {
                // آخرین ارسال ها
                inline_response_200_5 result = apiInstance.latestOutBox(apiecoKey, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.latestOutBox: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$body = ; // Body_6 | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $body = WWW::SwaggerClient::Object::Body_6->new(); # Body_6 | 

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

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
body =  # Body_6 |  (optional)

try: 
    # آخرین ارسال ها
    api_response = api_instance.latest_out_box(apiecoKey, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->latestOutBox: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Body parameters
Name Description
body

Responses

Status: 200 - 200 response


lookup

اعتبار سنجی


/v1/sms/lookup.json

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/msg/v1/sms/lookup.json"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Body_11 body = ; // Body_11 | 
        try {
            inline_response_200_10 result = apiInstance.lookup(apiecoKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#lookup");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Body_11 body = ; // Body_11 | 
        try {
            inline_response_200_10 result = apiInstance.lookup(apiecoKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#lookup");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
Body_11 *body = ; //  (optional)

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

// اعتبار سنجی
[apiInstance lookupWith:apiecoKey
    body:body
              completionHandler: ^(inline_response_200_10 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('__');

var api = new _.DefaultApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

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

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

namespace Example
{
    public class lookupExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var body = new Body_11(); // Body_11 |  (optional) 

            try
            {
                // اعتبار سنجی
                inline_response_200_10 result = apiInstance.lookup(apiecoKey, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.lookup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$body = ; // Body_11 | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $body = WWW::SwaggerClient::Object::Body_11->new(); # Body_11 | 

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

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
body =  # Body_11 |  (optional)

try: 
    # اعتبار سنجی
    api_response = api_instance.lookup(apiecoKey, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->lookup: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Body parameters
Name Description
body

Responses

Status: 200 - 200 response


receive

دریافت پیامک


/v1/sms/Receive.json

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/msg/v1/sms/Receive.json"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Body_9 body = ; // Body_9 | 
        try {
            inline_response_200_8 result = apiInstance.receive(apiecoKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#receive");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Body_9 body = ; // Body_9 | 
        try {
            inline_response_200_8 result = apiInstance.receive(apiecoKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#receive");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
Body_9 *body = ; //  (optional)

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

// دریافت پیامک
[apiInstance receiveWith:apiecoKey
    body:body
              completionHandler: ^(inline_response_200_8 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('__');

var api = new _.DefaultApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

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

namespace Example
{
    public class receiveExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var body = new Body_9(); // Body_9 |  (optional) 

            try
            {
                // دریافت پیامک
                inline_response_200_8 result = apiInstance.receive(apiecoKey, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.receive: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$body = ; // Body_9 | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $body = WWW::SwaggerClient::Object::Body_9->new(); # Body_9 | 

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

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
body =  # Body_9 |  (optional)

try: 
    # دریافت پیامک
    api_response = api_instance.receive(apiecoKey, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->receive: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Body parameters
Name Description
body

Responses

Status: 200 - 200 response


select

انتخاب پیامک


/v1/sms/Select.json

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/msg/v1/sms/Select.json"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Body_4 body = ; // Body_4 | 
        try {
            inline_response_200_4 result = apiInstance.select(apiecoKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#select");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Body_4 body = ; // Body_4 | 
        try {
            inline_response_200_4 result = apiInstance.select(apiecoKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#select");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
Body_4 *body = ; //  (optional)

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

// انتخاب پیامک
[apiInstance selectWith:apiecoKey
    body:body
              completionHandler: ^(inline_response_200_4 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('__');

var api = new _.DefaultApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

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

namespace Example
{
    public class selectExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var body = new Body_4(); // Body_4 |  (optional) 

            try
            {
                // انتخاب پیامک
                inline_response_200_4 result = apiInstance.select(apiecoKey, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.select: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$body = ; // Body_4 | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $body = WWW::SwaggerClient::Object::Body_4->new(); # Body_4 | 

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

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
body =  # Body_4 |  (optional)

try: 
    # انتخاب پیامک
    api_response = api_instance.select(apiecoKey, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->select: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Body parameters
Name Description
body

Responses

Status: 200 - 200 response


selectOutbox

لیست ارسال ها


/v1/sms/SelectOutbox.json

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/msg/v1/sms/SelectOutbox.json"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Body_5 body = ; // Body_5 | 
        try {
            inline_response_200_5 result = apiInstance.selectOutbox(apiecoKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#selectOutbox");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Body_5 body = ; // Body_5 | 
        try {
            inline_response_200_5 result = apiInstance.selectOutbox(apiecoKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#selectOutbox");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
Body_5 *body = ; //  (optional)

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

// لیست ارسال ها
[apiInstance selectOutboxWith:apiecoKey
    body:body
              completionHandler: ^(inline_response_200_5 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('__');

var api = new _.DefaultApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

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

namespace Example
{
    public class selectOutboxExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var body = new Body_5(); // Body_5 |  (optional) 

            try
            {
                // لیست ارسال ها
                inline_response_200_5 result = apiInstance.selectOutbox(apiecoKey, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.selectOutbox: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$body = ; // Body_5 | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $body = WWW::SwaggerClient::Object::Body_5->new(); # Body_5 | 

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

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
body =  # Body_5 |  (optional)

try: 
    # لیست ارسال ها
    api_response = api_instance.select_outbox(apiecoKey, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->selectOutbox: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Body parameters
Name Description
body

Responses

Status: 200 - 200 response


send

ارسال ساده


/v1/sms/send.json

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/msg/v1/sms/send.json"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Body body = ; // Body | 
        try {
            inline_response_200 result = apiInstance.send(apiecoKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#send");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Body body = ; // Body | 
        try {
            inline_response_200 result = apiInstance.send(apiecoKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#send");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
Body *body = ; //  (optional)

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

// ارسال ساده
[apiInstance sendWith:apiecoKey
    body:body
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('__');

var api = new _.DefaultApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

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

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

namespace Example
{
    public class sendExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var body = new Body(); // Body |  (optional) 

            try
            {
                // ارسال ساده
                inline_response_200 result = apiInstance.send(apiecoKey, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.send: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$body = ; // Body | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $body = WWW::SwaggerClient::Object::Body->new(); # Body | 

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

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
body =  # Body |  (optional)

try: 
    # ارسال ساده
    api_response = api_instance.send(apiecoKey, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->send: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Body parameters
Name Description
body

Responses

Status: 200 - 200 response


sendarray

ارسال گروهی


/v1/sms/sendarray.json

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/msg/v1/sms/sendarray.json"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Body_1 body = ; // Body_1 | 
        try {
            inline_response_200_1 result = apiInstance.sendarray(apiecoKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#sendarray");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Body_1 body = ; // Body_1 | 
        try {
            inline_response_200_1 result = apiInstance.sendarray(apiecoKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#sendarray");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
Body_1 *body = ; //  (optional)

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

// ارسال گروهی
[apiInstance sendarrayWith:apiecoKey
    body:body
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('__');

var api = new _.DefaultApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

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

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

namespace Example
{
    public class sendarrayExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var body = new Body_1(); // Body_1 |  (optional) 

            try
            {
                // ارسال گروهی
                inline_response_200_1 result = apiInstance.sendarray(apiecoKey, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.sendarray: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$body = ; // Body_1 | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $body = WWW::SwaggerClient::Object::Body_1->new(); # Body_1 | 

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

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
body =  # Body_1 |  (optional)

try: 
    # ارسال گروهی
    api_response = api_instance.sendarray(apiecoKey, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->sendarray: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Body parameters
Name Description
body

Responses

Status: 200 - 200 response


status

کنترل وضعیت


/v1/sms/Status.json

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/msg/v1/sms/Status.json"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Body_2 body = ; // Body_2 | 
        try {
            inline_response_200_2 result = apiInstance.status(apiecoKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#status");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Body_2 body = ; // Body_2 | 
        try {
            inline_response_200_2 result = apiInstance.status(apiecoKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#status");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
Body_2 *body = ; //  (optional)

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

// کنترل وضعیت
[apiInstance statusWith:apiecoKey
    body:body
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('__');

var api = new _.DefaultApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

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

namespace Example
{
    public class statusExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var body = new Body_2(); // Body_2 |  (optional) 

            try
            {
                // کنترل وضعیت
                inline_response_200_2 result = apiInstance.status(apiecoKey, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.status: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$body = ; // Body_2 | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $body = WWW::SwaggerClient::Object::Body_2->new(); # Body_2 | 

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

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
body =  # Body_2 |  (optional)

try: 
    # کنترل وضعیت
    api_response = api_instance.status(apiecoKey, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->status: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Body parameters
Name Description
body

Responses

Status: 200 - 200 response


statusByLocalid

دریافت وضعیت با شناسه محلی شما


/v1/sms/StatusByLocalid.json

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/msg/v1/sms/StatusByLocalid.json"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Body_3 body = ; // Body_3 | 
        try {
            inline_response_200_3 result = apiInstance.statusByLocalid(apiecoKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#statusByLocalid");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Body_3 body = ; // Body_3 | 
        try {
            inline_response_200_3 result = apiInstance.statusByLocalid(apiecoKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#statusByLocalid");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
Body_3 *body = ; //  (optional)

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

// دریافت وضعیت با شناسه محلی شما
[apiInstance statusByLocalidWith:apiecoKey
    body:body
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('__');

var api = new _.DefaultApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

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

namespace Example
{
    public class statusByLocalidExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var body = new Body_3(); // Body_3 |  (optional) 

            try
            {
                // دریافت وضعیت با شناسه محلی شما
                inline_response_200_3 result = apiInstance.statusByLocalid(apiecoKey, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.statusByLocalid: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$body = ; // Body_3 | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $body = WWW::SwaggerClient::Object::Body_3->new(); # Body_3 | 

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

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
body =  # Body_3 |  (optional)

try: 
    # دریافت وضعیت با شناسه محلی شما
    api_response = api_instance.status_by_localid(apiecoKey, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->statusByLocalid: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Body parameters
Name Description
body

Responses

Status: 200 - 200 response


tTS

تماس صوتی


/v1/sms/TTS.json

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/msg/v1/sms/TTS.json"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Body_12 body = ; // Body_12 | 
        try {
            inline_response_200_10 result = apiInstance.tTS(apiecoKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#tTS");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Body_12 body = ; // Body_12 | 
        try {
            inline_response_200_10 result = apiInstance.tTS(apiecoKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#tTS");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
Body_12 *body = ; //  (optional)

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

// تماس صوتی
[apiInstance tTSWith:apiecoKey
    body:body
              completionHandler: ^(inline_response_200_10 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('__');

var api = new _.DefaultApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

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

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

namespace Example
{
    public class tTSExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var body = new Body_12(); // Body_12 |  (optional) 

            try
            {
                // تماس صوتی
                inline_response_200_10 result = apiInstance.tTS(apiecoKey, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.tTS: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$body = ; // Body_12 | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $body = WWW::SwaggerClient::Object::Body_12->new(); # Body_12 | 

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

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
body =  # Body_12 |  (optional)

try: 
    # تماس صوتی
    api_response = api_instance.t_ts(apiecoKey, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->tTS: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Body parameters
Name Description
body

Responses

Status: 200 - 200 response