Rtxserver Web API interface A small instance _php tutorial

Source: Internet
Author: User
A small instance of the Rtxserver Web API interface, and finally the XML file is returned, it is not very different from other, interested students can refer to learning.

109 days did not publish the blog, broke the record, to change the company after there is no chance to use CI, the important reason is that they are lazy, after-work time almost all playing guitar, so has not found the technology to share the point

But the thing that's certain in these 109 days is: I've changed.

The most contact with the new company is OA and RTX, and Rtx is actually a lot of play, here first a few days before the spare time to clean up the RTX can be called through the Web interface list


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://iamlze.cn/demo/RTX-API/

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

getalldepts.php
Get all department data for RTX

@return All department data (JSON)

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

getallusers.php
Get all user data for RTX

@return All user data (JSON)

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

getuserbasicinfo.php
Get basic information for a specified user

Get only supported

@param string User Rtx username

@return All user data (JSON)

@example Http://localhost:8012/GetUserBasicInfo.php?user=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

http://www.bkjia.com/PHPjc/632890.html www.bkjia.com true http://www.bkjia.com/PHPjc/632890.html techarticle a small instance of the Rtxserver Web API interface, and finally the XML file is returned, it is not very different from other, interested students can refer to learning. 109 days did not publish the blog, broke the record, to 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.