|
[C#] | |
SendURL
(String NotificationID, String TargetUIN, String URL, String Description)
|
|
NotificationID |
Notification ID |
TargetUIN |
Target UIN number |
URL |
URL |
Description |
Description Text |
|
| //Create personalizer object and Session object |
| PersonalizerRef.Personalizer pers = new PersonalizerRef.Personalizer()
; |
| SessionRef.Session sess = new SessionRef.Session()
; |
| string SessionID = ""; |
| try{ |
| SessionID = pers.CreateSession("LogonName", "Password"); |
| //Create ICQ notification |
| ICQRef.ICQ objICQ = new ICQRef.ICQ()
; |
| //Create server notification object |
| string ICQNotifID; |
| ICQNotifID = sess.CreateICQNotification(SessionID); |
| objICQ.Logon(ICQNotifID, "012345", "Password"); |
| objICQ.Send(ICQNotifID, "543210", "This is ICQ Notification Message"); |
| objICQ.SendURL(ICQNotifID, "543210", "www.acrosscommunications.com", "Take a look at my site"); |
| objICQ.Disconnect(ICQNotifID); |
| objICQ.Release(ICQNotifID); |
| sess.Release(SessionID); |
| } |
| catch(Exception e){ |
| //Print exception message e.Message |
| sess.Release(SessionID); |
| } |