An Open Collaboration Platform BigAnt Instant Messenger SDK

BigAnt Messenger SDK is an open collaboration platform which can be perfectly integrates with other enterprise applications, such as ERP, OA, CRM etc.

BigAnt 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.How to send an instant message or a notification from OA system to BigAnt Client.

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.How to send a Html message to BigAnt Client from CRM system to BigAnt Client

      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.How to send a webpage from ERP system to BigAnt Client.

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.How to send a file from OA system to BigAnt Client.

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 message

 

For 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.