@plasma-platform/service-pages

SDK for working with service pages

Usage no npm install needed!

<script type="module">
  import plasmaPlatformServicePages from 'https://cdn.skypack.dev/@plasma-platform/service-pages';
</script>

README

version nextVersion downloads license dependency


Full documentation
install:
npm i @plasma-platform/service-pages -S

Short 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