用户
获取用户信息
GET /me
查询与用户散列对应的可用查询信息。
查询示例:
curl -X GET https://resi-api.iproyal.com/v1/web-unblocker/me \
-H "Authorization: Bearer <your_api_token>"<?php
$api_token = '<your_api_token>';
$url = 'https://resi-api.iproyal.com/v1/web-unblocker/me';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPGET, true);
$headers = [
"Authorization: Bearer $api_token"
];
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
} else {
echo $response;
}
curl_close($ch);
?>查询结果
{
"available_requests": 1000,
"web_unblocker_user_hash": "01H7YCG0R9GYY1YCPS2S4QA6WB"
}Last updated