diff --git a/Client.html b/Client.html index d2872b9..9b73fe1 100644 --- a/Client.html +++ b/Client.html @@ -117,6 +117,8 @@ + + @@ -288,6 +290,8 @@ + +
Throws:
@@ -456,6 +460,8 @@ + +
Throws:
@@ -624,6 +630,8 @@ + +
Throws:
@@ -792,6 +800,8 @@ + +
Throws:
@@ -983,6 +993,8 @@ + +
Throws:
@@ -1174,6 +1186,8 @@ + +
Throws:
@@ -1344,6 +1358,8 @@ + +
Returns:
@@ -1497,6 +1513,8 @@ + +
Returns:
@@ -1650,6 +1668,8 @@ + +
Returns:
@@ -1803,6 +1823,8 @@ + +
Returns:
@@ -1956,6 +1978,8 @@ + +
Returns:
@@ -2109,6 +2133,8 @@ + +
Returns:
@@ -2262,6 +2288,8 @@ + +
Returns:
@@ -2415,6 +2443,8 @@ + +
Returns:
@@ -2568,6 +2598,8 @@ + +
Returns:
@@ -2719,6 +2751,8 @@ + +
Throws:
@@ -2889,6 +2923,8 @@ + +
Returns:
@@ -3042,6 +3078,8 @@ + +
Returns:
@@ -3087,7 +3125,7 @@
diff --git a/_config.yml b/_config.yml deleted file mode 100644 index c419263..0000000 --- a/_config.yml +++ /dev/null @@ -1 +0,0 @@ -theme: jekyll-theme-cayman \ No newline at end of file diff --git a/consts.js.html b/consts.js.html index 3e64777..b078be3 100644 --- a/consts.js.html +++ b/consts.js.html @@ -254,7 +254,7 @@ export const msgTypeImage = 'image';
diff --git a/global.html b/global.html index a86a7fb..d261f51 100644 --- a/global.html +++ b/global.html @@ -2122,7 +2122,7 @@
diff --git a/index.html b/index.html index 3fd2979..ab5c652 100644 --- a/index.html +++ b/index.html @@ -46,9 +46,21 @@

Build Status GitHub release Node version

-

retailCRM Message Gateway Bot API JS client

This is js retailCRM bot API client.

-

Installation

npm install --save mg-api-client

In your file

-
CommonJS
var MgBotApiClient = require('mg-api-client');
es6
import MgBotApiClient from 'mg-api-client';

Usage

Get users

const api = new MgBotApiClient({
+

retailCRM Message Gateway Bot API JS client

+

This is js retailCRM bot API client.

+

Installation

+
npm install --save mg-api-client
+
+

In your file

+
CommonJS
+
var MgBotApiClient = require('mg-api-client');
+
+
es6
+
import MgBotApiClient from 'mg-api-client';
+
+

Usage

+

Get users

+
const api = new MgBotApiClient({
     host: 'https://api.example.com',
     token: 'your bot token',
     apiVersion: 'v1' // optional
@@ -60,7 +72,10 @@ api.getUsers()
     })
     .catch(function (e) {
         console.log(e);
-    });

Send message

const api = new MgBotApiClient({
+    });
+
+

Send message

+
const api = new MgBotApiClient({
     host: 'https://api.example.com',
     token: 'your bot token',
     apiVersion: 'v1' // optional
@@ -79,7 +94,10 @@ api.sendMessage(message)
     })
     .catch(function (e) {
         console.log(e);
-    });

Websocket Example

const WebSocket = require('ws');
+    });
+
+

Websocket Example

+
const WebSocket = require('ws');
 
 const api = new MgBotApiClient({
     host: 'https://api.example.com',
@@ -110,7 +128,8 @@ ws.on('message', function (content) {
             console.log(e);
         })
     }
-});
+}); + @@ -127,7 +146,7 @@ ws.on('message', function (content) {
diff --git a/scripts/linenumber.js b/scripts/linenumber.js index 8d52f7e..4354785 100644 --- a/scripts/linenumber.js +++ b/scripts/linenumber.js @@ -1,12 +1,12 @@ /*global document */ -(function() { - var source = document.getElementsByClassName('prettyprint source linenums'); - var i = 0; - var lineNumber = 0; - var lineId; - var lines; - var totalLines; - var anchorHash; +(() => { + const source = document.getElementsByClassName('prettyprint source linenums'); + let i = 0; + let lineNumber = 0; + let lineId; + let lines; + let totalLines; + let anchorHash; if (source && source[0]) { anchorHash = document.location.hash.substring(1); @@ -15,7 +15,7 @@ for (; i < totalLines; i++) { lineNumber++; - lineId = 'line' + lineNumber; + lineId = `line${lineNumber}`; lines[i].id = lineId; if (lineId === anchorHash) { lines[i].className += ' selected'; diff --git a/styles/jsdoc-default.css b/styles/jsdoc-default.css index 9207bc8..7d1729d 100644 --- a/styles/jsdoc-default.css +++ b/styles/jsdoc-default.css @@ -273,7 +273,7 @@ tr > th:last-child { border-right: 1px solid #ddd; } margin: 0; } -.prettyprint +.source { border: 1px solid #ddd; width: 80%; @@ -284,7 +284,7 @@ tr > th:last-child { border-right: 1px solid #ddd; } width: inherit; } -.prettyprint code +.source code { font-size: 100%; line-height: 18px; diff --git a/v1_client.js.html b/v1_client.js.html index b29e42d..50f1a66 100644 --- a/v1_client.js.html +++ b/v1_client.js.html @@ -283,7 +283,7 @@ export default class Client {