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_rotationTham số phần thân
Bảo mật
Authorizationstringbắt buộcJWT Bearer token
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
Phần thân yêu cầu
idintegerbắt buộcID proxy cần cập nhật
is_rotatingbooleanbắt buộcBậ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: true10 })11});1213const 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_intervalTham số phần thân
Bảo mật
Authorizationstringbắt buộcJWT Bearer token
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
Phần thân yêu cầu
idintegerbắt buộcID proxy cần cập nhật
rotate_intervalintegerbắt buộcKhoả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: 30010 })11});1213const 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_labelTham số phần thân
Bảo mật
Authorizationstringbắt buộcJWT Bearer token
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
Phần thân yêu cầu
idintegerbắt buộcID proxy cần cập nhật
labelstringbắt buộcNhã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});1213const result = await response.json();
Phản hồi
Trạng thái 200
true