README
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
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
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
objectparams.action
string? actionparams.templateId
string template idparams.email
string user emailparams.locale
string tm localeparams.type
string moto3 type idparams.demoReferrer
string tm cookie refparams.demoAff
string tm cookie affparams.name
string user nameparams.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
Examples
(async () => {
const service = new Service(url);
const request = await service.postTrialMotoHTMLSocial(params);
})();
Returns Promise<any>