echo "<br />"; echo "token:" . $auth_ret->token; echo "<br />"; echo "userid:" . $auth_ret->userid; echo "<br />"; } else { echo "<b>loginAuth is error. </b>"; echo $auth_ret->result->msg; echo "<br />"; } $token = $auth_ret->token; echo "<br />"; echo "<br />"; echo "test queryFee interface..."; echo "<br />"; $fee_ret = $client->queryFee($token); if ($fee_ret->result->ret == $SUCCESS) { echo "queryFee is ok. "; echo "queryFee return value:"; var_dump($fee_ret->msg); echo "<br />"; } else { echo "<b>queryFee is error. </b>"; echo $fee_ret->result->msg; echo "<br />"; } echo "<br />"; echo "<br />"; echo "test querusage interface..."; echo "<br />"; $usage_ret = $client->querusage($token, 5);