HTML 5 SDK

Message view

Path:

https://enterprise.teamchat.com/webjim-echat/clientApi/html/cmsg.html?gId=[group-id]&mId=[form-id]&tk=[token-string]&uId=[user-id]

Parameters

gId = group Id = group identification provided by servlet
mId = formId (smartmessage) = unique identification code of every form
tk = token string (Any valid token) = dynamically generated unique string that allows to make call
uId = userId (User inside the group) = member identification id of every participant

Message Compose view

Path:

http://enterprise.teamchat.com/webjim-echat/clientApi/html/cmsg.html?gId=[group-id]&mId=[form-id]&tk=[token]&uId=[user-id]&compose=true

Parameters
gId = group Id = group identification provided by servlet
mId = formId (smartmessage) = unique identification code of every form
tk = token (Any valid token) = dynamically generated unique string that allows to make call
uId = userId (User inside the group) = member identification id of every participant
compose = boolean (true/false) = true opens a compose message dialogue

Message Details View

Path:

http://enterprise.teamchat.com/api/smartmessage/details/?params=0&action=primarydetails&msgid=[form-id]&userid=[user-id]&sid=[token]

Parameters
msgid = formId (smartmessage) = unique identification code of every form
userid = userId (User inside the group) = member identification id of every participant
sid = token (Any valid token) = dynamically generated unique string that allows to make call

Demo

Inserting this iframe in an app will show forms as shown below.**

Clicking on 'Submit Report' will open an Embed Teamchat Chatlet where the details of the report can be posted.

Clicking on ‘Submit Report’ will open an Embed Teamchat Chatlet where the details of the report can be posted.

**This is a sample presentation and might not be the exact implementation.

Message Container View

Path:

https://enterprise.teamchat.com/webjim-echat/clientApi/html/stream.html?gId=[room-id]&tk=[token-string]&uId=[userId]

Parameters
gId = group Id = group identification provided by servlet
tk = token string (Any valid token) = dynamically generated unique string that allows to make call
uId = userId (User inside the group) = member identification id of every participant

curl

Message View
curl “https://enterprise.teamchat.com/webjim-echat/clientApi/html/cmsg.html?gId=&mId=&tk=&uId=”;

Message Compose View
curl “https://enterprise.teamchat.com/webjim-echat/clientApi/html/cmsg.html?gId=&mId=&tk=&uId=&compose=true”;

Message Details View
curl “https://enterprise.teamchat.com/api/smartmessage/details/?params=0&action=primarydetails&msgid=&userid=&sid=”;

Message Container View
curl “https://enterprise.teamchat.com/webjim-echat/clientApi/html/stream.html?gId=&tk=&uId=”;

HTML

Message View

Compose View

Details View

Messages Stream

Rooms List View

Multiple ways to use Teamchat

Got a query?