include('IXR_Library.inc.php');
$client = new IXR_Client('https://services.mypw.com/RPC2');
$struct = array (
"siteid" => MySiteId,
"authkey" => MyAuthKey,
"tokenid" => TokenID,
"tokenvalue" => CurrentTokenValue
);
$client->query('auth.auth', $struct);
$response = $client->getResponse();
if ($response["code"] == 0) {
// success!
}
else {
// failure, see message for details
print($response["message"]);
}
|