Proxy aktualisieren — Proxy-Rotation ein- oder ausschalten

Dieser Abschnitt erklärt die zuverlässige Konfiguration von Proxy aktualisieren — Proxy-Rotation ein- oder ausschalten mit PinguProxy.

PUT/proxies/update_rotation

Body-Parameter

Sicherheit

Authorizationstringerforderlich

JWT-Bearer-Token

Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

Request Body

idintegererforderlich

ID des zu ändernden Proxys

is_rotatingbooleanerforderlich

Proxy-Rotation ein- oder ausschalten

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();

Antwort

Status 200
{
"is_rotating": true
}

Proxy aktualisieren — Neues Intervall in Sekunden

Dieser Abschnitt erklärt die zuverlässige Konfiguration von Proxy aktualisieren — Neues Intervall in Sekunden mit PinguProxy.

PUT/proxies/update_rotate_interval

Body-Parameter

Sicherheit

Authorizationstringerforderlich

JWT-Bearer-Token

Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

Request Body

idintegererforderlich

ID des zu ändernden Proxys

rotate_intervalintegererforderlich

Neues Intervall in Sekunden

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();

Antwort

Status 200
{
"success": true
}

Proxy aktualisieren — Neue Proxy-Bezeichnung

Dieser Abschnitt erklärt die zuverlässige Konfiguration von Proxy aktualisieren — Neue Proxy-Bezeichnung mit PinguProxy.

PUT/proxies/update_label

Body-Parameter

Sicherheit

Authorizationstringerforderlich

JWT-Bearer-Token

Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

Request Body

idintegererforderlich

ID des zu ändernden Proxys

labelstringerforderlich

Neue Proxy-Bezeichnung

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();

Antwort

Status 200
true