Date: 10 Oct. 2000
Available: 11 Oct. 2000
Status: Draft
Compliant to AOS API Version: AOS 2.0b1
Revision: 1 (1 Jan. 2001)
Web: http://www.afteroffice.com/dev/api/IM.html
By fui@afteroffice.com
Description
This API covered online IM retrieving and sending interface, and related online users information.
Index
####
Result:
Line 1: <Number of user online>
Line 2 .. x: <User host><tab><User name><tab><User Full Name><cr>
Parameters:
API = only 1 argument accepted: "LC"
URL Sample:
http://afteroffice.com/SIDxxx.user.chat.mms?api=lc
Parameters:
from=[sender email]
Must be a valid AOS user. MIME email compatible eg:
"fui" <fui@afteroffice.com>
only 1st sender identity allow.
to=[recipient email]
Can be any recipient with valid email.
MIME email compatible eg:
"fui" <fui@afteroffice.com>
multiple email allow. Multiple email address may use ";" or "," and cr as separator:
fui@afteroffice.com; pojen@afteroffice.com
If the recipient is not a AOS user, method will be defaulted to "mail".
subject=[notify subject]
single line
body=[notify body]
Allow multiple lines. Line separator can be unix cr, or crlf, or "\r"
method=[optional, method of delivery]
Value: "im","mail","all"
Default: "all"
Set the method for delivering of the notification. When this is set to "all", AOS tries to delivery the notification with "im", if the user is not online, "mail" is used. If the recipient is not local, "mail" will be the defaulted method.
header=[optional, other email MIME headers]
Extra MIME header to insert in mail. Valid only if method=mail. Eg:
Reply-to: support@afteroffice.com
Return result
sqNotify returns none empty, multi-line result (unix cr line separator) with the first line as boolean.
If sqNotify failed, the first line is "false", second line will be the error description. Possible for failure: the sander is not local.
If the command successful, first line is "true", and the following lines will be the summery for each recipient delivery method. eg:
If you send notify to the following users:
fui@afteroffice.com
"pojen ng" <pojen@afteroffice.com>
fui2@afteroffice.com
other@otherdomain.com
Presumed fui@afteroffice.com is online, and pojen@afteroffice.com is not.
Possible result:
true
fui@afteroffice.com IM
pojen@afteroffice.com MAIL
fui2@afteroffice.com MAIL
other@otherdomain.com MAIL
Note that fui2@afteroffice.com is not a valid user, sqNotify failed to verify as a valid AOS user, and thus sent the notify as mail. The sender will then receive a return email because fui2@afteroffice.com doesn't exist.
###
Different from last draft: