获取账户信息

本节说明如何使用 PinguProxy 可靠地配置获取账户信息。

GET/users/me

请求参数

安全

Authorizationstring必填

JWT Bearer 令牌

Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
1const response = await fetch('https://api.pinguproxy.com/users/me', {
2 headers: {
3 'Authorization': 'Bearer your-jwt-token'
4 }
5});
6
7const user = await response.json();
8console.log(user);

响应

状态 200
{
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"username": "john.doe",
"creation_date": "2023-01-01T00:00:00Z",
"creation_ip": "192.168.1.1",
"name": "John",
"surname": "Doe",
"address": "Address, Zip Code, Country",
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}