v2PhpGet
getnum
/v2.php/
Usage and SDK Samples
curl -X GET "https://api.apieco.ir/numberland/v2.php/?apikey=&method=&country=&operator=&service="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api._Api;
import java.io.File;
import java.util.*;
public class _ApiExample {
public static void main(String[] args) {
_Api apiInstance = new _Api();
String apiecoKey = apiecoKey_example; // String | apikey for use API
String apikey = apikey_example; // String | API_CODE
String method = method_example; // String | getnum
String country = country_example; // String | COUNTRY_CODE
String operator = operator_example; // String | OPERATOR_CODE
String service = service_example; // String | SERVICE_CODE
try {
inline_response_200 result = apiInstance.v2PhpGet(apiecoKey, apikey, method, country, operator, service);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling _Api#v2PhpGet");
e.printStackTrace();
}
}
}
import io.swagger.client.api._Api;
public class _ApiExample {
public static void main(String[] args) {
_Api apiInstance = new _Api();
String apiecoKey = apiecoKey_example; // String | apikey for use API
String apikey = apikey_example; // String | API_CODE
String method = method_example; // String | getnum
String country = country_example; // String | COUNTRY_CODE
String operator = operator_example; // String | OPERATOR_CODE
String service = service_example; // String | SERVICE_CODE
try {
inline_response_200 result = apiInstance.v2PhpGet(apiecoKey, apikey, method, country, operator, service);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling _Api#v2PhpGet");
e.printStackTrace();
}
}
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *apikey = apikey_example; // API_CODE (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *method = method_example; // getnum (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *country = country_example; // COUNTRY_CODE (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *operator = operator_example; // OPERATOR_CODE (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *service = service_example; // SERVICE_CODE (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
_Api *apiInstance = [[_Api alloc] init];
// getnum
[apiInstance v2PhpGetWith:apiecoKey
apikey:apikey
method:method
country:country
operator:operator
service:service
completionHandler: ^(inline_response_200 output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var Numberland = require('numberland');
var api = new Numberland._Api()
var apiecoKey = apiecoKey_example; // {String} apikey for use API
var apikey = apikey_example; // {String} API_CODE
var method = method_example; // {String} getnum
var country = country_example; // {String} COUNTRY_CODE
var operator = operator_example; // {String} OPERATOR_CODE
var service = service_example; // {String} SERVICE_CODE
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.v2PhpGet(apiecoKey, apikey, method, country, operator, service, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class v2PhpGetExample
{
public void main()
{
var apiInstance = new _Api();
var apiecoKey = apiecoKey_example; // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
var apikey = apikey_example; // String | API_CODE (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
var method = method_example; // String | getnum (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
var country = country_example; // String | COUNTRY_CODE (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
var operator = operator_example; // String | OPERATOR_CODE (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
var service = service_example; // String | SERVICE_CODE (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
try
{
// getnum
inline_response_200 result = apiInstance.v2PhpGet(apiecoKey, apikey, method, country, operator, service);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling _Api.v2PhpGet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\_Api();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$apikey = apikey_example; // String | API_CODE
$method = method_example; // String | getnum
$country = country_example; // String | COUNTRY_CODE
$operator = operator_example; // String | OPERATOR_CODE
$service = service_example; // String | SERVICE_CODE
try {
$result = $api_instance->v2PhpGet($apiecoKey, $apikey, $method, $country, $operator, $service);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling _Api->v2PhpGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::_Api;
my $api_instance = WWW::SwaggerClient::_Api->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $apikey = apikey_example; # String | API_CODE
my $method = method_example; # String | getnum
my $country = country_example; # String | COUNTRY_CODE
my $operator = operator_example; # String | OPERATOR_CODE
my $service = service_example; # String | SERVICE_CODE
eval {
my $result = $api_instance->v2PhpGet(apiecoKey => $apiecoKey, apikey => $apikey, method => $method, country => $country, operator => $operator, service => $service);
print Dumper($result);
};
if ($@) {
warn "Exception when calling _Api->v2PhpGet: $@\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._Api()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
apikey = apikey_example # String | API_CODE (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
method = method_example # String | getnum (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
country = country_example # String | COUNTRY_CODE (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
operator = operator_example # String | OPERATOR_CODE (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
service = service_example # String | SERVICE_CODE (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
try:
# getnum
api_response = api_instance.v2_php_get(apiecoKey, apikey, method, country, operator, service)
pprint(api_response)
except ApiException as e:
print("Exception when calling _Api->v2PhpGet: %s\n" % e)
Parameters
Header parameters
Name | Description |
---|---|
apieco-key* |
String
apikey for use API
Required
|
Query parameters
Name | Description |
---|---|
apikey* |
String
API_CODE
Required
|
method* |
String
getnum
Required
|
country* |
String
COUNTRY_CODE
Required
|
operator* |
String
OPERATOR_CODE
Required
|
service* |
String
SERVICE_CODE
Required
|