Add Whitelisted IP
curl --request POST \
--url https://api.glorycloud.com/go-api/v1/ipWhite/add \
--header 'Content-Type: application/json' \
--header 'apiKey: <apikey>' \
--data '
{
"proxyType": 123,
"ipAddress": "<string>",
"remarks": "<string>"
}
'import requests
url = "https://api.glorycloud.com/go-api/v1/ipWhite/add"
payload = {
"proxyType": 123,
"ipAddress": "<string>",
"remarks": "<string>"
}
headers = {
"apiKey": "<apikey>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {apiKey: '<apikey>', 'Content-Type': 'application/json'},
body: JSON.stringify({proxyType: 123, ipAddress: '<string>', remarks: '<string>'})
};
fetch('https://api.glorycloud.com/go-api/v1/ipWhite/add', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.glorycloud.com/go-api/v1/ipWhite/add",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'proxyType' => 123,
'ipAddress' => '<string>',
'remarks' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"apiKey: <apikey>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.glorycloud.com/go-api/v1/ipWhite/add"
payload := strings.NewReader("{\n \"proxyType\": 123,\n \"ipAddress\": \"<string>\",\n \"remarks\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("apiKey", "<apikey>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.glorycloud.com/go-api/v1/ipWhite/add")
.header("apiKey", "<apikey>")
.header("Content-Type", "application/json")
.body("{\n \"proxyType\": 123,\n \"ipAddress\": \"<string>\",\n \"remarks\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.glorycloud.com/go-api/v1/ipWhite/add")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["apiKey"] = '<apikey>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"proxyType\": 123,\n \"ipAddress\": \"<string>\",\n \"remarks\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body"Success"Whitelist
Add Whitelisted IP
Add a whitelisted IP address to allow use of proxies without requiring a username and password.
POST
/
go-api
/
v1
/
ipWhite
/
add
Add Whitelisted IP
curl --request POST \
--url https://api.glorycloud.com/go-api/v1/ipWhite/add \
--header 'Content-Type: application/json' \
--header 'apiKey: <apikey>' \
--data '
{
"proxyType": 123,
"ipAddress": "<string>",
"remarks": "<string>"
}
'import requests
url = "https://api.glorycloud.com/go-api/v1/ipWhite/add"
payload = {
"proxyType": 123,
"ipAddress": "<string>",
"remarks": "<string>"
}
headers = {
"apiKey": "<apikey>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {apiKey: '<apikey>', 'Content-Type': 'application/json'},
body: JSON.stringify({proxyType: 123, ipAddress: '<string>', remarks: '<string>'})
};
fetch('https://api.glorycloud.com/go-api/v1/ipWhite/add', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.glorycloud.com/go-api/v1/ipWhite/add",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'proxyType' => 123,
'ipAddress' => '<string>',
'remarks' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"apiKey: <apikey>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.glorycloud.com/go-api/v1/ipWhite/add"
payload := strings.NewReader("{\n \"proxyType\": 123,\n \"ipAddress\": \"<string>\",\n \"remarks\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("apiKey", "<apikey>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.glorycloud.com/go-api/v1/ipWhite/add")
.header("apiKey", "<apikey>")
.header("Content-Type", "application/json")
.body("{\n \"proxyType\": 123,\n \"ipAddress\": \"<string>\",\n \"remarks\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.glorycloud.com/go-api/v1/ipWhite/add")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["apiKey"] = '<apikey>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"proxyType\": 123,\n \"ipAddress\": \"<string>\",\n \"remarks\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body"Success"Headers
API key used for authentication.
Body
application/json
The proxy type to which the whitelisted IP should be applied. Use: 1 for Rotating Residential, 2 for Rotating Mobile, 3 for Rotating Datacenter.
The IPv4 address you want to whitelist.
Optional remark or description about the whitelisted IP.
Response
200 - application/json
Successful Response
The response is of type string.
Example:
"Success"
⌘I

