info
Getting information on a Link
/v2/info
Usage and SDK Samples
curl -X GET "https://api.apieco.ir/shortcode/v2/info"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.GettingInformationOnALinkApi;
import java.io.File;
import java.util.*;
public class GettingInformationOnALinkApiExample {
public static void main(String[] args) {
GettingInformationOnALinkApi apiInstance = new GettingInformationOnALinkApi();
String apiecoKey = apiecoKey_example; // String |
try {
inline_response_200_1 result = apiInstance.info(apiecoKey);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling GettingInformationOnALinkApi#info");
e.printStackTrace();
}
}
}
import io.swagger.client.api.GettingInformationOnALinkApi;
public class GettingInformationOnALinkApiExample {
public static void main(String[] args) {
GettingInformationOnALinkApi apiInstance = new GettingInformationOnALinkApi();
String apiecoKey = apiecoKey_example; // String |
try {
inline_response_200_1 result = apiInstance.info(apiecoKey);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling GettingInformationOnALinkApi#info");
e.printStackTrace();
}
}
}
String *apiecoKey = apiecoKey_example; //
GettingInformationOnALinkApi *apiInstance = [[GettingInformationOnALinkApi alloc] init];
// Getting information on a Link
[apiInstance infoWith:apiecoKey
completionHandler: ^(inline_response_200_1 output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var ShrtcodeApiDocumentation = require('shrtcode_api_documentation');
var api = new ShrtcodeApiDocumentation.GettingInformationOnALinkApi()
var apiecoKey = apiecoKey_example; // {String}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.info(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class infoExample
{
public void main()
{
var apiInstance = new GettingInformationOnALinkApi();
var apiecoKey = apiecoKey_example; // String |
try
{
// Getting information on a Link
inline_response_200_1 result = apiInstance.info(apiecoKey);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling GettingInformationOnALinkApi.info: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\GettingInformationOnALinkApi();
$apiecoKey = apiecoKey_example; // String |
try {
$result = $api_instance->info($apiecoKey);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling GettingInformationOnALinkApi->info: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::GettingInformationOnALinkApi;
my $api_instance = WWW::SwaggerClient::GettingInformationOnALinkApi->new();
my $apiecoKey = apiecoKey_example; # String |
eval {
my $result = $api_instance->info(apiecoKey => $apiecoKey);
print Dumper($result);
};
if ($@) {
warn "Exception when calling GettingInformationOnALinkApi->info: $@\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.GettingInformationOnALinkApi()
apiecoKey = apiecoKey_example # String |
try:
# Getting information on a Link
api_response = api_instance.info(apiecoKey)
pprint(api_response)
except ApiException as e:
print("Exception when calling GettingInformationOnALinkApi->info: %s\n" % e)
Parameters
Header parameters
Name | Description |
---|---|
apieco-key* |
String
Required
|