- บริการเข้ารหัสข้อมูล
- บริการถอดรหัสข้อมูล
- เรียกดูข้อมูลบัญชีผู้ใช้อินเทอร์เน็ต ตาม uid
- เรียกดูรหัสอ้างอิง Object ID ของบัญชีผู้ใช้อินเทอร์เน็ต ตาม uid
- เรียกดูข้อมูลบัญชีผู้ใช้อินเทอร์เน็ต ตาม Object ID
- แปลง Object ให้อยู่ในรูปแบบ Array
- แปลงรูปแบบเวลาของภาษา Python ให้อยู่ในรูปแบบ date("Y-m-d H:i:s") ของภาษา PHP
- getEncrypt
- getDecrypt
- getUser
- getOid
- getUserByOid
เพิ่มโค้ดด้านล่างนี้ ไว้ส่วนบนสุดของไฟล์
<?php
// Configuration, please do not edit if you do not understand the system.
use EKAPHONG\XML_RPC;
require_once(__DIR__ . '/class/XML_RPC.php');
require_once(__DIR__ . '/config/config.php');
$xmlrpc = new XML_RPC();
// End of configuration
ก่อนใช้งานจะต้องกำหนดค่าที่ไฟล์ config/config.php
<?php
// Server address
$server = "http://service.eng.rmuti.ac.th/eng-login/xmlrpc/";
// Application ID
$app_id = "app_id";
// Secret Key
$secret = "secret_key";
Function name | Description |
---|---|
getEncrypt() |
Work! |
getDecrypt() |
Work! |
getUser() |
- |
getOid() |
Work! |
getUserByOid() |
Work! |