Example of the API for RTX

Source: Internet
Author: User

RTX API Development recently touched the interface of the RTX to open part, RTX actually have a lot of gameplay, in addition to the customer can use their own messages can also be used in PHP API to do some things, the next side to organize a bit of sharing to everyone


It is worth reminding that these interfaces need to be set to access or that they will be alerted to "IP restricted"

The RTX server imposes an SDK access to the security, so accessing the CGI file via HTTP requires the IP address of the remote access machine to be added to the Sdkproperty.xml, as shown in allowing 192.168.10.100 to access the CGI file via HTTP


The following is a list of all the interfaces, you can also visit this place to view the relevant API http://rtx.tencent.com/sdk/

getimage.cgi
Gets the state picture of the specified user

Only get pass-through values are supported

@param string receiver RTX user name

@return User State picture

@example Http://localhost:8012/GetImage.cgi?receiver=XXXX

getmobile.cgi
Gets the mobile number of the specified user

Support for Get and post pass values

@param string receiver RTX user name

@return User Phone

@example Http://localhost:8012/GetMobile.cgi?receiver=XXXX

getsession.cgi
Gets the RTX session for the specified user

Support for Get and post pass values

@param string receiver RTX user name

@return RTX User Session

@example Http://localhost:8012/GetSession.cgi?receiver=XXXX

login.php
Determines whether the specified user ID and password exist in Rtxserver

Get only supported

@param string User Rtx username

@param string pwd rtx password

@return string correctly outputs True user or password error output false parameter missing output params is null

@example Http://localhost:8012/Login.php?user=XXXX&pwd=XXXX

sendim.cgi
Send IM Information

Support Get and Post pass value parameter order arbitrarily

@param string Sender message sender Rtxid

@param string pwd To send the message person rtx password

@param string Receivers Receiver (used between multiple receivers, separated)

@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?

sendnotify.cgi
Send notification information

Support Get and Post pass value parameter order arbitrarily

@param string Title Notification title

@param string MSG Notification content

@param the receiver of a string receiver (used between multiple receivers, separated by a null representation of the broadcast) [option]

@param int Delaytime The dwell time (in milliseconds) of the Message reminder box, 0 means that it does not automatically disappear

@param string Okurl succeeds, ie automatically navigates to the specified URL format similar to: okurl=rtx.tencent.com or okurl=http://tx.tencent.com note: The URL here must be an absolute address [ Option

IE automatically navigates to the specified url[option] after @param string Errurl fails

@example http://localhost:8012/SendNotify.cgi?title=XXXX&msg= have dinner &receiver=A; b&delaytime=2000

sendsms.cgi
Send SMS Message

Support Get and Post pass value parameter order arbitrarily

@param string MSG message content

@param a String receiver receiver (used between multiple receivers, separated from each other)

@param string Sender Sender

@param string Okurl succeeds, ie automatically navigates to the specified URL format similar to: okurl=rtx.tencent.com or okurl=http://tx.tencent.com note: The URL here must be an absolute address [ Option

IE automatically navigates to the specified url[option] after @param string Errurl fails

@example http://localhost:8012/SendNotify.cgi?title=XXXX&msg= have dinner &receiver=A; b&delaytime=2000

signauth.cgi
Verify that the signature only supports the Get parameter order arbitrarily

@param string User Rtx UserID

@param string Sign Signature

@return String succeeded to success! Failure is failed!

@example Http://localhost:8012/SignAuth.cgi?user=XXXX&sign=XXXX

getstatus.php
Get User Online status support only get

@param string Username RTX user Name

@return int 0 Not in line 1 online

@example Http://localhost:8012/getstatus.php?username=XXXX

userlist.php
Get a list of all users (with ID and name only)

@return String user list (JSON)

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

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.