npm package: @plasma-platform/service-moto-cms
Description: motoCMS Api
Author: Kyrylo Voronoi
Latest version: 0.2.0

![version](https://badgen.net/npm/v/@plasma-platform/service-moto-cms)
![nextVersion](https://badgen.net/npm/v/@plasma-platform/service-moto-cms/next)
![downloads](https://badgen.net/npm/dt/@plasma-platform/service-moto-cms)
![license](https://badgen.net/npm/license/@plasma-platform/service-moto-cms)
![dependency](https://badgen.net/npm/dependents/@plasma-platform/service-moto-cms)  

* * *

[Full documentation](https://templatemonster.gitlab.io/PlasmaPlatform/Frontend/plasma-platform/?path=/story/plasma-platform-sdk--service-moto-cms)  
install:  
`npm i @plasma-platform/service-moto-cms -S`  

# Short documentation

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

### Table of Contents

-   [ServiceMotoCMS](#servicemotocms)
    -   [fetchTrialMoto3](#fetchtrialmoto3)
        -   [Parameters](#parameters)
        -   [Examples](#examples)
    -   [fetchTrialMotoHTML](#fetchtrialmotohtml)
        -   [Parameters](#parameters-1)
        -   [Examples](#examples-1)
    -   [postTrialMoto3Social](#posttrialmoto3social)
        -   [Parameters](#parameters-2)
        -   [Examples](#examples-2)
    -   [postTrialMotoHTMLSocial](#posttrialmotohtmlsocial)
        -   [Parameters](#parameters-3)
        -   [Examples](#examples-3)

## ServiceMotoCMS

-   **See: <http://motocms.templatemonsterdev.com/doc/>**

MotoCMS API

### fetchTrialMoto3

Request email info to Moto3 trial

#### Parameters

-   `params` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
    -   `params.action` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** action
    -   `params.templateId` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** template id
    -   `params.email` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** user email
    -   `params.locale` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** tm locale
    -   `params.location` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** window.location

#### Examples

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

Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;any>** 

### fetchTrialMotoHTML

Request email info to Moto2 trial

#### Parameters

-   `params` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
    -   `params.action` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** action
    -   `params.templateId` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** template id
    -   `params.email` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** user email
    -   `params.isSendRegisterEmailFlag` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** send register email flag
    -   `params.isSendChangeEmailFlag` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** send change email flag

#### Examples

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

Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;any>** 

### postTrialMoto3Social

Request email info to Moto3 social trial

#### Parameters

-   `params` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
    -   `params.action` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** action
    -   `params.templateId` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** template id
    -   `params.email` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** user email
    -   `params.locale` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** tm locale
    -   `params.type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** moto3 type id
    -   `params.demoReferrer` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** tm cookie ref
    -   `params.demoAff` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** tm cookie aff
    -   `params.name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** user name
    -   `params.location` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** window.location.href

#### Examples

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

Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;any>** 

### postTrialMotoHTMLSocial

Request email info to Moto2 social trial

#### Parameters

-   `params` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
    -   `params.action` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** action
    -   `params.templateId` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** template id
    -   `params.email` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** user email
    -   `params.locale` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** tm locale
    -   `params.demoReferrer` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** tm cookie ref
    -   `params.demoAff` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** tm cookie aff
    -   `params.name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** user name
    -   `params.location` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** window.location.href

#### Examples

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

Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;any>**