Project

General

Profile

API - Browsing - Sitemap

URL: /sitemap/
Method: GET

$api_id = 1;
$api_key = 'testpass';
$hostname = 'https://example.com'; // no trailing slash

# fetch data
$url = '/sitemap/';
$post_data = array();
$extra_headers = array(
    'X-API-ID: ' . $api_id,
    'X-API-Hash: ' . md5($api_key . $url. http_build_query($post_data))
);

header('Content-Type: application/json; charset=utf-8');
echo sendRequest($hostname . $url, $post_data, $extra_headers);

Succes message:

{
    has_error: false,
    messages: {
        section: "sitemap" 
    },
    results: {
        categories: {},
        manufacturers: {}
    }
}

Go to top