cityfromstatePost
/cityfromstate
Usage and SDK Samples
curl -X POST "https://api.apieco.ir/zagma/cityfromstate"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CityfromstateApi;
import java.io.File;
import java.util.*;
public class CityfromstateApiExample {
public static void main(String[] args) {
CityfromstateApi apiInstance = new CityfromstateApi();
String apiecoKey = apiecoKey_example; // String | apikey for use API
try {
apiInstance.cityfromstatePost(apiecoKey);
} catch (ApiException e) {
System.err.println("Exception when calling CityfromstateApi#cityfromstatePost");
e.printStackTrace();
}
}
}
import io.swagger.client.api.CityfromstateApi;
public class CityfromstateApiExample {
public static void main(String[] args) {
CityfromstateApi apiInstance = new CityfromstateApi();
String apiecoKey = apiecoKey_example; // String | apikey for use API
try {
apiInstance.cityfromstatePost(apiecoKey);
} catch (ApiException e) {
System.err.println("Exception when calling CityfromstateApi#cityfromstatePost");
e.printStackTrace();
}
}
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
CityfromstateApi *apiInstance = [[CityfromstateApi alloc] init];
[apiInstance cityfromstatePostWith:apiecoKey
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var SwaggerJsClient = require('swagger-js-client');
var api = new SwaggerJsClient.CityfromstateApi()
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.');
}
};
api.cityfromstatePost(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class cityfromstatePostExample
{
public void main()
{
var apiInstance = new CityfromstateApi();
var apiecoKey = apiecoKey_example; // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
try
{
apiInstance.cityfromstatePost(apiecoKey);
}
catch (Exception e)
{
Debug.Print("Exception when calling CityfromstateApi.cityfromstatePost: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\CityfromstateApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
try {
$api_instance->cityfromstatePost($apiecoKey);
} catch (Exception $e) {
echo 'Exception when calling CityfromstateApi->cityfromstatePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CityfromstateApi;
my $api_instance = WWW::SwaggerClient::CityfromstateApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
eval {
$api_instance->cityfromstatePost(apiecoKey => $apiecoKey);
};
if ($@) {
warn "Exception when calling CityfromstateApi->cityfromstatePost: $@\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.CityfromstateApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
try:
api_instance.cityfromstate_post(apiecoKey)
except ApiException as e:
print("Exception when calling CityfromstateApi->cityfromstatePost: %s\n" % e)
Parameters
Header parameters
Name | Description |
---|---|
apieco-key* |
String
apikey for use API
Required
|