The simplest voice, video and text chat SDK for your website.
Let's start by creating two simple HTML files and adding the basic AtomChat code to it. This will be sufficient to see a working sample.
Be sure to replace chat_appid with your App ID from the AtomChat Admin Panel -> Settings -> API Key.
Save both the files and then access them using two different browsers like Firefox and Chrome. You will be able to see AtomChat at the bottom right corner of your site page.
Now, you're ready to add AtomChat to your site.
Before you add the AtomChat code, you need to know the code that you can use to output (e.g. echo $_SESSION['name']) the logged in user's unique ID and name.
Once you have this information handy, add the following code to your site template-
Once you've done this, AtomChat will log you in and allow you to chat with other online users.
Example : var chat_link = ‘https://www.xyz.com/user/2/profile’;
Example: var chat_avatar = ‘https://www.xyz.com/user/2/profile/profile.png’;
Example: var chat_friends = ‘23,2548,458,300’;
Please note: Before using this variable you have to add the specific language in languages Section in your AtomChat Admin Panel. Go to your AtomChat Admin Panel-->Localization-->Languages add the languages from available languages.
Example: var chat_language = ‘fr’;
Example: var chat_email = ‘email@example.com’;
Please refer to the below-mentioned example to implement these variables.
There is a lot more to AtomChat!. You can synchronize your users' friends list, restrict features using role based access control, launch a single private chat window, display our Embedded Layout (instead of Docked Layout) and a lot more.