accountInformation
This API endpoint enables you to get information regarding your Hunter account at any time. This call is free.
/account
Usage and SDK Samples
curl -X GET "https://api.apieco.ir/hunter/v2/account?api_key="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AccountInformationApi;
import java.io.File;
import java.util.*;
public class AccountInformationApiExample {
public static void main(String[] args) {
AccountInformationApi apiInstance = new AccountInformationApi();
String apiecoKey = apiecoKey_example; // String |
String apiKey = apiKey_example; // String | Don't change the value
try {
inline_response_200_4 result = apiInstance.accountInformation(apiecoKey, apiKey);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountInformationApi#accountInformation");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AccountInformationApi;
public class AccountInformationApiExample {
public static void main(String[] args) {
AccountInformationApi apiInstance = new AccountInformationApi();
String apiecoKey = apiecoKey_example; // String |
String apiKey = apiKey_example; // String | Don't change the value
try {
inline_response_200_4 result = apiInstance.accountInformation(apiecoKey, apiKey);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountInformationApi#accountInformation");
e.printStackTrace();
}
}
}
String *apiecoKey = apiecoKey_example; //
String *apiKey = apiKey_example; // Don't change the value (default to 7c3e3b113cb33e1d6d08c9e2f7205ae48e0f4bee)
AccountInformationApi *apiInstance = [[AccountInformationApi alloc] init];
[apiInstance accountInformationWith:apiecoKey
apiKey:apiKey
completionHandler: ^(inline_response_200_4 output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var HuntersApiDocumentation = require('hunters_api_documentation');
var api = new HuntersApiDocumentation.AccountInformationApi()
var apiecoKey = apiecoKey_example; // {String}
var apiKey = apiKey_example; // {String} Don't change the value
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.accountInformation(apiecoKey, apiKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class accountInformationExample
{
public void main()
{
var apiInstance = new AccountInformationApi();
var apiecoKey = apiecoKey_example; // String |
var apiKey = apiKey_example; // String | Don't change the value (default to 7c3e3b113cb33e1d6d08c9e2f7205ae48e0f4bee)
try
{
inline_response_200_4 result = apiInstance.accountInformation(apiecoKey, apiKey);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling AccountInformationApi.accountInformation: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\AccountInformationApi();
$apiecoKey = apiecoKey_example; // String |
$apiKey = apiKey_example; // String | Don't change the value
try {
$result = $api_instance->accountInformation($apiecoKey, $apiKey);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AccountInformationApi->accountInformation: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AccountInformationApi;
my $api_instance = WWW::SwaggerClient::AccountInformationApi->new();
my $apiecoKey = apiecoKey_example; # String |
my $apiKey = apiKey_example; # String | Don't change the value
eval {
my $result = $api_instance->accountInformation(apiecoKey => $apiecoKey, apiKey => $apiKey);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AccountInformationApi->accountInformation: $@\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.AccountInformationApi()
apiecoKey = apiecoKey_example # String |
apiKey = apiKey_example # String | Don't change the value (default to 7c3e3b113cb33e1d6d08c9e2f7205ae48e0f4bee)
try:
api_response = api_instance.account_information(apiecoKey, apiKey)
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountInformationApi->accountInformation: %s\n" % e)
Parameters
Name | Description |
---|---|
apieco-key* |
String
Required
|
Name | Description |
---|---|
api_key* |
String
Don't change the value
Required
|