Muslim Salat

Date

getByDate

get prayer time by for the given date

show the prayer times for given date in the given timline of the specific location


/{Location}/{Times}/{Date}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/muslimsalat/{Location}/{Times}/{Date}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DateApi;

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

public class DateApiExample {

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

        DateApi apiInstance = new DateApi();
        String location = location_example; // String | Fetch the prayer time based on the location you request with these auto values:
Times: daily
Date: today
dayligh saving: auto
method: auto based on location
        array[String] times = ; // array[String] | Status values that need to be considered for filter
        date date = 2013-10-20; // date | 
        try {
            apiInstance.getByDate(location, times, date);
        } catch (ApiException e) {
            System.err.println("Exception when calling DateApi#getByDate");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DateApi;

public class DateApiExample {

    public static void main(String[] args) {
        DateApi apiInstance = new DateApi();
        String location = location_example; // String | Fetch the prayer time based on the location you request with these auto values:
Times: daily
Date: today
dayligh saving: auto
method: auto based on location
        array[String] times = ; // array[String] | Status values that need to be considered for filter
        date date = 2013-10-20; // date | 
        try {
            apiInstance.getByDate(location, times, date);
        } catch (ApiException e) {
            System.err.println("Exception when calling DateApi#getByDate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

String *location = location_example; // Fetch the prayer time based on the location you request with these auto values:
Times: daily
Date: today
dayligh saving: auto
method: auto based on location
array[String] *times = ; // Status values that need to be considered for filter
date *date = 2013-10-20; // 

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

// get prayer time by for the given date
[apiInstance getByDateWith:location
    times:times
    date:date
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MuslimSalat = require('muslim_salat');
var defaultClient = MuslimSalat.ApiClient.instance;

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

var api = new MuslimSalat.DateApi()

var location = location_example; // {String} Fetch the prayer time based on the location you request with these auto values:
Times: daily
Date: today
dayligh saving: auto
method: auto based on location

var times = ; // {array[String]} Status values that need to be considered for filter

var date = 2013-10-20; // {date} 


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

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

            var apiInstance = new DateApi();
            var location = location_example;  // String | Fetch the prayer time based on the location you request with these auto values:
Times: daily
Date: today
dayligh saving: auto
method: auto based on location
            var times = new array[String](); // array[String] | Status values that need to be considered for filter
            var date = 2013-10-20;  // date | 

            try
            {
                // get prayer time by for the given date
                apiInstance.getByDate(location, times, date);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DateApi.getByDate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\DateApi();
$location = location_example; // String | Fetch the prayer time based on the location you request with these auto values:
Times: daily
Date: today
dayligh saving: auto
method: auto based on location
$times = ; // array[String] | Status values that need to be considered for filter
$date = 2013-10-20; // date | 

try {
    $api_instance->getByDate($location, $times, $date);
} catch (Exception $e) {
    echo 'Exception when calling DateApi->getByDate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DateApi;

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

my $api_instance = WWW::SwaggerClient::DateApi->new();
my $location = location_example; # String | Fetch the prayer time based on the location you request with these auto values:
Times: daily
Date: today
dayligh saving: auto
method: auto based on location
my $times = []; # array[String] | Status values that need to be considered for filter
my $date = 2013-10-20; # date | 

eval { 
    $api_instance->getByDate(location => $location, times => $times, date => $date);
};
if ($@) {
    warn "Exception when calling DateApi->getByDate: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

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

# create an instance of the API class
api_instance = swagger_client.DateApi()
location = location_example # String | Fetch the prayer time based on the location you request with these auto values:
Times: daily
Date: today
dayligh saving: auto
method: auto based on location
times =  # array[String] | Status values that need to be considered for filter
date = 2013-10-20 # date | 

try: 
    # get prayer time by for the given date
    api_instance.get_by_date(location, times, date)
except ApiException as e:
    print("Exception when calling DateApi->getByDate: %s\n" % e)

Parameters

Path parameters
Name Description
Location*
String
Fetch the prayer time based on the location you request with these auto values: Times: daily Date: today dayligh saving: auto method: auto based on location
Required
Times*
array[String]
Status values that need to be considered for filter
Required
Date*
date (date)
Required
Header parameters
Name Description
apieco-key
String

Responses

Status: 200 - successful operation

Status: 400 - Invalid status value


DaylightSaving

getByDayLightSaving

set the dayligh savaing to true or false

show the prayer times for given date in the given timline of the specific location with daylight saving or not


/{Location}/{Times}/{Date}/{Daylight Saving}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/muslimsalat/{Location}/{Times}/{Date}/{Daylight Saving}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DaylightSavingApi;

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

public class DaylightSavingApiExample {

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

        DaylightSavingApi apiInstance = new DaylightSavingApi();
        String location = location_example; // String | Fetch the prayer time based on the location you request with these auto values:
Times: daily
Date: today
dayligh saving: auto
method: auto based on location
        array[String] times = ; // array[String] | Status values that need to be considered for filter
        date date = 2013-10-20; // date | specify the Date
        Boolean daylight Saving = true; // Boolean | specify the Date
        try {
            apiInstance.getByDayLightSaving(location, times, date, daylight Saving);
        } catch (ApiException e) {
            System.err.println("Exception when calling DaylightSavingApi#getByDayLightSaving");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DaylightSavingApi;

public class DaylightSavingApiExample {

    public static void main(String[] args) {
        DaylightSavingApi apiInstance = new DaylightSavingApi();
        String location = location_example; // String | Fetch the prayer time based on the location you request with these auto values:
Times: daily
Date: today
dayligh saving: auto
method: auto based on location
        array[String] times = ; // array[String] | Status values that need to be considered for filter
        date date = 2013-10-20; // date | specify the Date
        Boolean daylight Saving = true; // Boolean | specify the Date
        try {
            apiInstance.getByDayLightSaving(location, times, date, daylight Saving);
        } catch (ApiException e) {
            System.err.println("Exception when calling DaylightSavingApi#getByDayLightSaving");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

String *location = location_example; // Fetch the prayer time based on the location you request with these auto values:
Times: daily
Date: today
dayligh saving: auto
method: auto based on location
array[String] *times = ; // Status values that need to be considered for filter
date *date = 2013-10-20; // specify the Date
Boolean *daylight Saving = true; // specify the Date

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

// set the dayligh savaing to true or false
[apiInstance getByDayLightSavingWith:location
    times:times
    date:date
    daylight Saving:daylight Saving
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MuslimSalat = require('muslim_salat');
var defaultClient = MuslimSalat.ApiClient.instance;

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

var api = new MuslimSalat.DaylightSavingApi()

var location = location_example; // {String} Fetch the prayer time based on the location you request with these auto values:
Times: daily
Date: today
dayligh saving: auto
method: auto based on location

var times = ; // {array[String]} Status values that need to be considered for filter

var date = 2013-10-20; // {date} specify the Date

var daylight Saving = true; // {Boolean} specify the Date


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getByDayLightSaving(location, times, date, daylight Saving, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new DaylightSavingApi();
            var location = location_example;  // String | Fetch the prayer time based on the location you request with these auto values:
Times: daily
Date: today
dayligh saving: auto
method: auto based on location
            var times = new array[String](); // array[String] | Status values that need to be considered for filter
            var date = 2013-10-20;  // date | specify the Date
            var daylight Saving = true;  // Boolean | specify the Date

            try
            {
                // set the dayligh savaing to true or false
                apiInstance.getByDayLightSaving(location, times, date, daylight Saving);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DaylightSavingApi.getByDayLightSaving: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\DaylightSavingApi();
$location = location_example; // String | Fetch the prayer time based on the location you request with these auto values:
Times: daily
Date: today
dayligh saving: auto
method: auto based on location
$times = ; // array[String] | Status values that need to be considered for filter
$date = 2013-10-20; // date | specify the Date
$daylight Saving = true; // Boolean | specify the Date

try {
    $api_instance->getByDayLightSaving($location, $times, $date, $daylight Saving);
} catch (Exception $e) {
    echo 'Exception when calling DaylightSavingApi->getByDayLightSaving: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DaylightSavingApi;

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

my $api_instance = WWW::SwaggerClient::DaylightSavingApi->new();
my $location = location_example; # String | Fetch the prayer time based on the location you request with these auto values:
Times: daily
Date: today
dayligh saving: auto
method: auto based on location
my $times = []; # array[String] | Status values that need to be considered for filter
my $date = 2013-10-20; # date | specify the Date
my $daylight Saving = true; # Boolean | specify the Date

eval { 
    $api_instance->getByDayLightSaving(location => $location, times => $times, date => $date, daylight Saving => $daylight Saving);
};
if ($@) {
    warn "Exception when calling DaylightSavingApi->getByDayLightSaving: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

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

# create an instance of the API class
api_instance = swagger_client.DaylightSavingApi()
location = location_example # String | Fetch the prayer time based on the location you request with these auto values:
Times: daily
Date: today
dayligh saving: auto
method: auto based on location
times =  # array[String] | Status values that need to be considered for filter
date = 2013-10-20 # date | specify the Date
daylight Saving = true # Boolean | specify the Date

try: 
    # set the dayligh savaing to true or false
    api_instance.get_by_day_light_saving(location, times, date, daylight Saving)
except ApiException as e:
    print("Exception when calling DaylightSavingApi->getByDayLightSaving: %s\n" % e)

Parameters

Path parameters
Name Description
Location*
String
Fetch the prayer time based on the location you request with these auto values: Times: daily Date: today dayligh saving: auto method: auto based on location
Required
Times*
array[String]
Status values that need to be considered for filter
Required
Date*
date (date)
specify the Date
Required
Daylight Saving*
Boolean
specify the Date
Required
Header parameters
Name Description
apieco-key
String

Responses

Status: 200 - successful operation

Status: 400 - Invalid status value


Location

getByLoc

Fetch the prayer time based on the location you request

Fetch the prayer time based on the location you request with these auto values: Times: daily Date: today dayligh saving: auto method: auto based on location


/{Location}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/muslimsalat/{Location}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LocationApi;

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

public class LocationApiExample {

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

        LocationApi apiInstance = new LocationApi();
        String location = location_example; // String | Fetch the prayer time based on the location you request with these auto values:
Times: daily
Date: today
dayligh saving: auto
method: auto based on location
        String apiecoKey = apiecoKey_example; // String | 
        String key = key_example; // String | 
        try {
            apiInstance.getByLoc(location, apiecoKey, key);
        } catch (ApiException e) {
            System.err.println("Exception when calling LocationApi#getByLoc");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LocationApi;

public class LocationApiExample {

    public static void main(String[] args) {
        LocationApi apiInstance = new LocationApi();
        String location = location_example; // String | Fetch the prayer time based on the location you request with these auto values:
Times: daily
Date: today
dayligh saving: auto
method: auto based on location
        String apiecoKey = apiecoKey_example; // String | 
        String key = key_example; // String | 
        try {
            apiInstance.getByLoc(location, apiecoKey, key);
        } catch (ApiException e) {
            System.err.println("Exception when calling LocationApi#getByLoc");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

String *location = location_example; // Fetch the prayer time based on the location you request with these auto values:
Times: daily
Date: today
dayligh saving: auto
method: auto based on location
String *apiecoKey = apiecoKey_example; //  (optional)
String *key = key_example; //  (optional)

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

// Fetch the prayer time based on the location you request
[apiInstance getByLocWith:location
    apiecoKey:apiecoKey
    key:key
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MuslimSalat = require('muslim_salat');
var defaultClient = MuslimSalat.ApiClient.instance;

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

var api = new MuslimSalat.LocationApi()

var location = location_example; // {String} Fetch the prayer time based on the location you request with these auto values:
Times: daily
Date: today
dayligh saving: auto
method: auto based on location

var opts = { 
  'apiecoKey': apiecoKey_example, // {String} 
  'key': key_example // {String} 
};

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

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

            var apiInstance = new LocationApi();
            var location = location_example;  // String | Fetch the prayer time based on the location you request with these auto values:
Times: daily
Date: today
dayligh saving: auto
method: auto based on location
            var apiecoKey = apiecoKey_example;  // String |  (optional) 
            var key = key_example;  // String |  (optional) 

            try
            {
                // Fetch the prayer time based on the location you request
                apiInstance.getByLoc(location, apiecoKey, key);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LocationApi.getByLoc: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\LocationApi();
$location = location_example; // String | Fetch the prayer time based on the location you request with these auto values:
Times: daily
Date: today
dayligh saving: auto
method: auto based on location
$apiecoKey = apiecoKey_example; // String | 
$key = key_example; // String | 

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

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

my $api_instance = WWW::SwaggerClient::LocationApi->new();
my $location = location_example; # String | Fetch the prayer time based on the location you request with these auto values:
Times: daily
Date: today
dayligh saving: auto
method: auto based on location
my $apiecoKey = apiecoKey_example; # String | 
my $key = key_example; # String | 

eval { 
    $api_instance->getByLoc(location => $location, apiecoKey => $apiecoKey, key => $key);
};
if ($@) {
    warn "Exception when calling LocationApi->getByLoc: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

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

# create an instance of the API class
api_instance = swagger_client.LocationApi()
location = location_example # String | Fetch the prayer time based on the location you request with these auto values:
Times: daily
Date: today
dayligh saving: auto
method: auto based on location
apiecoKey = apiecoKey_example # String |  (optional)
key = key_example # String |  (optional)

try: 
    # Fetch the prayer time based on the location you request
    api_instance.get_by_loc(location, apiecoKey=apiecoKey, key=key)
except ApiException as e:
    print("Exception when calling LocationApi->getByLoc: %s\n" % e)

Parameters

Path parameters
Name Description
Location*
String
Fetch the prayer time based on the location you request with these auto values: Times: daily Date: today dayligh saving: auto method: auto based on location
Required
Header parameters
Name Description
apieco-key
String

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input


Method

getByMethod

Define the Method for calculation of the timing

1 = Egyptian General Authority of Survey 2 = University Of Islamic Sciences, Karachi (Shafi) 3 = University Of Islamic Sciences, Karachi (Hanafi) 4 = Islamic Circle of North America 5 = Muslim World League 6 = Umm Al-Qura 7 = Fixed Isha


/{Location}/{Times}/{Date}/{Daylight Saving}/{Method}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/muslimsalat/{Location}/{Times}/{Date}/{Daylight Saving}/{Method}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MethodApi;

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

public class MethodApiExample {

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

        MethodApi apiInstance = new MethodApi();
        String location = location_example; // String | Fetch the prayer time based on the location you request with these auto values:
Times: daily
Date: today
dayligh saving: auto
method: auto based on location
        array[String] times = ; // array[String] | Status values that need to be considered for filter
        date date = 2013-10-20; // date | specify the Date
        Boolean daylight Saving = true; // Boolean | specify the Date
        array[BigDecimal] method = ; // array[BigDecimal] | 
        try {
            apiInstance.locationTimesDateDaylightSavingMethodGet(location, times, date, daylight Saving, method);
        } catch (ApiException e) {
            System.err.println("Exception when calling MethodApi#locationTimesDateDaylightSavingMethodGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MethodApi;

public class MethodApiExample {

    public static void main(String[] args) {
        MethodApi apiInstance = new MethodApi();
        String location = location_example; // String | Fetch the prayer time based on the location you request with these auto values:
Times: daily
Date: today
dayligh saving: auto
method: auto based on location
        array[String] times = ; // array[String] | Status values that need to be considered for filter
        date date = 2013-10-20; // date | specify the Date
        Boolean daylight Saving = true; // Boolean | specify the Date
        array[BigDecimal] method = ; // array[BigDecimal] | 
        try {
            apiInstance.locationTimesDateDaylightSavingMethodGet(location, times, date, daylight Saving, method);
        } catch (ApiException e) {
            System.err.println("Exception when calling MethodApi#locationTimesDateDaylightSavingMethodGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

String *location = location_example; // Fetch the prayer time based on the location you request with these auto values:
Times: daily
Date: today
dayligh saving: auto
method: auto based on location
array[String] *times = ; // Status values that need to be considered for filter
date *date = 2013-10-20; // specify the Date
Boolean *daylight Saving = true; // specify the Date
array[BigDecimal] *method = ; // 

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

// Define the Method for calculation of the timing
[apiInstance locationTimesDateDaylightSavingMethodGetWith:location
    times:times
    date:date
    daylight Saving:daylight Saving
    method:method
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MuslimSalat = require('muslim_salat');
var defaultClient = MuslimSalat.ApiClient.instance;

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

var api = new MuslimSalat.MethodApi()

var location = location_example; // {String} Fetch the prayer time based on the location you request with these auto values:
Times: daily
Date: today
dayligh saving: auto
method: auto based on location

var times = ; // {array[String]} Status values that need to be considered for filter

var date = 2013-10-20; // {date} specify the Date

var daylight Saving = true; // {Boolean} specify the Date

var method = ; // {array[BigDecimal]} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.locationTimesDateDaylightSavingMethodGet(location, times, date, daylight Saving, method, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new MethodApi();
            var location = location_example;  // String | Fetch the prayer time based on the location you request with these auto values:
Times: daily
Date: today
dayligh saving: auto
method: auto based on location
            var times = new array[String](); // array[String] | Status values that need to be considered for filter
            var date = 2013-10-20;  // date | specify the Date
            var daylight Saving = true;  // Boolean | specify the Date
            var method = new array[BigDecimal](); // array[BigDecimal] | 

            try
            {
                // Define the Method for calculation of the timing
                apiInstance.locationTimesDateDaylightSavingMethodGet(location, times, date, daylight Saving, method);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MethodApi.locationTimesDateDaylightSavingMethodGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\MethodApi();
$location = location_example; // String | Fetch the prayer time based on the location you request with these auto values:
Times: daily
Date: today
dayligh saving: auto
method: auto based on location
$times = ; // array[String] | Status values that need to be considered for filter
$date = 2013-10-20; // date | specify the Date
$daylight Saving = true; // Boolean | specify the Date
$method = ; // array[BigDecimal] | 

try {
    $api_instance->locationTimesDateDaylightSavingMethodGet($location, $times, $date, $daylight Saving, $method);
} catch (Exception $e) {
    echo 'Exception when calling MethodApi->locationTimesDateDaylightSavingMethodGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MethodApi;

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

my $api_instance = WWW::SwaggerClient::MethodApi->new();
my $location = location_example; # String | Fetch the prayer time based on the location you request with these auto values:
Times: daily
Date: today
dayligh saving: auto
method: auto based on location
my $times = []; # array[String] | Status values that need to be considered for filter
my $date = 2013-10-20; # date | specify the Date
my $daylight Saving = true; # Boolean | specify the Date
my $method = []; # array[BigDecimal] | 

eval { 
    $api_instance->locationTimesDateDaylightSavingMethodGet(location => $location, times => $times, date => $date, daylight Saving => $daylight Saving, method => $method);
};
if ($@) {
    warn "Exception when calling MethodApi->locationTimesDateDaylightSavingMethodGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

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

# create an instance of the API class
api_instance = swagger_client.MethodApi()
location = location_example # String | Fetch the prayer time based on the location you request with these auto values:
Times: daily
Date: today
dayligh saving: auto
method: auto based on location
times =  # array[String] | Status values that need to be considered for filter
date = 2013-10-20 # date | specify the Date
daylight Saving = true # Boolean | specify the Date
method =  # array[BigDecimal] | 

try: 
    # Define the Method for calculation of the timing
    api_instance.location_times_date_daylight_saving_method_get(location, times, date, daylight Saving, method)
except ApiException as e:
    print("Exception when calling MethodApi->locationTimesDateDaylightSavingMethodGet: %s\n" % e)

Parameters

Path parameters
Name Description
Location*
String
Fetch the prayer time based on the location you request with these auto values: Times: daily Date: today dayligh saving: auto method: auto based on location
Required
Times*
array[String]
Status values that need to be considered for filter
Required
Date*
date (date)
specify the Date
Required
Daylight Saving*
Boolean
specify the Date
Required
Method*
array[BigDecimal]
Required
Header parameters
Name Description
apieco-key
String

Responses

Status: 200 - successful operation

Status: 400 - Invalid status value


QiblaCompassImage

qiblaCompass

Qibla compass images are based on given direction from the api response.


/qibla_compass/{size}/{direction}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/muslimsalat/qibla_compass/{size}/{direction}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.QiblaCompassImageApi;

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

public class QiblaCompassImageApiExample {

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

        QiblaCompassImageApi apiInstance = new QiblaCompassImageApi();
        BigDecimal size = 8.14; // BigDecimal | Size of the image you want to show (between 50 to 600)
        BigDecimal direction = 8.14; // BigDecimal | Direction degree from json response
        try {
            map['String', 'Integer'] result = apiInstance.qiblaCompass(size, direction);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QiblaCompassImageApi#qiblaCompass");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.QiblaCompassImageApi;

public class QiblaCompassImageApiExample {

    public static void main(String[] args) {
        QiblaCompassImageApi apiInstance = new QiblaCompassImageApi();
        BigDecimal size = 8.14; // BigDecimal | Size of the image you want to show (between 50 to 600)
        BigDecimal direction = 8.14; // BigDecimal | Direction degree from json response
        try {
            map['String', 'Integer'] result = apiInstance.qiblaCompass(size, direction);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QiblaCompassImageApi#qiblaCompass");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

BigDecimal *size = 8.14; // Size of the image you want to show (between 50 to 600)
BigDecimal *direction = 8.14; // Direction degree from json response

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

// Qibla compass images are based on given direction from the api response.
[apiInstance qiblaCompassWith:size
    direction:direction
              completionHandler: ^(map['String', 'Integer'] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MuslimSalat = require('muslim_salat');
var defaultClient = MuslimSalat.ApiClient.instance;

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

var api = new MuslimSalat.QiblaCompassImageApi()

var size = 8.14; // {BigDecimal} Size of the image you want to show (between 50 to 600)

var direction = 8.14; // {BigDecimal} Direction degree from json response


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

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

            var apiInstance = new QiblaCompassImageApi();
            var size = 8.14;  // BigDecimal | Size of the image you want to show (between 50 to 600)
            var direction = 8.14;  // BigDecimal | Direction degree from json response

            try
            {
                // Qibla compass images are based on given direction from the api response.
                map['String', 'Integer'] result = apiInstance.qiblaCompass(size, direction);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling QiblaCompassImageApi.qiblaCompass: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\QiblaCompassImageApi();
$size = 8.14; // BigDecimal | Size of the image you want to show (between 50 to 600)
$direction = 8.14; // BigDecimal | Direction degree from json response

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

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

my $api_instance = WWW::SwaggerClient::QiblaCompassImageApi->new();
my $size = 8.14; # BigDecimal | Size of the image you want to show (between 50 to 600)
my $direction = 8.14; # BigDecimal | Direction degree from json response

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

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

# create an instance of the API class
api_instance = swagger_client.QiblaCompassImageApi()
size = 8.14 # BigDecimal | Size of the image you want to show (between 50 to 600)
direction = 8.14 # BigDecimal | Direction degree from json response

try: 
    # Qibla compass images are based on given direction from the api response.
    api_response = api_instance.qibla_compass(size, direction)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling QiblaCompassImageApi->qiblaCompass: %s\n" % e)

Parameters

Path parameters
Name Description
size*
BigDecimal
Size of the image you want to show (between 50 to 600)
Required
direction*
BigDecimal
Direction degree from json response
Required
Header parameters
Name Description
apieco-key
String

Responses

Status: 200 - successful operation


Times

getByTime

get prayer time by the folllowing timeline

daily- weekly- monthly- yearly


/{Location}/{Times}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/muslimsalat/{Location}/{Times}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TimesApi;

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

public class TimesApiExample {

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

        TimesApi apiInstance = new TimesApi();
        String location = location_example; // String | Fetch the prayer time based on the location you request with these 

auto values:
Date: today
dayligh saving: auto
method: auto based on location
        array[String] times = ; // array[String] | Status values that need to be considered for filter
        try {
            apiInstance.getByTime(location, times);
        } catch (ApiException e) {
            System.err.println("Exception when calling TimesApi#getByTime");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TimesApi;

public class TimesApiExample {

    public static void main(String[] args) {
        TimesApi apiInstance = new TimesApi();
        String location = location_example; // String | Fetch the prayer time based on the location you request with these 

auto values:
Date: today
dayligh saving: auto
method: auto based on location
        array[String] times = ; // array[String] | Status values that need to be considered for filter
        try {
            apiInstance.getByTime(location, times);
        } catch (ApiException e) {
            System.err.println("Exception when calling TimesApi#getByTime");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

String *location = location_example; // Fetch the prayer time based on the location you request with these 

auto values:
Date: today
dayligh saving: auto
method: auto based on location
array[String] *times = ; // Status values that need to be considered for filter

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

// get prayer time by the folllowing timeline
[apiInstance getByTimeWith:location
    times:times
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MuslimSalat = require('muslim_salat');
var defaultClient = MuslimSalat.ApiClient.instance;

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

var api = new MuslimSalat.TimesApi()

var location = location_example; // {String} Fetch the prayer time based on the location you request with these 

auto values:
Date: today
dayligh saving: auto
method: auto based on location

var times = ; // {array[String]} Status values that need to be considered for filter


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

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

            var apiInstance = new TimesApi();
            var location = location_example;  // String | Fetch the prayer time based on the location you request with these 

auto values:
Date: today
dayligh saving: auto
method: auto based on location
            var times = new array[String](); // array[String] | Status values that need to be considered for filter

            try
            {
                // get prayer time by the folllowing timeline
                apiInstance.getByTime(location, times);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TimesApi.getByTime: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\TimesApi();
$location = location_example; // String | Fetch the prayer time based on the location you request with these 

auto values:
Date: today
dayligh saving: auto
method: auto based on location
$times = ; // array[String] | Status values that need to be considered for filter

try {
    $api_instance->getByTime($location, $times);
} catch (Exception $e) {
    echo 'Exception when calling TimesApi->getByTime: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TimesApi;

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

my $api_instance = WWW::SwaggerClient::TimesApi->new();
my $location = location_example; # String | Fetch the prayer time based on the location you request with these 

auto values:
Date: today
dayligh saving: auto
method: auto based on location
my $times = []; # array[String] | Status values that need to be considered for filter

eval { 
    $api_instance->getByTime(location => $location, times => $times);
};
if ($@) {
    warn "Exception when calling TimesApi->getByTime: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

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

# create an instance of the API class
api_instance = swagger_client.TimesApi()
location = location_example # String | Fetch the prayer time based on the location you request with these 

auto values:
Date: today
dayligh saving: auto
method: auto based on location
times =  # array[String] | Status values that need to be considered for filter

try: 
    # get prayer time by the folllowing timeline
    api_instance.get_by_time(location, times)
except ApiException as e:
    print("Exception when calling TimesApi->getByTime: %s\n" % e)

Parameters

Path parameters
Name Description
Location*
String
Fetch the prayer time based on the location you request with these auto values: Date: today dayligh saving: auto method: auto based on location
Required
Times*
array[String]
Status values that need to be considered for filter
Required
Header parameters
Name Description
apieco-key
String

Responses

Status: 200 - successful operation

Status: 400 - Invalid status value