1.0.0 • Published 7 years ago
@plasma-platform/tm-service-pages v1.0.0
Documentation
Table of Contents
PagesService
Pages Micro Service API.
Parameters
urlstring service url
getPageByUrl
returned information about the custom page by url
Parameters
pageUrlstring page url
Examples
(async () => {
const pageService = new CartsService('https://jsonplaceholder.typicode.com/', 'dsugsahfdkljhafljkdfhajkldshfad');
})();Returns Object Promise
getPagesIntersectionsList
returned information about intersections the custom page by url
Examples
(async () => {
const pageService = new PagesService('https://jsonplaceholder.typicode.com/', {
locale: 'en',
conditions: [
{
attribute: 'properties.types',
value: 'WordPress Themes',
},
],
intersections: [
{
attribute: [
'properties.features',
'properties.topics',
],
value: [
'admin-panel',
],
},
],
fields: 'custom_url',
}');
})();Returns Object Promise