Get info about sitemap.xml
GET
/sitemap/sitemap.json
GET
/sitemap/sitemap.json
$storeden = new Storeden\Storeden($config);
$sitemap_info = $storeden->get('/sitemap/sitemap.json');
{
"location": "https://www.my-domain.tld/sitemap.xml",
"last_update": "2019-01-03T08:25:49+01:00"
}
Add url to current sitemap. Url must be formed as: DOMAIN/PATH ( es: www.my-domain.tld/my-custom-page) without protocol
POST
/sitemap/sitemap_url.json
$storeden = new Storeden\Storeden($config);
$add_sitemap_response = $storeden->post('/sitemap/sitemap_url.json', ['url' => 'www.my-domain.tld/my-custom-page']);
{
"ok": 1,
"n": 1,
"err": 0,
"errmsg": null
}
Remove url to current sitemap. Url must be formed as: DOMAIN/PATH ( es: www.my-domain.tld/my-custom-page) without protocol. If url was previously added as add-url-to-sitemap, those record will be removed
DELETE
/sitemap/sitemap_url.json
$storeden = new Storeden\Storeden($config);
$add_sitemap_response = $storeden->delete('/sitemap/sitemap_url.json', ['url' => 'www.my-domain.tld/my-custom-page']);
{
"ok": 1,
"n": 1,
"err": 0,
"errmsg": null
}