Apsara WebService Interface
Statement:
1. This site's Feixin interface aims to learn and does not involve any commercial interests. Contact a mobile company for any business activities related to this interface.
2. The background service program of this Apsara stack interface references the DLL file of the Apsara stack client. It calls the relevant classes and functions that can be seen by normal programming references and does not crack or repackage the client.
3. If you have any questions about the Apsara stack interface, contact QQ: 14334655.
Call description:
1. The client must support cookies; otherwise, they cannot be used.
C # sample code for WebService to enable COOKIE:
Fwebser fsms = new fwebser ();
Fsms. cookiecontainer = new cookiecontainer ();
2. After logging on to the client, the remsg function should be called every 3 seconds to 3 minutes to receive event information (asynchronous call is recommended). If the call does not take more than 3 minutes, it may be canceled due to timeout.
Interface reference address: http://io2.139icq.com: 88/fwebser. asmx? For the WSDL technical support, visit:Http://blog.csdn.net/mywwl
The following operations are supported. for a formal definition, please reviewService Description.
- Addf
Add friends
Input parameter: xno = logon number, tofno = pre-added friend number, MSG = send information (within 5 Chinese characters)
- Delf
Delete friends
Input parameter: xno = logon number, tofno = pre-deleted friend number
- Flist
Back to friend list
Input parameter: xno = logon number
Return Description: each record is separated by a line break ("\ n") and the information is separated by "| ".
- Login
Log on to Apsara Stack
Input parameter: xno = logon number, fpass = Feixin Password
- Logout
Cancel Apsara Stack
Input parameter: xno = logon number
- Remsg
Return event information (used to receive various information)
Input parameter: xno = logon number, and MTR = long connection wait (congestion) event time [seconds]
Special description of the parameters of the User-Defined language (MTR): 0 is returned directly. We recommend that you call this function asynchronously. If this value is set to greater than 30 (usually 40), the system can receive information in real time.
Return Description: each record is separated by a line break ("\ n") and parameters are separated by "&". The format of each parameter is parameter name = value.
Response parameters:
(1) Description of Public return parameters: COM = Event Type
(2) Description of return parameters for each [event type]
COM = rmsg receives the new message. The parameters include: rfno = the recipient's Feixin number, rmno = the recipient's mobile phone number, fname = recipient's nickname, and MSG = new message content
COM = sendok each time a message is sent successfully, the following parameters are returned: rfno = target Feixin number or rmno = target mobile phone number, MSG = Information Content
COM = senderr: Each error is returned. The parameters include: rfno = target Feixin number or rmno = target mobile phone number, MSG = information content, and errtxt = error message.
COM = loginok: the logon is successful. The parameters include: rfno = your own Feixin number, rmno = your mobile phone number, and fname = your nickname.
COM = loginerr: The result returned by a logon error. The parameters include: rfno = the number of the logon email or rmno = the mobile phone number, and errtxt = the error message.
When COM = FADD is added as a friend by someone else, the parameters include: rfno = the recipient's Feixin number, rmno = the recipient's mobile phone number, and fname = the recipient's nickname, MSG = new friend information separated by "|"
COM = list friends list complete
COM = logout canceled
COM = changed when the friend status changes, the parameters include: rfno = the recipient's Feixin number, rmno = the recipient's mobile phone number, fname = the recipient's nickname, MSG = separated by "|" friend information
Note: The interval between synchronous calls should be no less than 3 seconds or more than 3 minutes. For synchronous calls with low real-time performance, try to have a larger interval. For real-time performance, we recommend that you set the value of content-based transmission-agent-method (MTCs) to about 40, if you do not call this function for more than 3 minutes after logging on, it will time out.
- Send
Send information
Input parameter: xno = logon number, tofno = target friend, MSG = Information Content
- Viptime
Return member time
Input parameter: xno = logon number
Note: For Free APIs, you can use them if they expire or not.