Skip to content

Commit 6e70506

Browse files
add QuickBlox examples - chatJS, chatBotJS
1 parent b02ee3d commit 6e70506

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+18938
-0
lines changed

.idea/.gitignore

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/examples.iml

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# Overview
2+
QuickBlox JS Sample Chat
3+
4+
This is a code sample for [QuickBlox](http://quickblox.com/) platform. It is a great way for developers using QuickBlox platform to learn how to integrate private and group chat, add text and image attachments sending into your application.
5+
6+
# Features
7+
* Log in/log out
8+
* Send and receive message/attachment
9+
* Create and leave a 1-to-1 and group chat
10+
* Create a public chat
11+
* Display users who have received/read the message
12+
* Mark messages as read/delivered
13+
* Send typing indicators
14+
* List and delete chats
15+
* Display chat history
16+
* Display a list with chat participants
17+
18+
# Get application credentials
19+
[](#get-application-credentials)
20+
21+
QuickBlox application includes everything that brings messaging right
22+
into your application - chat, video calling, users, push notifications,
23+
etc. To create a QuickBlox application, follow the steps below:
24+
25+
1. Register a new account following [this
26+
link](https://admin.quickblox.com/signup). Type in your email and
27+
password to sign in. You can also sign in with your Google or Github
28+
accounts.
29+
2. Create the app clicking **New app** button.
30+
3. Configure the app. Type in the information about your organization
31+
into corresponding fields and click **Add** button.
32+
4. Go to **Dashboard =\> *YOUR\_APP* =\> Overview** section and copy
33+
your **Application ID**, **Authorization Key**, **Authorization
34+
Secret**, and **Account Key**.
35+
36+
# Run chat sample
37+
38+
To run a code sample, follow the steps below:
39+
40+
1. Download the code sample.
41+
2. [Get application credentials](#get-application-credentials) and get appId, authKey, authSecret, and accountKey.
42+
3. Put these values in file **QBconfig.js** following **samples =\>
43+
chat =\> js** directory.
44+
45+
JavaScript
46+
47+
var QBconfig = {
48+
credentials: {
49+
appId: '',
50+
authKey: '',
51+
authSecret: '',
52+
accountKey: ''
53+
}
54+
}
55+
56+
4. Run the code sample by opening **index.html** file.
57+
58+
# Requirements
59+
[](#requirements)
60+
61+
The minimum requirements for QuickBlox JavaScript SDK are:
62+
63+
- JavaScript es5.
64+
65+
# Documentation
66+
67+
Sample documentation is available [here](https://quickblox.com/developers/Web_XMPP_Chat_Sample#Guide:_Getting_Started_with_Chat_API).

0 commit comments

Comments
 (0)