Cập nhật proxy — Bật hoặc tắt xoay proxy

Phần này hướng dẫn cấu hình Cập nhật proxy — Bật hoặc tắt xoay proxy ổn định với PinguProxy.

PUT/proxies/update_rotation

Tham số phần thân

Bảo mật

Authorizationstringbắt buộc

JWT Bearer token

Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

Phần thân yêu cầu

idintegerbắt buộc

ID proxy cần cập nhật

is_rotatingbooleanbắt buộc

Bật hoặc tắt xoay proxy

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

Phản hồi

Trạng thái 200
{
"is_rotating": true
}

Cập nhật proxy — Khoảng thời gian mới tính bằng giây

Phần này hướng dẫn cấu hình Cập nhật proxy — Khoảng thời gian mới tính bằng giây ổn định với PinguProxy.

PUT/proxies/update_rotate_interval

Tham số phần thân

Bảo mật

Authorizationstringbắt buộc

JWT Bearer token

Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

Phần thân yêu cầu

idintegerbắt buộc

ID proxy cần cập nhật

rotate_intervalintegerbắt buộc

Khoảng thời gian mới tính bằng giây

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

Phản hồi

Trạng thái 200
{
"success": true
}

Cập nhật proxy — Nhãn proxy mới

Phần này hướng dẫn cấu hình Cập nhật proxy — Nhãn proxy mới ổn định với PinguProxy.

PUT/proxies/update_label

Tham số phần thân

Bảo mật

Authorizationstringbắt buộc

JWT Bearer token

Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

Phần thân yêu cầu

idintegerbắt buộc

ID proxy cần cập nhật

labelstringbắt buộc

Nhãn proxy mới

1const response = await fetch('https://api.pinguproxy.com/proxies/update_label', {
2 method: 'PUT',
3 headers: {
4 'Authorization': 'Bearer your-jwt-token',
5 'Content-Type': 'application/json'
6 },
7 body: JSON.stringify({
8 id: 1,
9 label: 'My Proxy'
10 })
11});
12
13const result = await response.json();

Phản hồi

Trạng thái 200
true