مستندات استفاده از وب سرویس سایت پست بار

AddProductToCartService

apiAddProductToCartServiceProductidPost


/api/AddProductToCartService/{Productid}

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/postbar/api/AddProductToCartService/{Productid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AddProductToCartServiceApi;

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

public class AddProductToCartServiceApiExample {

    public static void main(String[] args) {
        
        AddProductToCartServiceApi apiInstance = new AddProductToCartServiceApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String token = token_example; // String | توکن کاربر
        String productid = productid_example; // String | کلید محصول
        try {
            apiInstance.apiAddProductToCartServiceProductidPost(apiecoKey, token, productid);
        } catch (ApiException e) {
            System.err.println("Exception when calling AddProductToCartServiceApi#apiAddProductToCartServiceProductidPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AddProductToCartServiceApi;

public class AddProductToCartServiceApiExample {

    public static void main(String[] args) {
        AddProductToCartServiceApi apiInstance = new AddProductToCartServiceApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String token = token_example; // String | توکن کاربر
        String productid = productid_example; // String | کلید محصول
        try {
            apiInstance.apiAddProductToCartServiceProductidPost(apiecoKey, token, productid);
        } catch (ApiException e) {
            System.err.println("Exception when calling AddProductToCartServiceApi#apiAddProductToCartServiceProductidPost");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *token = token_example; // توکن کاربر (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *productid = productid_example; // کلید محصول

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

[apiInstance apiAddProductToCartServiceProductidPostWith:apiecoKey
    token:token
    productid:productid
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('_______');

var api = new _.AddProductToCartServiceApi()

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

var token = token_example; // {String} توکن کاربر

var productid = productid_example; // {String} کلید محصول


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

namespace Example
{
    public class apiAddProductToCartServiceProductidPostExample
    {
        public void main()
        {
            
            var apiInstance = new AddProductToCartServiceApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var token = token_example;  // String | توکن کاربر (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var productid = productid_example;  // String | کلید محصول

            try
            {
                apiInstance.apiAddProductToCartServiceProductidPost(apiecoKey, token, productid);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AddProductToCartServiceApi.apiAddProductToCartServiceProductidPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\AddProductToCartServiceApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$token = token_example; // String | توکن کاربر
$productid = productid_example; // String | کلید محصول

try {
    $api_instance->apiAddProductToCartServiceProductidPost($apiecoKey, $token, $productid);
} catch (Exception $e) {
    echo 'Exception when calling AddProductToCartServiceApi->apiAddProductToCartServiceProductidPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AddProductToCartServiceApi;

my $api_instance = WWW::SwaggerClient::AddProductToCartServiceApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $token = token_example; # String | توکن کاربر
my $productid = productid_example; # String | کلید محصول

eval { 
    $api_instance->apiAddProductToCartServiceProductidPost(apiecoKey => $apiecoKey, token => $token, productid => $productid);
};
if ($@) {
    warn "Exception when calling AddProductToCartServiceApi->apiAddProductToCartServiceProductidPost: $@\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.AddProductToCartServiceApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
token = token_example # String | توکن کاربر (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
productid = productid_example # String | کلید محصول

try: 
    api_instance.api_add_product_to_cart_service_productid_post(apiecoKey, token, productid)
except ApiException as e:
    print("Exception when calling AddProductToCartServiceApi->apiAddProductToCartServiceProductidPost: %s\n" % e)

Parameters

Path parameters
Name Description
Productid*
String
کلید محصول
Required
Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Token*
String
توکن کاربر
Required

Responses

Status: 200 - 200 response


CheckoutcompleteService

apiCheckoutCheckoutcompleteServicePost


/api/checkout/checkoutcompleteService

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/postbar/api/checkout/checkoutcompleteService"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CheckoutcompleteServiceApi;

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

public class CheckoutcompleteServiceApiExample {

    public static void main(String[] args) {
        
        CheckoutcompleteServiceApi apiInstance = new CheckoutcompleteServiceApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String token = token_example; // String | توکن کاربر
        try {
            apiInstance.apiCheckoutCheckoutcompleteServicePost(apiecoKey, token);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckoutcompleteServiceApi#apiCheckoutCheckoutcompleteServicePost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CheckoutcompleteServiceApi;

public class CheckoutcompleteServiceApiExample {

    public static void main(String[] args) {
        CheckoutcompleteServiceApi apiInstance = new CheckoutcompleteServiceApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String token = token_example; // String | توکن کاربر
        try {
            apiInstance.apiCheckoutCheckoutcompleteServicePost(apiecoKey, token);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckoutcompleteServiceApi#apiCheckoutCheckoutcompleteServicePost");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *token = token_example; // توکن کاربر (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)

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

[apiInstance apiCheckoutCheckoutcompleteServicePostWith:apiecoKey
    token:token
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('_______');

var api = new _.CheckoutcompleteServiceApi()

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

var token = token_example; // {String} توکن کاربر


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

namespace Example
{
    public class apiCheckoutCheckoutcompleteServicePostExample
    {
        public void main()
        {
            
            var apiInstance = new CheckoutcompleteServiceApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var token = token_example;  // String | توکن کاربر (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)

            try
            {
                apiInstance.apiCheckoutCheckoutcompleteServicePost(apiecoKey, token);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CheckoutcompleteServiceApi.apiCheckoutCheckoutcompleteServicePost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\CheckoutcompleteServiceApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$token = token_example; // String | توکن کاربر

try {
    $api_instance->apiCheckoutCheckoutcompleteServicePost($apiecoKey, $token);
} catch (Exception $e) {
    echo 'Exception when calling CheckoutcompleteServiceApi->apiCheckoutCheckoutcompleteServicePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CheckoutcompleteServiceApi;

my $api_instance = WWW::SwaggerClient::CheckoutcompleteServiceApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $token = token_example; # String | توکن کاربر

eval { 
    $api_instance->apiCheckoutCheckoutcompleteServicePost(apiecoKey => $apiecoKey, token => $token);
};
if ($@) {
    warn "Exception when calling CheckoutcompleteServiceApi->apiCheckoutCheckoutcompleteServicePost: $@\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.CheckoutcompleteServiceApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
token = token_example # String | توکن کاربر (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)

try: 
    api_instance.api_checkout_checkoutcomplete_service_post(apiecoKey, token)
except ApiException as e:
    print("Exception when calling CheckoutcompleteServiceApi->apiCheckoutCheckoutcompleteServicePost: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Token*
String
توکن کاربر
Required

Responses

Status: 200 - 200 response


CheckoutsaveadressService

apiCheckoutCheckoutsaveadressServiceAddresstypePost


/api/checkout/checkoutsaveadressService/{Addresstype}

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/postbar/api/checkout/checkoutsaveadressService/{Addresstype}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CheckoutsaveadressServiceApi;

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

public class CheckoutsaveadressServiceApiExample {

    public static void main(String[] args) {
        
        CheckoutsaveadressServiceApi apiInstance = new CheckoutsaveadressServiceApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String token = token_example; // String | توکن کاربر
        String addresstype = addresstype_example; // String | نوع آدرس شامل 0 آدرس مبدا 2 آدرس مقصد می باشد
        array[customer] customer = ; // array[customer] | 
        try {
            apiInstance.apiCheckoutCheckoutsaveadressServiceAddresstypePost(apiecoKey, token, addresstype, customer);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckoutsaveadressServiceApi#apiCheckoutCheckoutsaveadressServiceAddresstypePost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CheckoutsaveadressServiceApi;

public class CheckoutsaveadressServiceApiExample {

    public static void main(String[] args) {
        CheckoutsaveadressServiceApi apiInstance = new CheckoutsaveadressServiceApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String token = token_example; // String | توکن کاربر
        String addresstype = addresstype_example; // String | نوع آدرس شامل 0 آدرس مبدا 2 آدرس مقصد می باشد
        array[customer] customer = ; // array[customer] | 
        try {
            apiInstance.apiCheckoutCheckoutsaveadressServiceAddresstypePost(apiecoKey, token, addresstype, customer);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckoutsaveadressServiceApi#apiCheckoutCheckoutsaveadressServiceAddresstypePost");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *token = token_example; // توکن کاربر (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *addresstype = addresstype_example; // نوع آدرس شامل 0 آدرس مبدا 2 آدرس مقصد می باشد
array[customer] *customer = ; //  (optional)

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

[apiInstance apiCheckoutCheckoutsaveadressServiceAddresstypePostWith:apiecoKey
    token:token
    addresstype:addresstype
    customer:customer
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('_______');

var api = new _.CheckoutsaveadressServiceApi()

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

var token = token_example; // {String} توکن کاربر

var addresstype = addresstype_example; // {String} نوع آدرس شامل 0 آدرس مبدا 2 آدرس مقصد می باشد

var opts = { 
  'customer':  // {array[customer]} 
};

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

namespace Example
{
    public class apiCheckoutCheckoutsaveadressServiceAddresstypePostExample
    {
        public void main()
        {
            
            var apiInstance = new CheckoutsaveadressServiceApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var token = token_example;  // String | توکن کاربر (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var addresstype = addresstype_example;  // String | نوع آدرس شامل 0 آدرس مبدا 2 آدرس مقصد می باشد
            var customer = new array[customer](); // array[customer] |  (optional) 

            try
            {
                apiInstance.apiCheckoutCheckoutsaveadressServiceAddresstypePost(apiecoKey, token, addresstype, customer);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CheckoutsaveadressServiceApi.apiCheckoutCheckoutsaveadressServiceAddresstypePost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\CheckoutsaveadressServiceApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$token = token_example; // String | توکن کاربر
$addresstype = addresstype_example; // String | نوع آدرس شامل 0 آدرس مبدا 2 آدرس مقصد می باشد
$customer = ; // array[customer] | 

try {
    $api_instance->apiCheckoutCheckoutsaveadressServiceAddresstypePost($apiecoKey, $token, $addresstype, $customer);
} catch (Exception $e) {
    echo 'Exception when calling CheckoutsaveadressServiceApi->apiCheckoutCheckoutsaveadressServiceAddresstypePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CheckoutsaveadressServiceApi;

my $api_instance = WWW::SwaggerClient::CheckoutsaveadressServiceApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $token = token_example; # String | توکن کاربر
my $addresstype = addresstype_example; # String | نوع آدرس شامل 0 آدرس مبدا 2 آدرس مقصد می باشد
my $customer = [WWW::SwaggerClient::Object::array[customer]->new()]; # array[customer] | 

eval { 
    $api_instance->apiCheckoutCheckoutsaveadressServiceAddresstypePost(apiecoKey => $apiecoKey, token => $token, addresstype => $addresstype, customer => $customer);
};
if ($@) {
    warn "Exception when calling CheckoutsaveadressServiceApi->apiCheckoutCheckoutsaveadressServiceAddresstypePost: $@\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.CheckoutsaveadressServiceApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
token = token_example # String | توکن کاربر (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
addresstype = addresstype_example # String | نوع آدرس شامل 0 آدرس مبدا 2 آدرس مقصد می باشد
customer =  # array[customer] |  (optional)

try: 
    api_instance.api_checkout_checkoutsaveadress_service_addresstype_post(apiecoKey, token, addresstype, customer=customer)
except ApiException as e:
    print("Exception when calling CheckoutsaveadressServiceApi->apiCheckoutCheckoutsaveadressServiceAddresstypePost: %s\n" % e)

Parameters

Path parameters
Name Description
Addresstype*
String
نوع آدرس شامل 0 آدرس مبدا 2 آدرس مقصد می باشد
Required
Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Token*
String
توکن کاربر
Required
Body parameters
Name Description
customer

Responses

Status: 200 - 200 response


apiCountryGetStatesCitycodeGet

دریافت شهر ها


/api/country/getStates/{citycode}

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/postbar/api/country/getStates/{citycode}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CheckoutsaveadressServiceApi;

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

public class CheckoutsaveadressServiceApiExample {

    public static void main(String[] args) {
        
        CheckoutsaveadressServiceApi apiInstance = new CheckoutsaveadressServiceApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String token = token_example; // String | توکن کاربر
        String citycode = citycode_example; // String | کدشهر
        try {
            apiInstance.apiCountryGetStatesCitycodeGet(apiecoKey, token, citycode);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckoutsaveadressServiceApi#apiCountryGetStatesCitycodeGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CheckoutsaveadressServiceApi;

public class CheckoutsaveadressServiceApiExample {

    public static void main(String[] args) {
        CheckoutsaveadressServiceApi apiInstance = new CheckoutsaveadressServiceApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String token = token_example; // String | توکن کاربر
        String citycode = citycode_example; // String | کدشهر
        try {
            apiInstance.apiCountryGetStatesCitycodeGet(apiecoKey, token, citycode);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckoutsaveadressServiceApi#apiCountryGetStatesCitycodeGet");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *token = token_example; // توکن کاربر (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *citycode = citycode_example; // کدشهر

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

// دریافت شهر ها
[apiInstance apiCountryGetStatesCitycodeGetWith:apiecoKey
    token:token
    citycode:citycode
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('_______');

var api = new _.CheckoutsaveadressServiceApi()

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

var token = token_example; // {String} توکن کاربر

var citycode = citycode_example; // {String} کدشهر


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

namespace Example
{
    public class apiCountryGetStatesCitycodeGetExample
    {
        public void main()
        {
            
            var apiInstance = new CheckoutsaveadressServiceApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var token = token_example;  // String | توکن کاربر (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var citycode = citycode_example;  // String | کدشهر

            try
            {
                // دریافت شهر ها
                apiInstance.apiCountryGetStatesCitycodeGet(apiecoKey, token, citycode);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CheckoutsaveadressServiceApi.apiCountryGetStatesCitycodeGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\CheckoutsaveadressServiceApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$token = token_example; // String | توکن کاربر
$citycode = citycode_example; // String | کدشهر

try {
    $api_instance->apiCountryGetStatesCitycodeGet($apiecoKey, $token, $citycode);
} catch (Exception $e) {
    echo 'Exception when calling CheckoutsaveadressServiceApi->apiCountryGetStatesCitycodeGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CheckoutsaveadressServiceApi;

my $api_instance = WWW::SwaggerClient::CheckoutsaveadressServiceApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $token = token_example; # String | توکن کاربر
my $citycode = citycode_example; # String | کدشهر

eval { 
    $api_instance->apiCountryGetStatesCitycodeGet(apiecoKey => $apiecoKey, token => $token, citycode => $citycode);
};
if ($@) {
    warn "Exception when calling CheckoutsaveadressServiceApi->apiCountryGetStatesCitycodeGet: $@\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.CheckoutsaveadressServiceApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
token = token_example # String | توکن کاربر (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
citycode = citycode_example # String | کدشهر

try: 
    # دریافت شهر ها
    api_instance.api_country_get_states_citycode_get(apiecoKey, token, citycode)
except ApiException as e:
    print("Exception when calling CheckoutsaveadressServiceApi->apiCountryGetStatesCitycodeGet: %s\n" % e)

Parameters

Path parameters
Name Description
citycode*
String
کدشهر
Required
Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Token*
String
توکن کاربر
Required

Responses

Status: 200 - 200 response


apiCountryGetStatesGet

دریافت آدرس استان ها


/api/country/getStates

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/postbar/api/country/getStates"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CheckoutsaveadressServiceApi;

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

public class CheckoutsaveadressServiceApiExample {

    public static void main(String[] args) {
        
        CheckoutsaveadressServiceApi apiInstance = new CheckoutsaveadressServiceApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String token = token_example; // String | توکن کاربر
        try {
            apiInstance.apiCountryGetStatesGet(apiecoKey, token);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckoutsaveadressServiceApi#apiCountryGetStatesGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CheckoutsaveadressServiceApi;

public class CheckoutsaveadressServiceApiExample {

    public static void main(String[] args) {
        CheckoutsaveadressServiceApi apiInstance = new CheckoutsaveadressServiceApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String token = token_example; // String | توکن کاربر
        try {
            apiInstance.apiCountryGetStatesGet(apiecoKey, token);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckoutsaveadressServiceApi#apiCountryGetStatesGet");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *token = token_example; // توکن کاربر (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)

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

// دریافت آدرس استان ها
[apiInstance apiCountryGetStatesGetWith:apiecoKey
    token:token
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('_______');

var api = new _.CheckoutsaveadressServiceApi()

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

var token = token_example; // {String} توکن کاربر


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

namespace Example
{
    public class apiCountryGetStatesGetExample
    {
        public void main()
        {
            
            var apiInstance = new CheckoutsaveadressServiceApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var token = token_example;  // String | توکن کاربر (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)

            try
            {
                // دریافت آدرس استان ها
                apiInstance.apiCountryGetStatesGet(apiecoKey, token);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CheckoutsaveadressServiceApi.apiCountryGetStatesGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\CheckoutsaveadressServiceApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$token = token_example; // String | توکن کاربر

try {
    $api_instance->apiCountryGetStatesGet($apiecoKey, $token);
} catch (Exception $e) {
    echo 'Exception when calling CheckoutsaveadressServiceApi->apiCountryGetStatesGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CheckoutsaveadressServiceApi;

my $api_instance = WWW::SwaggerClient::CheckoutsaveadressServiceApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $token = token_example; # String | توکن کاربر

eval { 
    $api_instance->apiCountryGetStatesGet(apiecoKey => $apiecoKey, token => $token);
};
if ($@) {
    warn "Exception when calling CheckoutsaveadressServiceApi->apiCountryGetStatesGet: $@\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.CheckoutsaveadressServiceApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
token = token_example # String | توکن کاربر (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)

try: 
    # دریافت آدرس استان ها
    api_instance.api_country_get_states_get(apiecoKey, token)
except ApiException as e:
    print("Exception when calling CheckoutsaveadressServiceApi->apiCountryGetStatesGet: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Token*
String
توکن کاربر
Required

Responses

Status: 200 - 200 response


Login

apiLoginPost


/api/login

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/postbar/api/login"
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) {
        
        LoginApi apiInstance = new LoginApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Body body = ; // Body | 
        try {
            apiInstance.apiLoginPost(apiecoKey, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling LoginApi#apiLoginPost");
            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 | apikey for use API
        Body body = ; // Body | 
        try {
            apiInstance.apiLoginPost(apiecoKey, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling LoginApi#apiLoginPost");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
Body *body = ; //  (optional)

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

[apiInstance apiLoginPostWith:apiecoKey
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('_______');

var api = new _.LoginApi()

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

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

            try
            {
                apiInstance.apiLoginPost(apiecoKey, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LoginApi.apiLoginPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

eval { 
    $api_instance->apiLoginPost(apiecoKey => $apiecoKey, body => $body);
};
if ($@) {
    warn "Exception when calling LoginApi->apiLoginPost: $@\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.LoginApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
body =  # Body |  (optional)

try: 
    api_instance.api_login_post(apiecoKey, body=body)
except ApiException as e:
    print("Exception when calling LoginApi->apiLoginPost: %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