aviny

Currency

apiPrayertimesCitycodeGet


/api/prayertimes/{Citycode}

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/prayer_aviny/api/prayertimes/{Citycode}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CurrencyApi;

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

public class CurrencyApiExample {

    public static void main(String[] args) {
        
        CurrencyApi apiInstance = new CurrencyApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String citycode = citycode_example; // String | کد شهر
        try {
            inline_response_200 result = apiInstance.apiPrayertimesCitycodeGet(apiecoKey, citycode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CurrencyApi#apiPrayertimesCitycodeGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CurrencyApi;

public class CurrencyApiExample {

    public static void main(String[] args) {
        CurrencyApi apiInstance = new CurrencyApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String citycode = citycode_example; // String | کد شهر
        try {
            inline_response_200 result = apiInstance.apiPrayertimesCitycodeGet(apiecoKey, citycode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CurrencyApi#apiPrayertimesCitycodeGet");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *citycode = citycode_example; // کد شهر

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

[apiInstance apiPrayertimesCitycodeGetWith:apiecoKey
    citycode:citycode
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Aviny = require('aviny');

var api = new Aviny.CurrencyApi()

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

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


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

namespace Example
{
    public class apiPrayertimesCitycodeGetExample
    {
        public void main()
        {
            
            var apiInstance = new CurrencyApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var citycode = citycode_example;  // String | کد شهر

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

$api_instance = new Swagger\Client\Api\CurrencyApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$citycode = citycode_example; // String | کد شهر

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

my $api_instance = WWW::SwaggerClient::CurrencyApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $citycode = citycode_example; # String | کد شهر

eval { 
    my $result = $api_instance->apiPrayertimesCitycodeGet(apiecoKey => $apiecoKey, citycode => $citycode);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CurrencyApi->apiPrayertimesCitycodeGet: $@\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.CurrencyApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
citycode = citycode_example # String | کد شهر

try: 
    api_response = api_instance.api_prayertimes_citycode_get(apiecoKey, citycode)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CurrencyApi->apiPrayertimesCitycodeGet: %s\n" % e)

Parameters

Path parameters
Name Description
Citycode*
String
کد شهر
Required
Header parameters
Name Description
apieco-key*
String
apikey for use API
Required

Responses

Status: 200 - 200 response