date_jalali_conventor_api

Conventor

gregorianToJalali

send your date to convert to jalali


/apitalk/date-jalali-converter/Gregorian_to_jalali

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/apitalk/date-jalali-converter/Gregorian_to_jalali"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ConventorApi;

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

public class ConventorApiExample {

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

public class ConventorApiExample {

    public static void main(String[] args) {
        ConventorApi apiInstance = new ConventorApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String date = date_example; // String | your Gregorian date
        try {
            response result = apiInstance.gregorianToJalali(apiecoKey, date);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConventorApi#gregorianToJalali");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API
String *date = date_example; // your Gregorian date

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

// send your date to convert to jalali
[apiInstance gregorianToJalaliWith:apiecoKey
    date:date
              completionHandler: ^(response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DateJalaliConventorApi = require('date_jalali_conventor_api');

var api = new DateJalaliConventorApi.ConventorApi()

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

var date = date_example; // {String} your Gregorian date


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

namespace Example
{
    public class gregorianToJalaliExample
    {
        public void main()
        {
            
            var apiInstance = new ConventorApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API
            var date = date_example;  // String | your Gregorian date

            try
            {
                // send your date to convert to jalali
                response result = apiInstance.gregorianToJalali(apiecoKey, date);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ConventorApi.gregorianToJalali: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ConventorApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$date = date_example; // String | your Gregorian date

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

my $api_instance = WWW::SwaggerClient::ConventorApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $date = date_example; # String | your Gregorian date

eval { 
    my $result = $api_instance->gregorianToJalali(apiecoKey => $apiecoKey, date => $date);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ConventorApi->gregorianToJalali: $@\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.ConventorApi()
apiecoKey = apiecoKey_example # String | apikey for use API
date = date_example # String | your Gregorian date

try: 
    # send your date to convert to jalali
    api_response = api_instance.gregorian_to_jalali(apiecoKey, date)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConventorApi->gregorianToJalali: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Form parameters
Name Description
Date*
String
your Gregorian date
Required

Responses

Status: 200 - This REST API return HTTP responses in JSON formats:

Status: 202 - Not Valid Url

Status: 400 - Bad Request

Status: 404 - Not Found

Status: 405 - Method Not Allowed

Status: 500 - Internal Server Error


jalaliToGregorian

send your date for convert to Gregorian


/apitalk/date-jalali-converter/jalali_to_Gregorian

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/apitalk/date-jalali-converter/jalali_to_Gregorian"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ConventorApi;

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

public class ConventorApiExample {

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

public class ConventorApiExample {

    public static void main(String[] args) {
        ConventorApi apiInstance = new ConventorApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String date = date_example; // String | your jalali date
        try {
            response result = apiInstance.jalaliToGregorian(apiecoKey, date);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConventorApi#jalaliToGregorian");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API
String *date = date_example; // your jalali date

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

// send your date for convert to Gregorian
[apiInstance jalaliToGregorianWith:apiecoKey
    date:date
              completionHandler: ^(response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DateJalaliConventorApi = require('date_jalali_conventor_api');

var api = new DateJalaliConventorApi.ConventorApi()

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

var date = date_example; // {String} your jalali date


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

namespace Example
{
    public class jalaliToGregorianExample
    {
        public void main()
        {
            
            var apiInstance = new ConventorApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API
            var date = date_example;  // String | your jalali date

            try
            {
                // send your date for convert to Gregorian
                response result = apiInstance.jalaliToGregorian(apiecoKey, date);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ConventorApi.jalaliToGregorian: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ConventorApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$date = date_example; // String | your jalali date

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

my $api_instance = WWW::SwaggerClient::ConventorApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $date = date_example; # String | your jalali date

eval { 
    my $result = $api_instance->jalaliToGregorian(apiecoKey => $apiecoKey, date => $date);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ConventorApi->jalaliToGregorian: $@\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.ConventorApi()
apiecoKey = apiecoKey_example # String | apikey for use API
date = date_example # String | your jalali date

try: 
    # send your date for convert to Gregorian
    api_response = api_instance.jalali_to_gregorian(apiecoKey, date)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConventorApi->jalaliToGregorian: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Form parameters
Name Description
Date*
String
your jalali date
Required

Responses

Status: 200 - This REST API return HTTP responses in JSON formats:

Status: 202 - Not Valid Url

Status: 400 - Bad Request

Status: 404 - Not Found

Status: 405 - Method Not Allowed

Status: 500 - Internal Server Error


GetInfo

getToday

send your ar numbers to convert to fa


/apitalk/date-jalali-converter/get_today

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/apitalk/date-jalali-converter/get_today"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.GetInfoApi;

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

public class GetInfoApiExample {

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

public class GetInfoApiExample {

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

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

// 
[apiInstance getTodayWith:apiecoKey
              completionHandler: ^(response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DateJalaliConventorApi = require('date_jalali_conventor_api');

var api = new DateJalaliConventorApi.GetInfoApi()

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

namespace Example
{
    public class getTodayExample
    {
        public void main()
        {
            
            var apiInstance = new GetInfoApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API

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

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

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

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

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

try: 
    # 
    api_response = api_instance.get_today(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GetInfoApi->getToday: %s\n" % e)

Parameters

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

Responses

Status: 200 - This REST API return HTTP responses in JSON formats:

Status: 202 - Not Valid Url

Status: 400 - Bad Request

Status: 404 - Not Found

Status: 405 - Method Not Allowed

Status: 500 - Internal Server Error


getUTC

send your fa numbers to convert to ar


/apitalk/date-jalali-converter/get_UTC

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/apitalk/date-jalali-converter/get_UTC"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.GetInfoApi;

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

public class GetInfoApiExample {

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

public class GetInfoApiExample {

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

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

// 
[apiInstance getUTCWith:apiecoKey
              completionHandler: ^(response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DateJalaliConventorApi = require('date_jalali_conventor_api');

var api = new DateJalaliConventorApi.GetInfoApi()

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

namespace Example
{
    public class getUTCExample
    {
        public void main()
        {
            
            var apiInstance = new GetInfoApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API

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

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

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

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

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

try: 
    # 
    api_response = api_instance.get_utc(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GetInfoApi->getUTC: %s\n" % e)

Parameters

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

Responses

Status: 200 - This REST API return HTTP responses in JSON formats:

Status: 202 - Not Valid Url

Status: 400 - Bad Request

Status: 404 - Not Found

Status: 405 - Method Not Allowed

Status: 500 - Internal Server Error