새 프록시 생성

이 섹션에서는 PinguProxy에서 새 프록시 생성을 안정적으로 설정하는 방법을 설명합니다.

POST/proxies/create

본문 매개변수

보안

Authorizationstring필수

JWT Bearer 토큰

Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

요청 본문

plan_idinteger필수

프록시 생성에 사용할 요금제 ID

1const response = await fetch('https://api.pinguproxy.com/proxies/create', {
2 method: 'POST',
3 headers: {
4 'Authorization': 'Bearer your-jwt-token',
5 'Content-Type': 'application/json'
6 },
7 body: JSON.stringify({
8 plan_id: 1
9 })
10});
11
12const proxy = await response.json();

응답

상태 200
{
"id": 1,
"username": "user123",
"password": "pass123",
"ip": "192.168.1.1",
"port": 12933,
"assigned_proxy_ipv4": "10.0.0.1",
"assigned_proxy_ipv6": "2001:db8::1",
"is_rotating": true,
"rotate_interval": 600,
"plan_ip_class": 1
}