계정 정보 조회

이 섹션에서는 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..."
}