1.0.0 • Published 5 years ago

@plasma-platform/tm-service-pages v1.0.0

Weekly downloads
-
License
CC-BY-4.0
Repository
gitlab
Last release
5 years ago

Documentation

Table of Contents

PagesService

Pages Micro Service API.

Parameters

getPageByUrl

returned information about the custom page by url

Parameters

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