一個RTXServer web api介面的小執行個體,最後返回的是xml檔案,與其它的區別不大,有興趣的同學可參考學習。
109天沒發表部落格,破了記錄,至從換了公司後就沒有機會使用CI,重要的原因是自己懶惰了,下班後的時間幾乎都在玩吉他,所以一直沒有找到可以分享的技術點
不過在這109天裡可以肯定的事情是:我變了
在新公司接觸得最多的是oa與RTX,而RTX其實也是很多玩法,這裡就先將前幾天趁閒置時間整理下來的RTX可以通過web方式調用的介面列一下
值得提醒的是這些介面都需要設定存取權限不然訪問時會提醒“IP受限制”
RTX Server強加了SDK訪問安性,因此通過http方式訪問cgi檔案需要在SDKProperty.xml添加遠端存取機器的IP地址,如所示,允許192.168.10.100通過http方式訪問cgi檔案
以下為所有介面的清單,你也可以訪問這個地方來查看相關的API http://iamlze.cn/demo/RTX-API/
GetImage.cgi
擷取指定使用者的狀態圖片
僅支援GET傳值
@param string receiver RTX使用者名稱
@return 使用者狀態圖片
@example http://localhost:8012/GetImage.cgi?receiver=XXXX
GetMobile.cgi
擷取指定使用者的手機號碼
支援GET與POST傳值
@param string receiver RTX使用者名稱
@return 使用者手機
@example http://localhost:8012/GetMobile.cgi?receiver=XXXX
GetSession.cgi
擷取指定使用者的RTX session
支援GET與POST傳值
@param string receiver RTX使用者名稱
@return RTX使用者session
@example http://localhost:8012/GetSession.cgi?receiver=XXXX
GetAllDepts.php
擷取RTX所有部門資料
@return 所有部門資料(json)
@example http://localhost:8012/GetAllDepts.php
GetAllUsers.php
擷取RTX所有使用者資料
@return 所有使用者資料(json)
@example http://localhost:8012/GetAllUsers.php
GetUserBasicInfo.php
擷取指定使用者基本資料
僅支援GET
@param string user RTX使用者名稱
@return 所有使用者資料(json)
@example http://localhost:8012/GetUserBasicInfo.php?user=XXXX
Login.php
判斷指定使用者ID與密碼是否存在RTXserver中
僅支援GET
@param string user RTX使用者名稱
@param string pwd RTX密碼
@return string 正確輸出true 使用者或密碼錯誤輸出false 參數缺失輸出params is null
@example http://localhost:8012/Login.php?user=XXXX&pwd=XXXX
SendIM.cgi
發送IM資訊
支援GET與POST傳值 參數順序隨意
@param string sender 發訊息人RTXid
@param string pwd 發送訊息人RTX密碼
@param string receivers 接收人(多個接收人之間使用,隔開)
@param string msg 訊息內容
@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
發送通知資訊
支援GET與POST傳值 參數順序隨意
@param string title 通知標題
@param string msg 通知內容
@param string receiver 接收人(多個接收人之間使用,隔開,若為空白表示廣播)[option]
@param int delaytime 訊息提醒框的停留時間(毫秒),0表示不自動消失
@param string okurl 成功後IE自動定位到指定的url 格式類似為:okurl=rtx.tencent.com 或者okurl=http://tx.tencent.com 注意:這裡的url必須為絕對位址[option]
@param string errurl 失敗後IE自動定位到指定的url[option]
@example http://localhost:8012/SendNotify.cgi?title=XXXX&msg=吃飯了&receiver=A;B&delaytime=2000
SendSMS.cgi
傳送簡訊資訊
支援GET與POST傳值 參數順序隨意
@param string msg 簡訊內容
@param string receiver 接收人(多個接收人之間使用,隔開)
@param string sender 發送人
@param string okurl 成功後IE自動定位到指定的url 格式類似為:okurl=rtx.tencent.com 或者okurl=http://tx.tencent.com 注意:這裡的url必須為絕對位址[option]
@param string errurl 失敗後IE自動定位到指定的url[option]
@example http://localhost:8012/SendNotify.cgi?title=XXXX&msg=吃飯了&receiver=A;B&delaytime=2000
SignAuth.cgi
驗證簽名 僅支援GET 參數順序隨意
@param string user RTX使用者ID
@param string sign 簽名
@return string 成功為success! 失敗為failed!
@example http://localhost:8012/SignAuth.cgi?user=XXXX&sign=XXXX
getstatus.php
擷取使用者線上狀態僅支援GET
@param string username RTX使用者名稱
@return int 0不線上 1線上
@example http://localhost:8012/getstatus.php?username=XXXX
userlist.php
擷取所有使用者列表(只含id與name)
@return string 使用者列表(json)
@example http://localhost:8012/userlist.php
http://www.bkjia.com/PHPjc/632890.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/632890.htmlTechArticle一個RTXServer web api介面的小執行個體,最後返回的是xml檔案,與其它的區別不大,有興趣的同學可參考學習。 109天沒發表部落格,破了記錄,至從...