Unlimited IP Pool
An API That Is Tailored to Your Needs.
Please pass following parameters with proxy to fetch the respective geolocated residential IPs
Country = Name of the country in short code format
State = Name of the state in short code format
City = Name of the city
Please use the country selectbox to find the right parameter values or check spreadsheet.
Example Request:
curl -x "country=US&city=New+York:[email protected]:10000" ipinfo.io
With residential proxies we can pass session parameter which will create sticky sessions, which will cause the requests to try to go through the same IP, for some duration of time.
session = any alphanumeric identifier
Example Request:
curl -x "country=US&city=New+York&session=abcd1234:[email protected]:10000" ipinfo.io
{CONSUMER_KEY} — Your consumer key generated in my api key section.
{CONSUMER_SECRET} — Your consumer secret generated in my api key section.
{SUBSCRIPTION_ID} — Your subscription id.
{ORDER_ID} — Your order id.
{BASE64_ENCODED_LICENSE_STRING} — An entire proxy string in the following format: HOST:PORT@USERNAME:PASSWORD and encoded in base64.
You can use many tools to encode a string in base64, to encode it online you can use:
base64encode.org
{REBOOT_INTERVAL} — Value for reboot interval to be updated for a proxy.
Should be Integer value, and greater than 1
{PRODUCT_ID} — Please use following ids to purchase proxies.
11463 - 4G Proxy Austria
2171 - 4G Proxy Israel
7329 - 4G Proxy UK
53669 - 5G Proxy New York (USA)
25869 - 4G Proxy Texas (USA)
{REGION_NAME} — Please use following region name to filter proxies.
For United Kingdom 🇬🇧 = london1
For Israel 🇮🇱 = highspeed1
For Vienna 🇦🇹 = vienna1
For Texas (US) 🇺🇸 = texas1
For New York (US) 🇺🇸 = new-york1
For Florida (US) 🇺🇸 = miami1
{PROXY_REGION} — Please use following region.
5g-austria — 5G Austria
5g-israel — 5G Israel Not Available for Rotating Proxies
5g-new-york-usa — 5G New York (USA)
5g-texas-usa — 5G Texas (USA)
5g-united-kingdom-uk — 5G United Kingdom (UK)
5g-florida-usa — 5G Florida (USA)
5g-global — 5G Global Rotating Proxies only
5g-usa — 5G USA Rotating Proxies only
5g-europe — 5G Europe Rotating Proxies only
{PROXY_SUBSCRIPTION} — Please use following subscription.
2-days — 2 Days subscription
week — 1 Week subscription
monthly — Monthly subscription
3-month — 3 Month subscription
6-month — 6 Month subscription
yearly — Yearly subscription
{PROXY_SUBSCRIPTION} — Please use following subscription for by usage and rotating proxies.
pay-as-you-go — If you use Pay As You Go then no need to pass package parameter.
monthly — Monthly Subscription
yearly — Yearly Subscription
{PROXY_PACKAGE} — Please use following package.
0-5k — It means 0.5K
1k
2k
2k
4k
5k
10k
To get a list of your proxies you need to make a GET call to the following endpoint.
API endpoint: GET /wp-json/lmfwc/v2/licenses/customer/user-licenses
curl --location --request GET 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-licenses/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}&page={PAGE_NO}&proxy_format={HOST:PORT@USERNAME:PASSWORD}' \
--header 'Content-Type: application/json'
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-licenses/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}&page={PAGE_NO}&proxy_format={HOST:PORT@USERNAME:PASSWORD}',
'headers': {
'Content-Type': 'application/json'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
OkHttpClient client = new OkHttpClient().newBuilder().build();
Request request = new Request.Builder()
.url("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-licenses/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}&page={PAGE_NO}&proxy_format={HOST:PORT@USERNAME:PASSWORD}")
.method("GET", null)
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-licenses/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}&page={PAGE_NO}&proxy_format={HOST:PORT@USERNAME:PASSWORD}");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import requests
url = "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-licenses/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}&page={PAGE_NO}&proxy_format={HOST:PORT@USERNAME:PASSWORD}"
payload={}
headers = {
'Content-Type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-licenses/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}&page={PAGE_NO}&proxy_format={HOST:PORT@USERNAME:PASSWORD}',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
To get a list of your proxies via SUBSCRIPTION ID
you need to make a GET call to the following endpoint.
API endpoint: GET /wp-json/lmfwc/v2/licenses/customer/user-licenses
curl --location --request GET 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-licenses/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}&subscription_id={SUBSCRIPTION_ID}&page={PAGE_NO}&proxy_format={HOST:PORT@USERNAME:PASSWORD}' \
--header 'Content-Type: application/json'
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-licenses/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}&subscription_id={SUBSCRIPTION_ID}&page={PAGE_NO}&proxy_format={HOST:PORT@USERNAME:PASSWORD}',
'headers': {
'Content-Type': 'application/json'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
OkHttpClient client = new OkHttpClient().newBuilder().build();
Request request = new Request.Builder()
.url("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-licenses/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}&subscription_id={SUBSCRIPTION_ID}&page={PAGE_NO}&proxy_format={HOST:PORT@USERNAME:PASSWORD}")
.method("GET", null)
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-licenses/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}&subscription_id={SUBSCRIPTION_ID}&page={PAGE_NO}&proxy_format={HOST:PORT@USERNAME:PASSWORD}");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import requests
url = "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-licenses/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}&subscription_id={SUBSCRIPTION_ID}&page={PAGE_NO}&proxy_format={HOST:PORT@USERNAME:PASSWORD}"
payload={}
headers = {
'Content-Type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-licenses/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}&subscription_id={SUBSCRIPTION_ID}&page={PAGE_NO}&proxy_format={HOST:PORT@USERNAME:PASSWORD}',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
To get a list of your proxies via order id
you need to make a GET call to the following endpoint.
API endpoint: GET /wp-json/lmfwc/v2/licenses/customer/user-licenses
curl --location --request GET 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-licenses/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}&order_id={ORDER_ID}&page={PAGE_NO}&proxy_format={HOST:PORT@USERNAME:PASSWORD}' \
--header 'Content-Type: application/json'
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-licenses/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}&order_id={ORDER_ID}&page={PAGE_NO}&proxy_format={HOST:PORT@USERNAME:PASSWORD}',
'headers': {
'Content-Type': 'application/json'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
OkHttpClient client = new OkHttpClient().newBuilder().build();
Request request = new Request.Builder()
.url("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-licenses/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}&order_id={ORDER_ID}&page={PAGE_NO}&proxy_format={HOST:PORT@USERNAME:PASSWORD}")
.method("GET", null)
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-licenses/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}&order_id={ORDER_ID}&page={PAGE_NO}&proxy_format={HOST:PORT@USERNAME:PASSWORD}");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import requests
url = "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-licenses/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}&order_id={ORDER_ID}&page={PAGE_NO}&proxy_format={HOST:PORT@USERNAME:PASSWORD}"
payload={}
headers = {
'Content-Type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-licenses/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}&order_id={ORDER_ID}&page={PAGE_NO}&proxy_format={HOST:PORT@USERNAME:PASSWORD}',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
To get an information for your specific proxy, you need to make a GET call to the following endpoint.
API endpoint: GET /wp-json/lmfwc/v2/licenses/customer/user-license/{BASE64_ENCODED_LICENSE_STRING}
curl --location --request GET 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-license/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}&proxy_format={HOST:PORT@USERNAME:PASSWORD}' \
--header 'Content-Type: application/json'
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-license/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}&proxy_format={HOST:PORT@USERNAME:PASSWORD}',
'headers': {
'Content-Type': 'application/json'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
OkHttpClient client = new OkHttpClient().newBuilder().build();
Request request = new Request.Builder()
.url("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-license/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}&proxy_format={HOST:PORT@USERNAME:PASSWORD}")
.method("GET", null)
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-license/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}&proxy_format={HOST:PORT@USERNAME:PASSWORD}");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import requests
url = "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-license/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}&proxy_format={HOST:PORT@USERNAME:PASSWORD}"
payload={}
headers = {
'Content-Type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-license/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}&proxy_format={HOST:PORT@USERNAME:PASSWORD}',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
To rotate a proxy you need to make a GET call to the following endpoint:
API endpoint: GET /wp-json/lmfwc/v2/licenses/rotate-proxy/{BASE64_ENCODED_LICENSE_STRING}
curl --location --request GET 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/rotate-proxy/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}' \
--header 'Content-Type: application/json'
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/rotate-proxy/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
'headers': {
'Content-Type': 'application/json'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
OkHttpClient client = new OkHttpClient().newBuilder().build();
Request request = new Request.Builder()
.url("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/rotate-proxy/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}")
.method("GET", null)
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/rotate-proxy/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import requests
url = "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/rotate-proxy/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}"
payload={}
headers = {
'Content-Type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/rotate-proxy/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
To view the logs for a proxy you need to make a GET call to the following endpoint:
API endpoint: GET /wp-json/lmfwc/v2/licenses/proxy-logs/{BASE64_ENCODED_LICENSE_STRING}
curl --location --request GET 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/proxy-logs/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}&page={PAGE_NO}' \
--header 'Content-Type: application/json'
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/proxy-logs/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}&page={PAGE_NO}',
'headers': {
'Content-Type': 'application/json'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
OkHttpClient client = new OkHttpClient().newBuilder().build();
Request request = new Request.Builder()
.url("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/proxy-logs/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}&page={PAGE_NO}")
.method("GET", null)
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/proxy-logs/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}&page={PAGE_NO}");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import requests
url = "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/proxy-logs/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}&page={PAGE_NO}"
payload={}
headers = {
'Content-Type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/proxy-logs/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}&page={PAGE_NO}',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
To cancel the subscription for a proxy you need to make a GET call to the following endpoint:
API endpoint: GET /wp-json/lmfwc/v2/licenses/cancel-subscription/{BASE64_ENCODED_LICENSE_STRING}
curl --location --request GET 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/cancel-subscription/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}' \
--header 'Content-Type: application/json'
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/cancel-subscription/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
'headers': {
'Content-Type': 'application/json'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
OkHttpClient client = new OkHttpClient().newBuilder().build();
Request request = new Request.Builder()
.url("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/cancel-subscription/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}")
.method("GET", null)
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/cancel-subscription/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import requests
url = "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/cancel-subscription/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}"
payload={}
headers = {
'Content-Type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/cancel-subscription/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
To set a rotation interval for a proxy you need to make a POST call to the following endpoint:
API endpoint: POST /wp-json/lmfwc/v2/licenses/rotation-interval/{BASE64_ENCODED_LICENSE_STRING}
curl --location --request POST 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/rotation-interval/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}' \
--header 'Content-Type: application/json' \
--data-raw '{
"reboot_interval": 10}'
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/rotation-interval/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
'headers': {
'Content-Type': 'application/json'
},
body: JSON.stringify({"reboot_interval":})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
OkHttpClient client = new OkHttpClient().newBuilder().build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\r\n \"reboot_interval\": 10\r\n}");
Request request = new Request.Builder()
.url("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/rotation-interval/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}")
.method("POST", body)
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/rotation-interval/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\r\n \"reboot_interval\": 10\r\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import requests
url = "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/rotation-interval/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}"
payload="{\r\n \"reboot_interval\": 10\r\n}"
headers = {
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/rotation-interval/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"reboot_interval": 10 }',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
To disable a rotation interval for a proxy you need to make a POST call to the following endpoint:
curl --location --request POST 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/rotation-interval/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}' \
--header 'Content-Type: application/json' \
--data-raw '{
"reboot_interval": -1}'
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/rotation-interval/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
'headers': {
'Content-Type': 'application/json'
},
body: JSON.stringify({"reboot_interval":-1})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
OkHttpClient client = new OkHttpClient().newBuilder().build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\r\n \"reboot_interval\": 10\r\n}");
Request request = new Request.Builder()
.url("-1")
.method("POST", body)
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/rotation-interval/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\r\n \"reboot_interval\": -1\r\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import requests
url = "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/rotation-interval/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}"
payload="{\r\n \"reboot_interval\": -1\r\n}"
headers = {
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/rotation-interval/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"reboot_interval": -1 }',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
To purchase a proxy you need to make a POST call to the following endpoint.
API endpoint: POST /wp-json/lmfwc/v2/licenses/customer/create-order
curl --location --request POST 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}' \
--header 'Content-Type: text/plain' \
--data-raw '{
"set_paid": false,
"billing": {
"first_name": "John",
"last_name": "Doe",
"address_1": "969 Market",
"address_2": "",
"city": "San Francisco",
"state": "CA",
"postcode": "94103",
"country": "US",
"email": "[email protected]",
"phone": "(555) 555-5555"
},
"shipping": {
"first_name": "John",
"last_name": "Doe",
"address_1": "969 Market",
"address_2": "",
"city": "San Francisco",
"state": "CA",
"postcode": "94103",
"country": "US"
},
"line_items": [
{
"product_id": {PRODUCT_ID},
"quantity": 1
}
]
}'
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
'headers': {
'Content-Type': 'text/plain',
},
body: '{\r\n "set_paid": false,\r\n "billing": {\r\n "first_name": "John",\r\n "last_name": "Doe",\r\n "address_1": "969 Market",\r\n "address_2": "",\r\n "city": "San Francisco",\r\n "state": "CA",\r\n "postcode": "94103",\r\n "country": "US",\r\n "email": "[email protected]",\r\n "phone": "(555) 555-5555"\r\n },\r\n "shipping": {\r\n "first_name": "John",\r\n "last_name": "Doe",\r\n "address_1": "969 Market",\r\n "address_2": "",\r\n "city": "San Francisco",\r\n "state": "CA",\r\n "postcode": "94103",\r\n "country": "US"\r\n },\r\n "line_items": [\r\n {\r\n "product_id": 8298,\r\n "quantity": 1\r\n }\r\n ]\r\n}'
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = RequestBody.create(mediaType, "{\r\n \"set_paid\": false,\r\n \"billing\": {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"address_1\": \"969 Market\",\r\n \"address_2\": \"\",\r\n \"city\": \"San Francisco\",\r\n \"state\": \"CA\",\r\n \"postcode\": \"94103\",\r\n \"country\": \"US\",\r\n \"email\": \"[email protected]\",\r\n \"phone\": \"(555) 555-5555\"\r\n },\r\n \"shipping\": {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"address_1\": \"969 Market\",\r\n \"address_2\": \"\",\r\n \"city\": \"San Francisco\",\r\n \"state\": \"CA\",\r\n \"postcode\": \"94103\",\r\n \"country\": \"US\"\r\n },\r\n \"line_items\": [\r\n {\r\n \"product_id\": 8298,\r\n \"quantity\": 1\r\n }\r\n ]\r\n}");
Request request = new Request.Builder()
.url("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}")
.method("POST", body)
.addHeader("Content-Type", "text/plain")
.build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "text/plain");
var body = @"{
" + "\n" +
@" ""set_paid"": false,
" + "\n" +
@" ""billing"": {
" + "\n" +
@" ""first_name"": ""John"",
" + "\n" +
@" ""last_name"": ""Doe"",
" + "\n" +
@" ""address_1"": ""969 Market"",
" + "\n" +
@" ""address_2"": """",
" + "\n" +
@" ""city"": ""San Francisco"",
" + "\n" +
@" ""state"": ""CA"",
" + "\n" +
@" ""postcode"": ""94103"",
" + "\n" +
@" ""country"": ""US"",
" + "\n" +
@" ""email"": ""[email protected]"",
" + "\n" +
@" ""phone"": ""(555) 555-5555""
" + "\n" +
@" },
" + "\n" +
@" ""shipping"": {
" + "\n" +
@" ""first_name"": ""John"",
" + "\n" +
@" ""last_name"": ""Doe"",
" + "\n" +
@" ""address_1"": ""969 Market"",
" + "\n" +
@" ""address_2"": """",
" + "\n" +
@" ""city"": ""San Francisco"",
" + "\n" +
@" ""state"": ""CA"",
" + "\n" +
@" ""postcode"": ""94103"",
" + "\n" +
@" ""country"": ""US""
" + "\n" +
@" },
" + "\n" +
@" ""line_items"": [
" + "\n" +
@" {
" + "\n" +
@" ""product_id"": 8298,
" + "\n" +
@" ""quantity"": 1
" + "\n" +
@" }
" + "\n" +
@" ]
" + "\n" +
@"}";
request.AddParameter("text/plain", body, ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import requests
url = "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}"
payload = "{\r\n \"set_paid\": false,\r\n \"billing\": {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"address_1\": \"969 Market\",\r\n \"address_2\": \"\",\r\n \"city\": \"San Francisco\",\r\n \"state\": \"CA\",\r\n \"postcode\": \"94103\",\r\n \"country\": \"US\",\r\n \"email\": \"[email protected]\",\r\n \"phone\": \"(555) 555-5555\"\r\n },\r\n \"shipping\": {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"address_1\": \"969 Market\",\r\n \"address_2\": \"\",\r\n \"city\": \"San Francisco\",\r\n \"state\": \"CA\",\r\n \"postcode\": \"94103\",\r\n \"country\": \"US\"\r\n },\r\n \"line_items\": [\r\n {\r\n \"product_id\": 8298,\r\n \"quantity\": 1\r\n }\r\n ]\r\n}"
headers = {
'Content-Type': 'text/plain',
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"set_paid": false,
"billing": {
"first_name": "John",
"last_name": "Doe",
"address_1": "969 Market",
"address_2": "",
"city": "San Francisco",
"state": "CA",
"postcode": "94103",
"country": "US",
"email": "[email protected]",
"phone": "(555) 555-5555"
},
"shipping": {
"first_name": "John",
"last_name": "Doe",
"address_1": "969 Market",
"address_2": "",
"city": "San Francisco",
"state": "CA",
"postcode": "94103",
"country": "US"
},
"line_items": [
{
"product_id": 8298,
"quantity": 1
}
]
}',
CURLOPT_HTTPHEADER => array(
'Content-Type: text/plain',
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
For next time ordering, You can skip the billing and shipping parts
curl --location --request POST 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}' \
--header 'Content-Type: text/plain' \
--data-raw '{
"set_paid": false,
"line_items": [
{
"product_id": {PRODUCT_ID},
"quantity": 1
}
]
}'
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
'headers': {
'Content-Type': 'text/plain',
},
body: '{\r\n "set_paid": false,\r\n "line_items": [\r\n {\r\n "product_id": {PRODUCT_ID},\r\n "quantity": 1\r\n }\r\n ]\r\n}'
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = RequestBody.create(mediaType, "{\r\n \"set_paid\": false,\r\n \"line_items\": [\r\n {\r\n \"product_id\": {PRODUCT_ID},\r\n \"quantity\": 1\r\n }\r\n ]\r\n}");
Request request = new Request.Builder()
.url("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}")
.method("POST", body)
.addHeader("Content-Type", "text/plain")
.build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "text/plain");
var body = @"{
" + "\n" +
@" ""set_paid"": false,
" + "\n" +
@" ""line_items"": [
" + "\n" +
@" {
" + "\n" +
@" ""product_id"": {PRODUCT_ID},
" + "\n" +
@" ""quantity"": 1
" + "\n" +
@" }
" + "\n" +
@" ]
" + "\n" +
@"}";
request.AddParameter("text/plain", body, ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import requests
url = "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}"
payload = "{\r\n \"set_paid\": false,\r\n \"line_items\": [\r\n {\r\n \"product_id\": {PRODUCT_ID},\r\n \"quantity\": 1\r\n }\r\n ]\r\n}"
headers = {
'Content-Type': 'text/plain',
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"set_paid": false,
"line_items": [
{
"product_id": {PRODUCT_ID},
"quantity": 1
}
]
}',
CURLOPT_HTTPHEADER => array(
'Content-Type: text/plain',
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
If you want to use coupon for discount
curl --location --request POST 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}' \
--header 'Content-Type: text/plain' \
--data-raw '{
"set_paid": false,
"coupon": "COUPON_CODE_HERE",
"line_items": [
{
"product_id": {PRODUCT_ID},
"quantity": 1
}
]
}'
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
'headers': {
'Content-Type': 'text/plain',
},
body: '{\r\n "set_paid": false,\r\n "coupon": "COUPON_CODE_HERE",\r\n "line_items": [\r\n {\r\n "product_id": {PRODUCT_ID},\r\n "quantity": 1\r\n }\r\n ]\r\n}'
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = RequestBody.create(mediaType, "{\r\n \"set_paid\": false,\r\n \"coupon\": \"COUPON_CODE_HERE\",\r\n \"line_items\": [\r\n {\r\n \"product_id\": {PRODUCT_ID},\r\n \"quantity\": 1\r\n }\r\n ]\r\n}");
Request request = new Request.Builder()
.url("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}")
.method("POST", body)
.addHeader("Content-Type", "text/plain")
.build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "text/plain");
var body = @"{
" + "\n" +
@" ""set_paid"": false,
" + "\n" +
@" ""coupon"": ""COUPON_CODE_HERE"",
" + "\n" +
@" ""line_items"": [
" + "\n" +
@" {
" + "\n" +
@" ""product_id"": {PRODUCT_ID},
" + "\n" +
@" ""quantity"": 1
" + "\n" +
@" }
" + "\n" +
@" ]
" + "\n" +
@"}";
request.AddParameter("text/plain", body, ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import requests
url = "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}"
payload = "{\r\n \"set_paid\": false,\r\n \"coupon\": \"COUPON_CODE_HERE\",\r\n \"line_items\": [\r\n {\r\n \"product_id\": {PRODUCT_ID},\r\n \"quantity\": 1\r\n }\r\n ]\r\n}"
headers = {
'Content-Type': 'text/plain',
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"set_paid": false,
"coupon": "COUPON_CODE_HERE",
"line_items": [
{
"product_id": {PRODUCT_ID},
"quantity": 1
}
]
}',
CURLOPT_HTTPHEADER => array(
'Content-Type: text/plain',
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
If you want proxies listing in response (set proxy_listing flag to true)
curl --location --request POST 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}' \
--header 'Content-Type: text/plain' \
--data-raw '{
"set_paid": false,
"proxy_listing" : true,
"coupon": "COUPON_CODE_HERE",
"line_items": [
{
"product_id": {PRODUCT_ID},
"quantity": 1
}
]
}'
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
'headers': {
'Content-Type': 'text/plain',
},
body: '{\r\n "set_paid": false,\r\n "proxy_listing": true,\r\n "coupon": "COUPON_CODE_HERE",\r\n "line_items": [\r\n {\r\n "product_id": {PRODUCT_ID},\r\n "quantity": 1\r\n }\r\n ]\r\n}'
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = RequestBody.create(mediaType, "{\r\n \"set_paid\": false,\r\n \"proxy_listing\": true,\r\n \"coupon\": \"COUPON_CODE_HERE\",\r\n \"line_items\": [\r\n {\r\n \"product_id\": {PRODUCT_ID},\r\n \"quantity\": 1\r\n }\r\n ]\r\n}");
Request request = new Request.Builder()
.url("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}")
.method("POST", body)
.addHeader("Content-Type", "text/plain")
.build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "text/plain");
var body = @"{
" + "\n" +
@" ""set_paid"": false,
" + "\n" +
@" ""proxy_listing"": true,
" + "\n" +
@" ""coupon"": ""COUPON_CODE_HERE"",
" + "\n" +
@" ""line_items"": [
" + "\n" +
@" {
" + "\n" +
@" ""product_id"": {PRODUCT_ID},
" + "\n" +
@" ""quantity"": 1
" + "\n" +
@" }
" + "\n" +
@" ]
" + "\n" +
@"}";
request.AddParameter("text/plain", body, ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import requests
url = "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}"
payload = "{\r\n \"set_paid\": false,\r\n \"proxy_listing\": true,\r\n \"coupon\": \"COUPON_CODE_HERE\",\r\n \"line_items\": [\r\n {\r\n \"product_id\": {PRODUCT_ID},\r\n \"quantity\": 1\r\n }\r\n ]\r\n}"
headers = {
'Content-Type': 'text/plain',
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"set_paid": false,
"proxy_listing": true,
"coupon": "COUPON_CODE_HERE",
"line_items": [
{
"product_id": {PRODUCT_ID},
"quantity": 1
}
]
}',
CURLOPT_HTTPHEADER => array(
'Content-Type: text/plain',
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
To purchase a proxy you need to make a POST call to the following endpoint.
API endpoint: POST /wp-json/lmfwc/v2/licenses/customer/create-new-order
curl --location -g --request POST 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}' \
--header 'Content-Type: application/json' \
--data-raw '{
"set_paid":false,
"billing":{
"first_name":"John",
"last_name":"Doe",
"address_1":"969 Market",
"address_2":"",
"city":"San Francisco",
"state":"CA",
"postcode":"94103",
"country":"US",
"email":"[email protected]",
"phone":"(555) 555-5555"
},
"shipping":{
"first_name":"John",
"last_name":"Doe",
"address_1":"969 Market",
"address_2":"",
"city":"San Francisco",
"state":"CA",
"postcode":"94103",
"country":"US"
},
"line_items":[
{
"proxy_type":"By-Proxy",
"region":"{PROXY_REGION}",
"subscription":"{PROXY_SUBSCRIPTION}",
"quantity":1
}
]
}
'
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
'headers': {
'Content-Type': 'application/json'
},
body: JSON.stringify({
"set_paid": false,
"billing": {
"first_name": "John",
"last_name": "Doe",
"address_1": "969 Market",
"address_2": "",
"city": "San Francisco",
"state": "CA",
"postcode": "94103",
"country": "US",
"email": "[email protected]",
"phone": "(555) 555-5555"
},
"shipping": {
"first_name": "John",
"last_name": "Doe",
"address_1": "969 Market",
"address_2": "",
"city": "San Francisco",
"state": "CA",
"postcode": "94103",
"country": "US"
},
"line_items": [
{
"proxy_type": "By-Proxy",
"region": "{PROXY_REGION}",
"subscription": "{PROXY_SUBSCRIPTION}",
"quantity": 1
}
]
})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"set_paid\":false,\n \"billing\":{\n \"first_name\":\"John\",\n \"last_name\":\"Doe\",\n \"address_1\":\"969 Market\",\n \"address_2\":\"\",\n \"city\":\"San Francisco\",\n \"state\":\"CA\",\n \"postcode\":\"94103\",\n \"country\":\"US\",\n \"email\":\"[email protected]\",\n \"phone\":\"(555) 555-5555\"\n },\n \"shipping\":{\n \"first_name\":\"adam\",\n \"last_name\":\"smith\",\n \"address_1\":\"969 Market\",\n \"address_2\":\"\",\n \"city\":\"San Francisco\",\n \"state\":\"CA\",\n \"postcode\":\"94103\",\n \"country\":\"US\"\n },\n \"line_items\":[\n {\n \"proxy_type\":\"By-Proxy\",\n \"region\":\"{PROXY_REGION}\",\n \"subscription\":\"{PROXY_SUBSCRIPTION}\",\n \"quantity\":1\n }\n ]\n}\n");
Request request = new Request.Builder()
.url("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}")
.post(body)
.addHeader("Content-Type", "application/json")
.addHeader("cache-control", "no-cache"))
.build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{" + "\n" +
@" ""set_paid"":false," + "\n" +
@" ""billing"":{" + "\n" +
@" ""first_name"":""John""," + "\n" +
@" ""last_name"":""Doe""," + "\n" +
@" ""address_1"":""969 Market""," + "\n" +
@" ""address_2"":""""," + "\n" +
@" ""city"":""San Francisco""," + "\n" +
@" ""state"":""CA""," + "\n" +
@" ""postcode"":""94103""," + "\n" +
@" ""country"":""US""," + "\n" +
@" ""email"":""[email protected]""," + "\n" +
@" ""phone"":""(555) 555-5555""" + "\n" +
@" }," + "\n" +
@" ""shipping"":{" + "\n" +
@" ""first_name"":""John""," + "\n" +
@" ""last_name"":""Doe""," + "\n" +
@" ""address_1"":""969 Market""," + "\n" +
@" ""address_2"":""""," + "\n" +
@" ""city"":""San Francisco""," + "\n" +
@" ""state"":""CA""," + "\n" +
@" ""postcode"":""94103""," + "\n" +
@" ""country"":""US""" + "\n" +
@" }," + "\n" +
@" ""line_items"":[" + "\n" +
@" {" + "\n" +
@" ""proxy_type"":""By-Proxy""," + "\n" +
@" ""region"":""{PROXY_REGION}""," + "\n" +
@" ""subscription"":""{PROXY_SUBSCRIPTION}""," + "\n" +
@" ""quantity"":1" + "\n" +
@" }" + "\n" +
@" ]" + "\n" +
@"}" + "\n" +
@"";
request.AddParameter("application/json", body, ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import requests
import json
url = "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}"
payload = json.dumps({
"set_paid": False,
"billing": {
"first_name": "John",
"last_name": "Doe",
"address_1": "969 Market",
"address_2": "",
"city": "San Francisco",
"state": "CA",
"postcode": "94103",
"country": "US",
"email": "[email protected]",
"phone": "(555) 555-5555"
},
"shipping": {
"first_name": "John",
"last_name": "Doe",
"address_1": "969 Market",
"address_2": "",
"city": "San Francisco",
"state": "CA",
"postcode": "94103",
"country": "US"
},
"line_items": [
{
"proxy_type": "By-Proxy",
"region": "{PROXY_REGION}",
"subscription": "{PROXY_SUBSCRIPTION}",
"quantity": 1
}
]
})
headers = {
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{\n \"set_paid\":false,\n \"billing\":{\n \"first_name\":\"John\",\n \"last_name\":\"Doe\",\n \"address_1\":\"969 Market\",\n \"address_2\":\"\",\n \"city\":\"San Francisco\",\n \"state\":\"CA\",\n \"postcode\":\"94103\",\n \"country\":\"US\",\n \"email\":\"[email protected]\",\n \"phone\":\"(555) 555-5555\"\n },\n \"shipping\":{\n \"first_name\":\"adam\",\n \"last_name\":\"smith\",\n \"address_1\":\"969 Market\",\n \"address_2\":\"\",\n \"city\":\"San Francisco\",\n \"state\":\"CA\",\n \"postcode\":\"94103\",\n \"country\":\"US\"\n },\n \"line_items\":[\n {\n \"proxy_type\":\"By-Proxy\",\n \"region\":\"{PROXY_REGION}\",\n \"subscription\":\"{PROXY_SUBSCRIPTION}\",\n \"quantity\":1\n }\n ]\n}\n",
CURLOPT_HTTPHEADER => array(
"Content-Type: application/json",
"Postman-Token: a7603eee-4a58-4132-a6cd-7cd783092eba",
"cache-control: no-cache"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
For next time ordering, You can skip the billing and shipping parts
curl --location -g --request POST 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}' \
--header 'Content-Type: application/json' \
--data-raw '{
"set_paid":false,
"line_items":[
{
"proxy_type":"By-Proxy",
"region":"{PROXY_REGION}",
"subscription":"{PROXY_SUBSCRIPTION}",
"quantity":1
}
]
}
'
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
'headers': {
'Content-Type': 'application/json'
},
body: JSON.stringify({
"set_paid": false,
"line_items": [
{
"proxy_type": "By-Proxy",
"region": "{PROXY_REGION}",
"subscription": "{PROXY_SUBSCRIPTION}",
"quantity": 1
}
]
})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"set_paid\":false,\n \"line_items\":[\n {\n \"proxy_type\":\"By-Proxy\",\n \"region\":\"{PROXY_REGION}\",\n \"subscription\":\"{PROXY_SUBSCRIPTION}\",\n \"quantity\":1\n }\n ]\n}\n");
Request request = new Request.Builder()
.url("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}")
.post(body)
.addHeader("Content-Type", "application/json")
.addHeader("cache-control", "no-cache")
.build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{" + "\n" +
@" ""set_paid"":false," + "\n" +
@" ""line_items"":[" + "\n" +
@" {" + "\n" +
@" ""proxy_type"":""By-Proxy""," + "\n" +
@" ""region"":""{PROXY_REGION}""," + "\n" +
@" ""subscription"":""{PROXY_SUBSCRIPTION}""," + "\n" +
@" ""quantity"":1" + "\n" +
@" }" + "\n" +
@" ]" + "\n" +
@"}" + "\n" +
@"";
request.AddParameter("application/json", body, ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import requests
import json
url = "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}"
payload = json.dumps({
"set_paid": False,
"line_items": [
{
"proxy_type": "By-Proxy",
"region": "{PROXY_REGION}",
"subscription": "{PROXY_SUBSCRIPTION}",
"quantity": 1
}
]
})
headers = {
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{\n \"set_paid\":false,\n \"line_items\":[\n {\n \"proxy_type\":\"By-Proxy\",\n \"region\":\"{PROXY_REGION}\",\n \"subscription\":\"{PROXY_SUBSCRIPTION}\",\n \"quantity\":1\n }\n ]\n}\n",
CURLOPT_HTTPHEADER => array(
"Content-Type: application/json",
"cache-control: no-cache"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
If you want to use coupon for discount
curl --location -g --request POST 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}' \
--header 'Content-Type: application/json' \
--data-raw '{
"set_paid":false,
"coupon": "COUPON_CODE_HERE",
"line_items":[
{
"proxy_type":"By-Proxy",
"region":"{PROXY_REGION}",
"subscription":"{PROXY_SUBSCRIPTION}",
"quantity":1
}
]
}
'
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
'headers': {
'Content-Type': 'application/json'
},
body: JSON.stringify({
"set_paid": false,
"coupon": "COUPON_CODE_HERE",
"line_items": [
{
"proxy_type": "By-Proxy",
"region": "{PROXY_REGION}",
"subscription": "{PROXY_SUBSCRIPTION}",
"quantity": 1
}
]
})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"set_paid\":false,\n \"coupon\": \"COUPON_CODE_HERE\",\n \"line_items\":[\n {\n \"proxy_type\":\"By-Proxy\",\n \"region\":\"{PROXY_REGION}\",\n \"subscription\":\"{PROXY_SUBSCRIPTION}\",\n \"quantity\":1\n }\n ]\n}\n");
Request request = new Request.Builder()
.url("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}")
.post(body)
.addHeader("Content-Type", "application/json")
.addHeader("cache-control", "no-cache")
.build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{" + "\n" +
@" ""set_paid"":false," + "\n" +
@" ""coupon"": ""COUPON_CODE_HERE""," + "\n" +
@" ""line_items"":[" + "\n" +
@" {" + "\n" +
@" ""proxy_type"":""By-Proxy""," + "\n" +
@" ""region"":""{PROXY_REGION}""," + "\n" +
@" ""subscription"":""{PROXY_SUBSCRIPTION}""," + "\n" +
@" ""quantity"":1" + "\n" +
@" }" + "\n" +
@" ]" + "\n" +
@"}" + "\n" +
@"";
request.AddParameter("application/json", body, ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import requests
import json
url = "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}"
payload = json.dumps({
"set_paid": False,
"coupon": "COUPON_CODE_HERE",
"line_items": [
{
"proxy_type": "By-Proxy",
"region": "{PROXY_REGION}",
"subscription": "{PROXY_SUBSCRIPTION}",
"quantity": 1
}
]
})
headers = {
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{\n \"set_paid\":false,\n \"coupon\": \"COUPON_CODE_HERE\",\n \"line_items\":[\n {\n \"proxy_type\":\"By-Proxy\",\n \"region\":\"{PROXY_REGION}\",\n \"subscription\":\"{PROXY_SUBSCRIPTION}\",\n \"quantity\":1\n }\n ]\n}\n",
CURLOPT_HTTPHEADER => array(
"Content-Type: application/json",
"cache-control: no-cache"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
To purchase a proxy you need to make a POST call to the following endpoint.
API endpoint: POST /wp-json/lmfwc/v2/licenses/customer/create-new-order
curl --location -g --request POST 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}' \
--header 'Content-Type: application/json' \
--data-raw '{
"set_paid":false,
"billing":{
"first_name":"John",
"last_name":"Doe",
"address_1":"969 Market",
"address_2":"",
"city":"San Francisco",
"state":"CA",
"postcode":"94103",
"country":"US",
"email":"[email protected]",
"phone":"(555) 555-5555"
},
"shipping":{
"first_name":"John",
"last_name":"Doe",
"address_1":"969 Market",
"address_2":"",
"city":"San Francisco",
"state":"CA",
"postcode":"94103",
"country":"US"
},
"line_items":[
{
"proxy_type":"By-Usage",
"region":"{PROXY_REGION}",
"subscription":"{PROXY_SUBSCRIPTION}",
"package":"{PROXY_PACKAGE}"
}
]
}
'
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
'headers': {
'Content-Type': 'application/json'
},
body: JSON.stringify({
"set_paid": false,
"billing": {
"first_name": "John",
"last_name": "Doe",
"address_1": "969 Market",
"address_2": "",
"city": "San Francisco",
"state": "CA",
"postcode": "94103",
"country": "US",
"email": "[email protected]",
"phone": "(555) 555-5555"
},
"shipping": {
"first_name": "John",
"last_name": "Doe",
"address_1": "969 Market",
"address_2": "",
"city": "San Francisco",
"state": "CA",
"postcode": "94103",
"country": "US"
},
"line_items": [
{
"proxy_type": "By-Usage",
"region": "{PROXY_REGION}",
"subscription": "{PROXY_SUBSCRIPTION}",
"package": "{PROXY_PACKAGE}"
}
]
})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"set_paid\":false,\n \"billing\":{\n \"first_name\":\"John\",\n \"last_name\":\"Doe\",\n \"address_1\":\"969 Market\",\n \"address_2\":\"\",\n \"city\":\"San Francisco\",\n \"state\":\"CA\",\n \"postcode\":\"94103\",\n \"country\":\"US\",\n \"email\":\"[email protected]\",\n \"phone\":\"(555) 555-5555\"\n },\n \"shipping\":{\n \"first_name\":\"adam\",\n \"last_name\":\"smith\",\n \"address_1\":\"969 Market\",\n \"address_2\":\"\",\n \"city\":\"San Francisco\",\n \"state\":\"CA\",\n \"postcode\":\"94103\",\n \"country\":\"US\"\n },\n \"line_items\":[\n {\n \"proxy_type\":\"By-Usage\",\n \"region\":\"{PROXY_REGION}\",\n \"subscription\":\"{PROXY_SUBSCRIPTION}\",\n \"package\":\"{PROXY_PACKAGE}\"\n }\n ]\n}\n");
Request request = new Request.Builder()
.url("")
.post(body)
.addHeader("Content-Type", "application/json")
.addHeader("cache-control", "no-cache")
.build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{" + "\n" +
@" ""set_paid"":false," + "\n" +
@" ""billing"":{" + "\n" +
@" ""first_name"":""John""," + "\n" +
@" ""last_name"":""Doe""," + "\n" +
@" ""address_1"":""969 Market""," + "\n" +
@" ""address_2"":""""," + "\n" +
@" ""city"":""San Francisco""," + "\n" +
@" ""state"":""CA""," + "\n" +
@" ""postcode"":""94103""," + "\n" +
@" ""country"":""US""," + "\n" +
@" ""email"":""[email protected]""," + "\n" +
@" ""phone"":""(555) 555-5555""" + "\n" +
@" }," + "\n" +
@" ""shipping"":{" + "\n" +
@" ""first_name"":""John""," + "\n" +
@" ""last_name"":""Doe""," + "\n" +
@" ""address_1"":""969 Market""," + "\n" +
@" ""address_2"":""""," + "\n" +
@" ""city"":""San Francisco""," + "\n" +
@" ""state"":""CA""," + "\n" +
@" ""postcode"":""94103""," + "\n" +
@" ""country"":""US""" + "\n" +
@" }," + "\n" +
@" ""line_items"":[" + "\n" +
@" {" + "\n" +
@" ""proxy_type"":""By-Usage""," + "\n" +
@" ""region"":""{PROXY_REGION}""," + "\n" +
@" ""subscription"":""{PROXY_SUBSCRIPTION}""," + "\n" +
@" ""package"":""{PROXY_PACKAGE}""" + "\n" +
@" }" + "\n" +
@" ]" + "\n" +
@"}" + "\n" +
@"";
request.AddParameter("application/json", body, ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import requests
import json
url = "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}"
payload = json.dumps({
"set_paid": False,
"billing": {
"first_name": "John",
"last_name": "Doe",
"address_1": "969 Market",
"address_2": "",
"city": "San Francisco",
"state": "CA",
"postcode": "94103",
"country": "US",
"email": "[email protected]",
"phone": "(555) 555-5555"
},
"shipping": {
"first_name": "John",
"last_name": "Doe",
"address_1": "969 Market",
"address_2": "",
"city": "San Francisco",
"state": "CA",
"postcode": "94103",
"country": "US"
},
"line_items": [
{
"proxy_type": "By-Usage",
"region": "{PROXY_REGION}",
"subscription": "{PROXY_SUBSCRIPTION}",
"package": "{PROXY_PACKAGE}"
}
]
})
headers = {
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{\n \"set_paid\":false,\n \"billing\":{\n \"first_name\":\"John\",\n \"last_name\":\"Doe\",\n \"address_1\":\"969 Market\",\n \"address_2\":\"\",\n \"city\":\"San Francisco\",\n \"state\":\"CA\",\n \"postcode\":\"94103\",\n \"country\":\"US\",\n \"email\":\"[email protected]\",\n \"phone\":\"(555) 555-5555\"\n },\n \"shipping\":{\n \"first_name\":\"adam\",\n \"last_name\":\"smith\",\n \"address_1\":\"969 Market\",\n \"address_2\":\"\",\n \"city\":\"San Francisco\",\n \"state\":\"CA\",\n \"postcode\":\"94103\",\n \"country\":\"US\"\n },\n \"line_items\":[\n {\n \"proxy_type\":\"By-Usage\",\n \"region\":\"{PROXY_REGION}\",\n \"subscription\":\"{PROXY_SUBSCRIPTION}\",\n \"package\":\"{PROXY_PACKAGE}\"\n }\n ]\n}\n",
CURLOPT_HTTPHEADER => array(
"Content-Type: application/json",
"cache-control: no-cache"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
For next time ordering, You can skip the billing and shipping parts
curl --location -g --request POST 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}' \
--header 'Content-Type: application/json' \
--data-raw '{
"set_paid":false,
"line_items":[
{
"proxy_type":"By-Usage",
"region":"{PROXY_REGION}",
"subscription":"{PROXY_SUBSCRIPTION}",
"package":"{PROXY_PACKAGE}"
}
]
}
'
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
'headers': {
'Content-Type': 'application/json'
},
body: JSON.stringify({
"set_paid": false,
"line_items": [
{
"proxy_type": "By-Usage",
"region": "{PROXY_REGION}",
"subscription": "{PROXY_SUBSCRIPTION}",
"package": "{PROXY_PACKAGE}"
}
]
})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"set_paid\":false,\n \n \"line_items\":[\n {\n \"proxy_type\":\"By-Usage\",\n \"region\":\"{PROXY_REGION}\",\n \"subscription\":\"{PROXY_SUBSCRIPTION}\",\n \"package\":\"{PROXY_PACKAGE}\"\n }\n ]\n}\n");
Request request = new Request.Builder()
.url("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}")
.post(body)
.addHeader("Content-Type", "application/json")
.addHeader("cache-control", "no-cache")
.build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{" + "\n" +
@" ""set_paid"":false," + "\n" +
@" ""line_items"":[" + "\n" +
@" {" + "\n" +
@" ""proxy_type"":""By-Usage""," + "\n" +
@" ""region"":""{PROXY_REGION}""," + "\n" +
@" ""subscription"":""{PROXY_SUBSCRIPTION}""," + "\n" +
@" ""package"":""{PROXY_PACKAGE}""" + "\n" +
@" }" + "\n" +
@" ]" + "\n" +
@"}" + "\n" +
@"";
request.AddParameter("application/json", body, ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import requests
import json
url = "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}"
payload = json.dumps({
"set_paid": False,
"line_items": [
{
"proxy_type": "By-Usage",
"region": "{PROXY_REGION}",
"subscription": "{PROXY_SUBSCRIPTION}",
"package": "{PROXY_PACKAGE}"
}
]
})
headers = {
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{\n \"set_paid\":false,\n \n \"line_items\":[\n {\n \"proxy_type\":\"By-Usage\",\n \"region\":\"{PROXY_REGION}\",\n \"subscription\":\"{PROXY_SUBSCRIPTION}\",\n \"package\":\"{PROXY_PACKAGE}\"\n }\n ]\n}\n",
CURLOPT_HTTPHEADER => array(
"Content-Type: application/json",
"cache-control: no-cache"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
If you want to use coupon for discount
curl --location -g --request POST 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}' \
--header 'Content-Type: application/json' \
--data-raw '{
"set_paid":false,
"coupon": "COUPON_CODE_HERE",
"line_items":[
{
"proxy_type":"By-Usage",
"region":"{PROXY_REGION}",
"subscription":"{PROXY_SUBSCRIPTION}",
"package":"{PROXY_PACKAGE}"
}
]
}
'
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
'headers': {
'Content-Type': 'application/json'
},
body: JSON.stringify({
"set_paid": false,
"coupon": "COUPON_CODE_HERE",
"line_items": [
{
"proxy_type": "By-Usage",
"region": "{PROXY_REGION}",
"subscription": "{PROXY_SUBSCRIPTION}",
"package": "{PROXY_PACKAGE}"
}
]
})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"set_paid\":false,\n \"coupon\": \"COUPON_CODE_HERE\",\n \n \"line_items\":[\n {\n \"proxy_type\":\"By-Usage\",\n \"region\":\"{PROXY_REGION}\",\n \"subscription\":\"{PROXY_SUBSCRIPTION}\",\n \"package\":\"{PROXY_PACKAGE}\"\n }\n ]\n}\n");
Request request = new Request.Builder()
.url("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}")
.post(body)
.addHeader("Content-Type", "application/json")
.addHeader("cache-control", "no-cache")
.build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{" + "\n" +
@" ""set_paid"":false," + "\n" +
@" ""coupon"": ""COUPON_CODE_HERE""," + "\n" +
@" ""line_items"":[" + "\n" +
@" {" + "\n" +
@" ""proxy_type"":""By-Usage""," + "\n" +
@" ""region"":""{PROXY_REGION}""," + "\n" +
@" ""subscription"":""{PROXY_SUBSCRIPTION}""," + "\n" +
@" ""package"":""{PROXY_PACKAGE}""" + "\n" +
@" }" + "\n" +
@" ]" + "\n" +
@"}" + "\n" +
@"";
request.AddParameter("application/json", body, ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import requests
import json
url = "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}"
payload = json.dumps({
"set_paid": False,
"coupon": "COUPON_CODE_HERE",
"line_items": [
{
"proxy_type": "By-Usage",
"region": "{PROXY_REGION}",
"subscription": "{PROXY_SUBSCRIPTION}",
"package": "{PROXY_PACKAGE}"
}
]
})
headers = {
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{\n \"set_paid\":false,\n \"coupon\": \"COUPON_CODE_HERE\",\n \n \"line_items\":[\n {\n \"proxy_type\":\"By-Usage\",\n \"region\":\"{PROXY_REGION}\",\n \"subscription\":\"{PROXY_SUBSCRIPTION}\",\n \"package\":\"{PROXY_PACKAGE}\"\n }\n ]\n}\n",
CURLOPT_HTTPHEADER => array(
"Content-Type: application/json",
"cache-control: no-cache"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
To purchase a proxy you need to make a POST call to the following endpoint.
API endpoint: POST /wp-json/lmfwc/v2/licenses/customer/create-new-order
curl --location -g --request POST 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}' \
--header 'Content-Type: application/json' \
--data-raw '{
"set_paid":false,
"billing":{
"first_name":"John",
"last_name":"Doe",
"address_1":"969 Market",
"address_2":"",
"city":"San Francisco",
"state":"CA",
"postcode":"94103",
"country":"US",
"email":"[email protected]",
"phone":"(555) 555-5555"
},
"shipping":{
"first_name":"John",
"last_name":"Doe",
"address_1":"969 Market",
"address_2":"",
"city":"San Francisco",
"state":"CA",
"postcode":"94103",
"country":"US"
},
"line_items":[
{
"proxy_type":"Rotating-Proxies",
"region":"{PROXY_REGION}",
"subscription":"{PROXY_SUBSCRIPTION}",
"package":"{PROXY_PACKAGE}"
}
]
}
'
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
'headers': {
'Content-Type': 'application/json'
},
body: JSON.stringify({
"set_paid": false,
"billing": {
"first_name": "John",
"last_name": "Doe",
"address_1": "969 Market",
"address_2": "",
"city": "San Francisco",
"state": "CA",
"postcode": "94103",
"country": "US",
"email": "[email protected]",
"phone": "(555) 555-5555"
},
"shipping": {
"first_name": "John",
"last_name": "Doe",
"address_1": "969 Market",
"address_2": "",
"city": "San Francisco",
"state": "CA",
"postcode": "94103",
"country": "US"
},
"line_items": [
{
"proxy_type": "Rotating-Proxies",
"region": "{PROXY_REGION}",
"subscription": "{PROXY_SUBSCRIPTION}",
"package": "{PROXY_PACKAGE}"
}
]
})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"set_paid\":false,\n \"billing\":{\n \"first_name\":\"John\",\n \"last_name\":\"Doe\",\n \"address_1\":\"969 Market\",\n \"address_2\":\"\",\n \"city\":\"San Francisco\",\n \"state\":\"CA\",\n \"postcode\":\"94103\",\n \"country\":\"US\",\n \"email\":\"[email protected]\",\n \"phone\":\"(555) 555-5555\"\n },\n \"shipping\":{\n \"first_name\":\"adam\",\n \"last_name\":\"smith\",\n \"address_1\":\"969 Market\",\n \"address_2\":\"\",\n \"city\":\"San Francisco\",\n \"state\":\"CA\",\n \"postcode\":\"94103\",\n \"country\":\"US\"\n },\n \"line_items\":[\n {\n \"proxy_type\":\"Rotating-Proxies\",\n \"region\":\"{PROXY_REGION}\",\n \"subscription\":\"{PROXY_SUBSCRIPTION}\",\n \"package\":\"{PROXY_PACKAGE}\"\n }\n ]\n}\n");
Request request = new Request.Builder()
.url("")
.post(body)
.addHeader("Content-Type", "application/json")
.addHeader("cache-control", "no-cache")
.build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{" + "\n" +
@" ""set_paid"":false," + "\n" +
@" ""billing"":{" + "\n" +
@" ""first_name"":""John""," + "\n" +
@" ""last_name"":""Doe""," + "\n" +
@" ""address_1"":""969 Market""," + "\n" +
@" ""address_2"":""""," + "\n" +
@" ""city"":""San Francisco""," + "\n" +
@" ""state"":""CA""," + "\n" +
@" ""postcode"":""94103""," + "\n" +
@" ""country"":""US""," + "\n" +
@" ""email"":""[email protected]""," + "\n" +
@" ""phone"":""(555) 555-5555""" + "\n" +
@" }," + "\n" +
@" ""shipping"":{" + "\n" +
@" ""first_name"":""John""," + "\n" +
@" ""last_name"":""Doe""," + "\n" +
@" ""address_1"":""969 Market""," + "\n" +
@" ""address_2"":""""," + "\n" +
@" ""city"":""San Francisco""," + "\n" +
@" ""state"":""CA""," + "\n" +
@" ""postcode"":""94103""," + "\n" +
@" ""country"":""US""" + "\n" +
@" }," + "\n" +
@" ""line_items"":[" + "\n" +
@" {" + "\n" +
@" ""proxy_type"":""Rotating-Proxies""," + "\n" +
@" ""region"":""{PROXY_REGION}""," + "\n" +
@" ""subscription"":""{PROXY_SUBSCRIPTION}""," + "\n" +
@" ""package"":""{PROXY_PACKAGE}""" + "\n" +
@" }" + "\n" +
@" ]" + "\n" +
@"}" + "\n" +
@"";
request.AddParameter("application/json", body, ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import requests
import json
url = "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}"
payload = json.dumps({
"set_paid": False,
"billing": {
"first_name": "John",
"last_name": "Doe",
"address_1": "969 Market",
"address_2": "",
"city": "San Francisco",
"state": "CA",
"postcode": "94103",
"country": "US",
"email": "[email protected]",
"phone": "(555) 555-5555"
},
"shipping": {
"first_name": "John",
"last_name": "Doe",
"address_1": "969 Market",
"address_2": "",
"city": "San Francisco",
"state": "CA",
"postcode": "94103",
"country": "US"
},
"line_items": [
{
"proxy_type": "Rotating-Proxies",
"region": "{PROXY_REGION}",
"subscription": "{PROXY_SUBSCRIPTION}",
"package": "{PROXY_PACKAGE}"
}
]
})
headers = {
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{\n \"set_paid\":false,\n \"billing\":{\n \"first_name\":\"John\",\n \"last_name\":\"Doe\",\n \"address_1\":\"969 Market\",\n \"address_2\":\"\",\n \"city\":\"San Francisco\",\n \"state\":\"CA\",\n \"postcode\":\"94103\",\n \"country\":\"US\",\n \"email\":\"[email protected]\",\n \"phone\":\"(555) 555-5555\"\n },\n \"shipping\":{\n \"first_name\":\"adam\",\n \"last_name\":\"smith\",\n \"address_1\":\"969 Market\",\n \"address_2\":\"\",\n \"city\":\"San Francisco\",\n \"state\":\"CA\",\n \"postcode\":\"94103\",\n \"country\":\"US\"\n },\n \"line_items\":[\n {\n \"proxy_type\":\"Rotating-Proxies\",\n \"region\":\"{PROXY_REGION}\",\n \"subscription\":\"{PROXY_SUBSCRIPTION}\",\n \"package\":\"{PROXY_PACKAGE}\"\n }\n ]\n}\n",
CURLOPT_HTTPHEADER => array(
"Content-Type: application/json",
"cache-control: no-cache"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
For first time order via credits
curl --location -g --request POST 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}' \
--header 'Content-Type: application/json' \
--data-raw '{
"set_paid":false,
"billing":{
"first_name":"John",
"last_name":"Doe",
"address_1":"969 Market",
"address_2":"",
"city":"San Francisco",
"state":"CA",
"postcode":"94103",
"country":"US",
"email":"[email protected]",
"phone":"(555) 555-5555"
},
"shipping":{
"first_name":"John",
"last_name":"Doe",
"address_1":"969 Market",
"address_2":"",
"city":"San Francisco",
"state":"CA",
"postcode":"94103",
"country":"US"
},
"line_items":[
{
"proxy_type":"Rotating-Proxies",
"region":"{PROXY_REGION}",
"subscription":"{PROXY_SUBSCRIPTION}",
"package":"{PROXY_PACKAGE}",
"pay_by":"credits"
}
]
}
'
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
'headers': {
'Content-Type': 'application/json'
},
body: JSON.stringify({
"set_paid": false,
"billing": {
"first_name": "John",
"last_name": "Doe",
"address_1": "969 Market",
"address_2": "",
"city": "San Francisco",
"state": "CA",
"postcode": "94103",
"country": "US",
"email": "[email protected]",
"phone": "(555) 555-5555"
},
"shipping": {
"first_name": "John",
"last_name": "Doe",
"address_1": "969 Market",
"address_2": "",
"city": "San Francisco",
"state": "CA",
"postcode": "94103",
"country": "US"
},
"line_items": [
{
"proxy_type": "Rotating-Proxies",
"region": "{PROXY_REGION}",
"subscription": "{PROXY_SUBSCRIPTION}",
"package": "{PROXY_PACKAGE}",
"pay_by": "credits",
}
]
})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"set_paid\":false,\n \"billing\":{\n \"first_name\":\"John\",\n \"last_name\":\"Doe\",\n \"address_1\":\"969 Market\",\n \"address_2\":\"\",\n \"city\":\"San Francisco\",\n \"state\":\"CA\",\n \"postcode\":\"94103\",\n \"country\":\"US\",\n \"email\":\"[email protected]\",\n \"phone\":\"(555) 555-5555\"\n },\n \"shipping\":{\n \"first_name\":\"adam\",\n \"last_name\":\"smith\",\n \"address_1\":\"969 Market\",\n \"address_2\":\"\",\n \"city\":\"San Francisco\",\n \"state\":\"CA\",\n \"postcode\":\"94103\",\n \"country\":\"US\"\n },\n \"line_items\":[\n {\n \"proxy_type\":\"Rotating-Proxies\",\n \"region\":\"{PROXY_REGION}\",\n \"subscription\":\"{PROXY_SUBSCRIPTION}\",\n \"package\":\"{PROXY_PACKAGE},\"\n \"pay_by\":\"credits\"\n }\n ]\n}\n");
Request request = new Request.Builder()
.url("")
.post(body)
.addHeader("Content-Type", "application/json")
.addHeader("cache-control", "no-cache")
.build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{" + "\n" +
@" ""set_paid"":false," + "\n" +
@" ""billing"":{" + "\n" +
@" ""first_name"":""John""," + "\n" +
@" ""last_name"":""Doe""," + "\n" +
@" ""address_1"":""969 Market""," + "\n" +
@" ""address_2"":""""," + "\n" +
@" ""city"":""San Francisco""," + "\n" +
@" ""state"":""CA""," + "\n" +
@" ""postcode"":""94103""," + "\n" +
@" ""country"":""US""," + "\n" +
@" ""email"":""[email protected]""," + "\n" +
@" ""phone"":""(555) 555-5555""" + "\n" +
@" }," + "\n" +
@" ""shipping"":{" + "\n" +
@" ""first_name"":""John""," + "\n" +
@" ""last_name"":""Doe""," + "\n" +
@" ""address_1"":""969 Market""," + "\n" +
@" ""address_2"":""""," + "\n" +
@" ""city"":""San Francisco""," + "\n" +
@" ""state"":""CA""," + "\n" +
@" ""postcode"":""94103""," + "\n" +
@" ""country"":""US""" + "\n" +
@" }," + "\n" +
@" ""line_items"":[" + "\n" +
@" {" + "\n" +
@" ""proxy_type"":""Rotating-Proxies""," + "\n" +
@" ""region"":""{PROXY_REGION}""," + "\n" +
@" ""subscription"":""{PROXY_SUBSCRIPTION}""," + "\n" +
@" ""package"":""{PROXY_PACKAGE}""," + "\n" +
@" ""pay_by"":""credits""" + "\n" +
@" }" + "\n" +
@" ]" + "\n" +
@"}" + "\n" +
@"";
request.AddParameter("application/json", body, ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import requests
import json
url = "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}"
payload = json.dumps({
"set_paid": False,
"billing": {
"first_name": "John",
"last_name": "Doe",
"address_1": "969 Market",
"address_2": "",
"city": "San Francisco",
"state": "CA",
"postcode": "94103",
"country": "US",
"email": "[email protected]",
"phone": "(555) 555-5555"
},
"shipping": {
"first_name": "John",
"last_name": "Doe",
"address_1": "969 Market",
"address_2": "",
"city": "San Francisco",
"state": "CA",
"postcode": "94103",
"country": "US"
},
"line_items": [
{
"proxy_type": "Rotating-Proxies",
"region": "{PROXY_REGION}",
"subscription": "{PROXY_SUBSCRIPTION}",
"package": "{PROXY_PACKAGE}",
"pay_by": "credits"
}
]
})
headers = {
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{\n \"set_paid\":false,\n \"billing\":{\n \"first_name\":\"John\",\n \"last_name\":\"Doe\",\n \"address_1\":\"969 Market\",\n \"address_2\":\"\",\n \"city\":\"San Francisco\",\n \"state\":\"CA\",\n \"postcode\":\"94103\",\n \"country\":\"US\",\n \"email\":\"[email protected]\",\n \"phone\":\"(555) 555-5555\"\n },\n \"shipping\":{\n \"first_name\":\"adam\",\n \"last_name\":\"smith\",\n \"address_1\":\"969 Market\",\n \"address_2\":\"\",\n \"city\":\"San Francisco\",\n \"state\":\"CA\",\n \"postcode\":\"94103\",\n \"country\":\"US\"\n },\n \"line_items\":[\n {\n \"proxy_type\":\"Rotating-Proxies\",\n \"region\":\"{PROXY_REGION}\",\n \"subscription\":\"{PROXY_SUBSCRIPTION}\",\n \"package\":\"{PROXY_PACKAGE},\"\n \"pay_by\":\"credits\"\n }\n ]\n}\n",
CURLOPT_HTTPHEADER => array(
"Content-Type: application/json",
"cache-control: no-cache"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
For next time ordering, You can skip the billing and shipping parts
curl --location -g --request POST 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}' \
--header 'Content-Type: application/json' \
--data-raw '{
"set_paid":false,
"line_items":[
{
"proxy_type":"Rotating-Proxies",
"region":"{PROXY_REGION}",
"subscription":"{PROXY_SUBSCRIPTION}",
"package":"{PROXY_PACKAGE}"
}
]
}
'
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
'headers': {
'Content-Type': 'application/json'
},
body: JSON.stringify({
"set_paid": false,
"line_items": [
{
"proxy_type": "Rotating-Proxies",
"region": "{PROXY_REGION}",
"subscription": "{PROXY_SUBSCRIPTION}",
"package": "{PROXY_PACKAGE}"
}
]
})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"set_paid\":false,\n \n \"line_items\":[\n {\n \"proxy_type\":\"Rotating-Proxies\",\n \"region\":\"{PROXY_REGION}\",\n \"subscription\":\"{PROXY_SUBSCRIPTION}\",\n \"package\":\"{PROXY_PACKAGE}\"\n }\n ]\n}\n");
Request request = new Request.Builder()
.url("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}")
.post(body)
.addHeader("Content-Type", "application/json")
.addHeader("cache-control", "no-cache")
.build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{" + "\n" +
@" ""set_paid"":false," + "\n" +
@" ""line_items"":[" + "\n" +
@" {" + "\n" +
@" ""proxy_type"":""Rotating-Proxies""," + "\n" +
@" ""region"":""{PROXY_REGION}""," + "\n" +
@" ""subscription"":""{PROXY_SUBSCRIPTION}""," + "\n" +
@" ""package"":""{PROXY_PACKAGE}""" + "\n" +
@" }" + "\n" +
@" ]" + "\n" +
@"}" + "\n" +
@"";
request.AddParameter("application/json", body, ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import requests
import json
url = "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}"
payload = json.dumps({
"set_paid": False,
"line_items": [
{
"proxy_type": "Rotating-Proxies",
"region": "{PROXY_REGION}",
"subscription": "{PROXY_SUBSCRIPTION}",
"package": "{PROXY_PACKAGE}"
}
]
})
headers = {
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{\n \"set_paid\":false,\n \n \"line_items\":[\n {\n \"proxy_type\":\"Rotating-Proxies\",\n \"region\":\"{PROXY_REGION}\",\n \"subscription\":\"{PROXY_SUBSCRIPTION}\",\n \"package\":\"{PROXY_PACKAGE}\"\n }\n ]\n}\n",
CURLOPT_HTTPHEADER => array(
"Content-Type: application/json",
"cache-control: no-cache"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
For next time ordering via credits, You can skip the billing and shipping parts
curl --location -g --request POST 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}' \
--header 'Content-Type: application/json' \
--data-raw '{
"set_paid":false,
"line_items":[
{
"proxy_type":"Rotating-Proxies",
"region":"{PROXY_REGION}",
"subscription":"{PROXY_SUBSCRIPTION}",
"package":"{PROXY_PACKAGE}",
"pay_by":"credits"
}
]
}
'
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
'headers': {
'Content-Type': 'application/json'
},
body: JSON.stringify({
"set_paid": false,
"line_items": [
{
"proxy_type": "Rotating-Proxies",
"region": "{PROXY_REGION}",
"subscription": "{PROXY_SUBSCRIPTION}",
"package": "{PROXY_PACKAGE}",
"pay_by": "credits",
}
]
})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"set_paid\":false,\n \n \"line_items\":[\n {\n \"proxy_type\":\"Rotating-Proxies\",\n \"region\":\"{PROXY_REGION}\",\n \"subscription\":\"{PROXY_SUBSCRIPTION}\",\n \"package\":\"{PROXY_PACKAGE},\"\n \"pay_by\":\"credits\"\n }\n ]\n}\n");
Request request = new Request.Builder()
.url("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}")
.post(body)
.addHeader("Content-Type", "application/json")
.addHeader("cache-control", "no-cache")
.build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{" + "\n" +
@" ""set_paid"":false," + "\n" +
@" ""line_items"":[" + "\n" +
@" {" + "\n" +
@" ""proxy_type"":""Rotating-Proxies""," + "\n" +
@" ""region"":""{PROXY_REGION}""," + "\n" +
@" ""subscription"":""{PROXY_SUBSCRIPTION}""," + "\n" +
@" ""package"":""{PROXY_PACKAGE}""," + "\n" +
@" ""pay_by"":""credits""" + "\n" +
@" }" + "\n" +
@" ]" + "\n" +
@"}" + "\n" +
@"";
request.AddParameter("application/json", body, ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import requests
import json
url = "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}"
payload = json.dumps({
"set_paid": False,
"line_items": [
{
"proxy_type": "Rotating-Proxies",
"region": "{PROXY_REGION}",
"subscription": "{PROXY_SUBSCRIPTION}",
"package": "{PROXY_PACKAGE}",
"pay_by": "credits"
}
]
})
headers = {
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{\n \"set_paid\":false,\n \n \"line_items\":[\n {\n \"proxy_type\":\"Rotating-Proxies\",\n \"region\":\"{PROXY_REGION}\",\n \"subscription\":\"{PROXY_SUBSCRIPTION}\",\n \"package\":\"{PROXY_PACKAGE},\"\n \"pay_by\":\"credits\"\n }\n ]\n}\n",
CURLOPT_HTTPHEADER => array(
"Content-Type: application/json",
"cache-control: no-cache"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
If you want to use coupon for discount
curl --location -g --request POST 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}' \
--header 'Content-Type: application/json' \
--data-raw '{
"set_paid":false,
"coupon": "COUPON_CODE_HERE",
"line_items":[
{
"proxy_type":"Rotating-Proxies",
"region":"{PROXY_REGION}",
"subscription":"{PROXY_SUBSCRIPTION}",
"package":"{PROXY_PACKAGE}"
}
]
}
'
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
'headers': {
'Content-Type': 'application/json'
},
body: JSON.stringify({
"set_paid": false,
"coupon": "COUPON_CODE_HERE",
"line_items": [
{
"proxy_type": "Rotating-Proxies",
"region": "{PROXY_REGION}",
"subscription": "{PROXY_SUBSCRIPTION}",
"package": "{PROXY_PACKAGE}"
}
]
})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"set_paid\":false,\n \"coupon\": \"COUPON_CODE_HERE\",\n \n \"line_items\":[\n {\n \"proxy_type\":\"Rotating-Proxies\",\n \"region\":\"{PROXY_REGION}\",\n \"subscription\":\"{PROXY_SUBSCRIPTION}\",\n \"package\":\"{PROXY_PACKAGE}\"\n }\n ]\n}\n");
Request request = new Request.Builder()
.url("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}")
.post(body)
.addHeader("Content-Type", "application/json")
.addHeader("cache-control", "no-cache")
.build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{" + "\n" +
@" ""set_paid"":false," + "\n" +
@" ""coupon"": ""COUPON_CODE_HERE""," + "\n" +
@" ""line_items"":[" + "\n" +
@" {" + "\n" +
@" ""proxy_type"":""Rotating-Proxies""," + "\n" +
@" ""region"":""{PROXY_REGION}""," + "\n" +
@" ""subscription"":""{PROXY_SUBSCRIPTION}""," + "\n" +
@" ""package"":""{PROXY_PACKAGE}""" + "\n" +
@" }" + "\n" +
@" ]" + "\n" +
@"}" + "\n" +
@"";
request.AddParameter("application/json", body, ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import requests
import json
url = "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}"
payload = json.dumps({
"set_paid": False,
"coupon": "COUPON_CODE_HERE",
"line_items": [
{
"proxy_type": "Rotating-Proxies",
"region": "{PROXY_REGION}",
"subscription": "{PROXY_SUBSCRIPTION}",
"package": "{PROXY_PACKAGE}"
}
]
})
headers = {
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{\n \"set_paid\":false,\n \"coupon\": \"COUPON_CODE_HERE\",\n \n \"line_items\":[\n {\n \"proxy_type\":\"Rotating-Proxies\",\n \"region\":\"{PROXY_REGION}\",\n \"subscription\":\"{PROXY_SUBSCRIPTION}\",\n \"package\":\"{PROXY_PACKAGE}\"\n }\n ]\n}\n",
CURLOPT_HTTPHEADER => array(
"Content-Type: application/json",
"cache-control: no-cache"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
If you want to use coupon for discount via credits
curl --location -g --request POST 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}' \
--header 'Content-Type: application/json' \
--data-raw '{
"set_paid":false,
"coupon": "COUPON_CODE_HERE",
"line_items":[
{
"proxy_type":"Rotating-Proxies",
"region":"{PROXY_REGION}",
"subscription":"{PROXY_SUBSCRIPTION}",
"package":"{PROXY_PACKAGE}",
"pay_by":"credits"
}
]
}
'
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
'headers': {
'Content-Type': 'application/json'
},
body: JSON.stringify({
"set_paid": false,
"coupon": "COUPON_CODE_HERE",
"line_items": [
{
"proxy_type": "Rotating-Proxies",
"region": "{PROXY_REGION}",
"subscription": "{PROXY_SUBSCRIPTION}",
"package": "{PROXY_PACKAGE}",
"pay_by": "credits"
}
]
})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"set_paid\":false,\n \"coupon\": \"COUPON_CODE_HERE\",\n \n \"line_items\":[\n {\n \"proxy_type\":\"Rotating-Proxies\",\n \"region\":\"{PROXY_REGION}\",\n \"subscription\":\"{PROXY_SUBSCRIPTION}\",\n \"package\":\"{PROXY_PACKAGE},\"\n \"pay_by\":\"credits\"\n }\n ]\n}\n");
Request request = new Request.Builder()
.url("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}")
.post(body)
.addHeader("Content-Type", "application/json")
.addHeader("cache-control", "no-cache")
.build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{" + "\n" +
@" ""set_paid"":false," + "\n" +
@" ""coupon"": ""COUPON_CODE_HERE""," + "\n" +
@" ""line_items"":[" + "\n" +
@" {" + "\n" +
@" ""proxy_type"":""Rotating-Proxies""," + "\n" +
@" ""region"":""{PROXY_REGION}""," + "\n" +
@" ""subscription"":""{PROXY_SUBSCRIPTION}""," + "\n" +
@" ""package"":""{PROXY_PACKAGE}""," + "\n" +
@" ""pay_by"":""credits""" + "\n" +
@" }" + "\n" +
@" ]" + "\n" +
@"}" + "\n" +
@"";
request.AddParameter("application/json", body, ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import requests
import json
url = "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}"
payload = json.dumps({
"set_paid": False,
"coupon": "COUPON_CODE_HERE",
"line_items": [
{
"proxy_type": "Rotating-Proxies",
"region": "{PROXY_REGION}",
"subscription": "{PROXY_SUBSCRIPTION}",
"package": "{PROXY_PACKAGE}",
"pay_by": "credits"
}
]
})
headers = {
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-new-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{\n \"set_paid\":false,\n \"coupon\": \"COUPON_CODE_HERE\",\n \n \"line_items\":[\n {\n \"proxy_type\":\"Rotating-Proxies\",\n \"region\":\"{PROXY_REGION}\",\n \"subscription\":\"{PROXY_SUBSCRIPTION}\",\n \"package\":\"{PROXY_PACKAGE},\"\n \"pay_by\":\"credits\"\n }\n ]\n}\n",
CURLOPT_HTTPHEADER => array(
"Content-Type: application/json",
"cache-control: no-cache"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
To get a list of your random proxies you need to make a GET call to the following endpoint.
API endpoint: GET /wp-json/lmfwc/v2/licenses/customer/user-licenses-random
curl --location --request GET 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-licenses-random/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}&proxy_format={HOST:PORT@USERNAME:PASSWORD}' \
--header 'Content-Type: application/json'
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-licenses-random/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}&proxy_format={HOST:PORT@USERNAME:PASSWORD}',
'headers': {
'Content-Type': 'application/json'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
OkHttpClient client = new OkHttpClient().newBuilder().build();
Request request = new Request.Builder()
.url("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-licenses-random/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}&proxy_format={HOST:PORT@USERNAME:PASSWORD}")
.method("GET", null)
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-licenses-random/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}&proxy_format={HOST:PORT@USERNAME:PASSWORD}");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import requests
url = "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-licenses-random/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}&proxy_format={HOST:PORT@USERNAME:PASSWORD}"
payload={}
headers = {
'Content-Type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-licenses-random/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}&proxy_format={HOST:PORT@USERNAME:PASSWORD}',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
To get a list of your proxies by random region you need to make a GET call to the following endpoint.
API endpoint: GET /wp-json/lmfwc/v2/licenses/customer/user-licenses-random-region
curl --location --request GET 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-licenses-random-region/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}®ion={REGION_NAME}&proxy_format={HOST:PORT@USERNAME:PASSWORD}' \
--header 'Content-Type: application/json'
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-licenses-random-region/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}®ion={REGION_NAME}&proxy_format={HOST:PORT@USERNAME:PASSWORD}',
'headers': {
'Content-Type': 'application/json'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
OkHttpClient client = new OkHttpClient().newBuilder().build();
Request request = new Request.Builder()
.url("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-licenses-random-region/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}®ion={REGION_NAME}&proxy_format={HOST:PORT@USERNAME:PASSWORD}")
.method("GET", null)
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-licenses-random-region/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}®ion={REGION_NAME}&proxy_format={HOST:PORT@USERNAME:PASSWORD}");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import requests
url = "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-licenses-random-region/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}®ion={REGION_NAME}&proxy_format={HOST:PORT@USERNAME:PASSWORD}"
payload={}
headers = {
'Content-Type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-licenses-random-region/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}®ion={REGION_NAME}&proxy_format={HOST:PORT@USERNAME:PASSWORD}',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
To activate the subscription for a proxy you need to make a GET call to the following endpoint:
API endpoint: GET /wp-json/lmfwc/v2/licenses/activate-subscription/{BASE64_ENCODED_LICENSE_STRING}
curl --location --request GET 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/activate-subscription/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}' \
--header 'Content-Type: application/json'
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/activate-subscription/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
'headers': {
'Content-Type': 'application/json'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
OkHttpClient client = new OkHttpClient().newBuilder().build();
Request request = new Request.Builder()
.url("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/activate-subscription/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}")
.method("GET", null)
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/activate-subscription/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import requests
url = "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/activate-subscription/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}"
payload={}
headers = {
'Content-Type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/activate-subscription/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
To change region for a proxy you need to make a POST call to the following endpoint:
API endpoint: POST /wp-json/lmfwc/v2/licenses/change-region/{BASE64_ENCODED_LICENSE_STRING}
curl --location --request POST 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/change-region/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}' \
--header 'Content-Type: application/json' \
--data-raw '{
"new_region": london1}'
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/change-region/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
'headers': {
'Content-Type': 'application/json'
},
body: JSON.stringify({"new_region":})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
OkHttpClient client = new OkHttpClient().newBuilder().build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\r\n \"new_region\": london1\r\n}");
Request request = new Request.Builder()
.url("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/change-region/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}")
.method("POST", body)
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/change-region/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\r\n \"new_region\": london1\r\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import requests
url = "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/change-region/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}"
payload="{\r\n \"new_region\": london1\r\n}"
headers = {
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/change-region/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"new_region": london1 }',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Powered by - Wemake