aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-11-08 04:28:32 +0300
committerValentin Popov <info@valentineus.link>2017-11-08 04:28:32 +0300
commite663da508173936114bca09289403b0ee37bf5e4 (patch)
treea212372cf37a717236048ba97e1753ba9d2a5138 /README.md
parent178c6cbcb7d70a7b70f595d519078cce0803e174 (diff)
downloadiii-client-e663da508173936114bca09289403b0ee37bf5e4.tar.xz
iii-client-e663da508173936114bca09289403b0ee37bf5e4.zip
Release of the version 3.2.2
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/README.md b/README.md
index c871f6b..97baacb 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,6 @@
# III Client
+
+[![GitHub Release](https://img.shields.io/github/release/valentineus/simple-container.svg)](https://github.com/valentineus/simple-container/releases)
[![NPM](https://img.shields.io/npm/v/iii-client.svg)](https://www.npmjs.com/package/iii-client)
[![Build Status](https://travis-ci.org/valentineus/iii-client.svg?branch=master)](https://travis-ci.org/valentineus/iii-client)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/81b2fdc2f5dd42a6bdc8fdb43640b282)](https://www.codacy.com/app/valentineus/iii-client)
@@ -8,12 +10,14 @@
Simple API for communicating with the bot of the \"iii.ru\" service.
## Features
+
- Multiplatform library.
- A small and light library.
- Getting session ID.
- Sending and receiving messages.
## Installation
+
NodeJS:
```bash
npm install --save iii-client
@@ -27,6 +31,7 @@ Browser:
```
## Using
+
An example of a connection, receiving session identification and sending a bot message:
```javascript
import { connect, send } from 'iii-client';
@@ -47,7 +52,9 @@ send(cuid, text, (answer) => {
```
## API
+
## Functions
+
<dl>
<dt>
<a href="#connect">connect(uuid, callback)</a>
@@ -66,6 +73,7 @@ send(cuid, text, (answer) => {
<a name="connect"></a>
## connect(uuid, callback)
+
Connection to the service and retrieves the session identifier.
| Param | Type | Description |
@@ -76,6 +84,7 @@ Connection to the service and retrieves the session identifier.
<a name="send"></a>
## send(uuid, text, callback)
+
Sends a message to bot and returns a response.
| Param | Type | Description |
@@ -85,6 +94,7 @@ Sends a message to bot and returns a response.
| callback | <code>function</code> | Function handler |
## License
+
[![JavaScript Style Guide](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/eslint/eslint)
[MIT](LICENSE.md).