|
|
Home
> BigAnt Messenger > SDK
An Open Collaboration PlatformBigAnt Messenger is an open collaboration platform, we provide SDK for developers. BigAnt can be perfectly integrates with other enterprise applications, such as ERP, OA, CRM etc. 1.BigAnt SDKBigAnt Client includes a COM object enables user to send an instant message, file or other content to BigAnt client through other applications or web. Take the following VBScript for example.
Example 1. Dim Session, Msg, LoginInfo Set Msg = CreateObject("AntCom.AntMsg") Set Session = CreateObject("AntCom.AntSyncSession") Set LoginInfo = CreateObject("AntCom.AntLoginInfo") Msg.Subject = "Start" ' Message title Msg.Content = "hi, im admin" ' Message content Msg.AddReceiver "user”, "" ' Message receiver, Repeat AddReceiver for multiple receivers Msg.ContentType = "Text/Text" ' Message format LoginInfo.Server = "127.0.0.1" 'BigAnt Server IP LoginInfo.ServerPort = 6080 'BigAnt Server Port LoginInfo.LoginName = "Admin" ' Sender Login Name LoginInfo.PassWord = "" ' Sender Password Session.Login LoginInfo 'Login Session.SendMsg Msg, 0 'Send message For example, Administrator sent an instant message from OA system to BigAnt Client. Screenshot below shows the BigAnt Client will receive a notification and view the message content via BigAnt chat window.
Example 2. Dim Session, Msg,LoginInfo Set Msg = CreateObject("AntCom.AntMsg") Set Session = CreateObject("AntCom.AntSyncSession") Set LoginInfo = CreateObject("AntCom.AntLoginInfo") Msg.Subject = "Start" ' Message title Msg.ContentType = "Text/Html" ' Message in HTML format Msg.Content = "<HTML><h1>hello</h1></HTML>" ' Message content Msg.AddReceiver "user”, "" ' Message receiver, Repeat ' AddReceiver for multiple receivers LoginInfo.Server = "127.0.0.1" ' BigAnt Server IP LoginInfo.ServerPort = 6080 ' BigAnt Server Port LoginInfo.LoginName = "Admin" ' Sender’s login name LoginInfo.PassWord = "" ' Sender’s Password Session.Login LoginInfo ' Login Session.SendMsg Msg, 0 ' Send message For example, Administrator sent an instant message in HTML format from CRM system to BigAnt Client. Screenshot below shows the BigAnt Client will receive and view the message in HTML format via BigAnt chat window.
Example 3. Dim Session, Msg,LoginInfo Set Msg = CreateObject("AntCom.AntMsg") Set Session = CreateObject("AntCom.AntSyncSession") Set LoginInfo = CreateObject("AntCom.AntLoginInfo") Msg.Subject = "Start" ' Message title Msg.ContentType = "Text/URL" ' Message format in URL Msg.Content = www.google.com ' Message content, the webpage ' www.google.com will display in the receiver’s chat window directly. Msg.AddReceiver "user" , "" ' Message receiver, Repeat AddReceiver for multiple receivers LoginInfo.Server = "127.0.0.1" ' Bigant Server IP LoginInfo.ServerPort = 6080 ' Bigant Server Port LoginInfo.LoginName = "Admin" ' Sender’s login Name LoginInfo.PassWord = "" ' Sender’s Password Session.Login LoginInfo ' Login Session.SendMsg Msg, 0 ' Send message For example, Administrator sent a Google webpage from ERP system to BigAnt Client. Screenshot below shows the BigAnt Client will receive a notification and view the webpage via BigAnt chat window directly.
Example 4. Dim Session, Msg,LoginInfo Set Msg = CreateObject("AntCom.AntMsg") Set Session = CreateObject("AntCom.AntSyncSession") Set LoginInfo = CreateObject("AntCom.AntLoginInfo") Msg.Subject = "Start" ' Message title Msg.ContentType = "Text/Text" ' Message format Msg.Content = "hi" ' Message content Msg.AddReceiver "user”, "" ' Message receiver, Repeat AddReceiver for multiple receivers Msg.AddAttach "c:\abc.txt", "" ' Add a file LoginInfo.Server = "127.0.0.1" ' BigAnt Server IP LoginInfo.ServerPort = 6080 ' BigAnt Server Port LoginInfo.LoginName = "Admin" ' Sender’s login name LoginInfo.PassWord = "" ' Sender’s password Session.Login LoginInfo ' Login Session.SendMsg Msg, 0 ' Send messageFor example, Administrator sent a TXT document from CRM system to BigAnt Client. Screenshot below shows the BigAnt Client will receive the TXT document in BigAnt chat window. The document can be downloaded or forwarded to other BigAnt Client.
2. BigAnt Plug-In development BigAnt Plug-In enable developers to integrate other applications to BigAnt Messenger. For more information, please contact us at info@bigantsoft.com
|





