RTXServerwebapi Interface: a small instance _ PHP Tutorial

Source: Internet
Author: User
RTXServerwebapi interface is a small instance. A small RTXServerwebapi instance returns an xml file, which is slightly different from other ones. if you are interested, refer to the learning method. I did not post a blog in 109 days, and broke the record. from a small instance of RTXServer web api, the xml file is returned, which is not much different from other ones, if you are interested, refer to learning.

I did not post a blog in 109 days and broke my record. I had no chance to use CI after I changed my company. the important reason was that I was lazy and I was playing guitar almost all the time after work, therefore, no technical points can be shared.

But the thing that can be affirmed in these 109 days is: I have changed

Oa and RTX are the most commonly used in new companies, while RTX is actually a lot of gameplay, here, we will first list the RTX that has been sorted out in idle time a few days ago using the web interface.


It is worth noting that all these interfaces need to be configured with access permissions. otherwise, "IP address is restricted" will be prompted during access"

RTX Server imposes SDK access security. therefore, to access cgi files through http, you must add an IP address for remote access to the machine in SDKProperty. xml, as shown in. 192.168.10.100 is allowed to access cgi files through http.


The following is a list of all interfaces, you can also access this place to view the relevant API http://iamlze.cn/demo/RTX-API/

GetImage. cgi
Obtains the status image of a specified user.

Only GET values are supported.

@ Param string receiver RTX username

@ Return user status image

@ Example http: // localhost: 8012/GetImage. cgi? Receiver = XXXX

GetMobile. cgi
Obtains the mobile phone number of a specified user.

Supports GET and POST values.

@ Param string receiver RTX username

@ Return user's mobile phone

@ Example http: // localhost: 8012/GetMobile. cgi? Receiver = XXXX

GetSession. cgi
Obtains the RTX session of a specified user.

Supports GET and POST values.

@ Param string receiver RTX username

@ Return RTX user session

@ Example http: // localhost: 8012/GetSession. cgi? Receiver = XXXX

GetAllDepts. php
Obtains data from all RTX departments.

@ Return data of all departments (json)

@ Example http: // localhost: 8012/GetAllDepts. php

GetAllUsers. php
Obtain all RTX user data

@ Return all user data (json)

@ Example http: // localhost: 8012/GetAllUsers. php

GetUserBasicInfo. php
Obtains the basic information of a specified user.

Only GET is supported.

@ Param string user RTX user name

@ Return all user data (json)

@ Example http: // localhost: 8012/GetUserBasicInfo. php? User = XXXX

Login. php
Determine whether the specified user ID and password exist in RTXserver

Only GET is supported.

@ Param string user RTX user name

@ Param string pwd RTX password

@ Return string correct output true user or wrong password Output false parameter missing output params is null

@ Example http: // localhost: 8012/Login. php? User = XXXX & pwd = XXXX

SendIM. cgi
Send IM information

Supports random order of GET and POST values.

@ Param string sender RTXid

@ Param string pwd the RTX password of the sender

@ Param string receivers recipients (separated by multiple recipients)

@ Param string msg message content

@ Param string sessionid RTX session

@ Return string

@ Example http: // localhost: 8012/SendIM. cgi? Sender = XXXX & pwd = XXX & receivers = A; B & msg = CS? & sessionid = XXXX

Sendpolicy. cgi
Send notification information

Supports random order of GET and POST values.

@ Param string title: notification title

@ Param string msg notification content

@ Param string receiver (used and separated by multiple receivers. if it is null, it indicates broadcast) [option]

@ Param int delaytime the duration of the message reminder box (in milliseconds). 0 indicates that the message does not disappear automatically.

@ Param string after okurl is successful, IE automatically locates the specified url in a format similar to: okurl = rtx.tencent.com or okurl = http://tx.tencent.com. note: The url here must be an absolute address [option]

@ Param string errurl: IE automatically locates the specified url after an error occurs. [option]

@ Example http: // localhost: 8012/SendNotify. cgi? Title = XXXX & msg = eaten & receiver = A; B & delaytime = 2000

SendSMS. cgi
Send SMS messages

Supports random order of GET and POST values.

@ Param string msg text message content

@ Param string receiver (used and separated by multiple receivers)

@ Param string sender

@ Param string after okurl is successful, IE automatically locates the specified url in a format similar to: okurl = rtx.tencent.com or okurl = http://tx.tencent.com. note: The url here must be an absolute address [option]

@ Param string errurl: IE automatically locates the specified url after an error occurs. [option]

@ Example http: // localhost: 8012/SendNotify. cgi? Title = XXXX & msg = eaten & receiver = A; B & delaytime = 2000

SignAuth. cgi
Only the order of GET parameters is supported for signature verification.

@ Param string user RTX user ID

@ Param string sign

@ Return string success is success! Failed: failed!

@ Example http: // localhost: 8012/SignAuth. cgi? User = XXXX & sign = XXXX

Getstatus. php
Only GET is supported to obtain the online status of a user.

@ Param string username RTX username

@ Return int 0 offline 1 online

@ Example http: // localhost: 8012/getstatus. php? Username = XXXX

Userlist. php
Obtain the list of all users (including id and name only)

@ Return string user list (json)

@ Example http: // localhost: 8012/userlist. php

For small instances of the web api interface, the xml file is returned at the end, which is slightly different from other ones. if you are interested, refer to learning. I didn't post a blog in 109 days, and broke the record, from...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.