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