sitemap_api

GetSitemap

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

Responses

Status: 200 - yor sitemap as xml format

Status: 202 - Not Valid Url

Status: 400 - Bad Request

Status: 404 - Not Found

Status: 405 - Method Not Allowed

Status: 500 - Internal Server Error


Register

register

normal sitemap register


/apitalk/sitemap/register/

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/apitalk/sitemap/register/"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RegisterApi;

import java.io.File;
import java.util.*;

public class RegisterApiExample {

    public static void main(String[] args) {
        
        RegisterApi apiInstance = new RegisterApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String address = address_example; // String | your website address
        try {
            register result = apiInstance.register(apiecoKey, address);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RegisterApi#register");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RegisterApi;

public class RegisterApiExample {

    public static void main(String[] args) {
        RegisterApi apiInstance = new RegisterApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String address = address_example; // String | your website address
        try {
            register result = apiInstance.register(apiecoKey, address);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RegisterApi#register");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API
String *address = address_example; // your website address

RegisterApi *apiInstance = [[RegisterApi alloc] init];

// 
[apiInstance registerWith:apiecoKey
    address:address
              completionHandler: ^(register output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SitemapApi = require('sitemap_api');

var api = new SitemapApi.RegisterApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var address = address_example; // {String} your website address


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.register(apiecoKey, address, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class registerExample
    {
        public void main()
        {
            
            var apiInstance = new RegisterApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API
            var address = address_example;  // String | your website address

            try
            {
                // 
                register result = apiInstance.register(apiecoKey, address);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RegisterApi.register: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\RegisterApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$address = address_example; // String | your website address

try {
    $result = $api_instance->register($apiecoKey, $address);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RegisterApi->register: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RegisterApi;

my $api_instance = WWW::SwaggerClient::RegisterApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $address = address_example; # String | your website address

eval { 
    my $result = $api_instance->register(apiecoKey => $apiecoKey, address => $address);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RegisterApi->register: $@\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.RegisterApi()
apiecoKey = apiecoKey_example # String | apikey for use API
address = address_example # String | your website address

try: 
    # 
    api_response = api_instance.register(apiecoKey, address)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RegisterApi->register: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Form parameters
Name Description
Address*
String
your website address
Required

Responses

Status: 200 - This REST API return HTTP responses in JSON formats:

Status: 202 - Not Valid Url

Status: 400 - Bad Request

Status: 404 - Not Found

Status: 405 - Method Not Allowed

Status: 500 - Internal Server Error


registerImage

image sitemap register


/apitalk/sitemap/register/image/

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/apitalk/sitemap/register/image/"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RegisterApi;

import java.io.File;
import java.util.*;

public class RegisterApiExample {

    public static void main(String[] args) {
        
        RegisterApi apiInstance = new RegisterApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String address = address_example; // String | your website address
        try {
            register result = apiInstance.registerImage(apiecoKey, address);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RegisterApi#registerImage");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RegisterApi;

public class RegisterApiExample {

    public static void main(String[] args) {
        RegisterApi apiInstance = new RegisterApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String address = address_example; // String | your website address
        try {
            register result = apiInstance.registerImage(apiecoKey, address);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RegisterApi#registerImage");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API
String *address = address_example; // your website address

RegisterApi *apiInstance = [[RegisterApi alloc] init];

// 
[apiInstance registerImageWith:apiecoKey
    address:address
              completionHandler: ^(register output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SitemapApi = require('sitemap_api');

var api = new SitemapApi.RegisterApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var address = address_example; // {String} your website address


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.registerImage(apiecoKey, address, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class registerImageExample
    {
        public void main()
        {
            
            var apiInstance = new RegisterApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API
            var address = address_example;  // String | your website address

            try
            {
                // 
                register result = apiInstance.registerImage(apiecoKey, address);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RegisterApi.registerImage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\RegisterApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$address = address_example; // String | your website address

try {
    $result = $api_instance->registerImage($apiecoKey, $address);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RegisterApi->registerImage: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RegisterApi;

my $api_instance = WWW::SwaggerClient::RegisterApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $address = address_example; # String | your website address

eval { 
    my $result = $api_instance->registerImage(apiecoKey => $apiecoKey, address => $address);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RegisterApi->registerImage: $@\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.RegisterApi()
apiecoKey = apiecoKey_example # String | apikey for use API
address = address_example # String | your website address

try: 
    # 
    api_response = api_instance.register_image(apiecoKey, address)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RegisterApi->registerImage: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Form parameters
Name Description
Address*
String
your website address
Required

Responses

Status: 200 - This REST API return HTTP responses in JSON formats:

Status: 202 - Not Valid Url

Status: 400 - Bad Request

Status: 404 - Not Found

Status: 405 - Method Not Allowed

Status: 500 - Internal Server Error


Update

update

update your sitemap


/apitalk/sitemap/update/<int:id>/

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/apitalk/sitemap/update/<int:id>/"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UpdateApi;

import java.io.File;
import java.util.*;

public class UpdateApiExample {

    public static void main(String[] args) {
        
        UpdateApi apiInstance = new UpdateApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        try {
            register result = apiInstance.update(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UpdateApi#update");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UpdateApi;

public class UpdateApiExample {

    public static void main(String[] args) {
        UpdateApi apiInstance = new UpdateApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        try {
            register result = apiInstance.update(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UpdateApi#update");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API

UpdateApi *apiInstance = [[UpdateApi alloc] init];

// 
[apiInstance updateWith:apiecoKey
              completionHandler: ^(register output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SitemapApi = require('sitemap_api');

var api = new SitemapApi.UpdateApi()

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. Returned data: ' + data);
  }
};
api.update(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateExample
    {
        public void main()
        {
            
            var apiInstance = new UpdateApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API

            try
            {
                // 
                register result = apiInstance.update(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UpdateApi.update: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\UpdateApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API

try {
    $result = $api_instance->update($apiecoKey);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UpdateApi->update: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UpdateApi;

my $api_instance = WWW::SwaggerClient::UpdateApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API

eval { 
    my $result = $api_instance->update(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UpdateApi->update: $@\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.UpdateApi()
apiecoKey = apiecoKey_example # String | apikey for use API

try: 
    # 
    api_response = api_instance.update(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UpdateApi->update: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required

Responses

Status: 200 - yor respanse like :

Status: 202 - Not Valid Url

Status: 400 - Bad Request

Status: 404 - Not Found

Status: 405 - Method Not Allowed

Status: 500 - Internal Server Error