@plasma-platform/service-moto-cms

motoCMS Api

Usage no npm install needed!

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

README

version nextVersion downloads license dependency


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

Short documentation

Table of Contents

ServiceMotoCMS

MotoCMS API

fetchTrialMoto3

Request email info to Moto3 trial

Parameters

  • params object
    • params.action string? action
    • params.templateId string template id
    • params.email string user email
    • params.locale string? tm locale
    • params.location string window.location

Examples

(async () => {
  const service = new Service(url);
  const request = await service.fetchTrialMoto3(params);
})();

Returns Promise<any>

fetchTrialMotoHTML

Request email info to Moto2 trial

Parameters

  • params object
    • params.action string? action
    • params.templateId string template id
    • params.email string user email
    • params.isSendRegisterEmailFlag string send register email flag
    • params.isSendChangeEmailFlag string send change email flag

Examples

(async () => {
  const service = new Service(url);
  const request = await service.fetchTrialMotoHTML(params);
})();

Returns Promise<any>

postTrialMoto3Social

Request email info to Moto3 social trial

Parameters

  • params object
    • params.action string? action
    • params.templateId string template id
    • params.email string user email
    • params.locale string tm locale
    • params.type string moto3 type id
    • params.demoReferrer string tm cookie ref
    • params.demoAff string tm cookie aff
    • params.name string user name
    • params.location string window.location.href

Examples

(async () => {
  const service = new Service(url);
  const request = await service.postTrialMoto3Social(params);
})();

Returns Promise<any>

postTrialMotoHTMLSocial

Request email info to Moto2 social trial

Parameters

  • params object
    • params.action string? action
    • params.templateId string template id
    • params.email string user email
    • params.locale string tm locale
    • params.demoReferrer string tm cookie ref
    • params.demoAff string tm cookie aff
    • params.name string user name
    • params.location string window.location.href

Examples

(async () => {
  const service = new Service(url);
  const request = await service.postTrialMotoHTMLSocial(params);
})();

Returns Promise<any>