API: create_group
Main:
- my_balance
- add_service
- update_service
- get_available_locations
- get_service_info
- suspend_service
- unsuspend_service
- terminate_service
- get_account_services
- prolong_service
- del_ips_from_service
- add_typecancel
- terminate_typecancel
- applycredit
- get_ips_access_list
- update_ips_access_list
- change_service_pass
- add_hosts_to_block
- del_hosts_from_block
- get_hosts_blocked_info
Work with groups:
create_group
Discription: Create a group of proxies (IP addresses). You can create separate proxy groups from your pool of IP addresses. This group will be assigned a separate login and password. You can also add separate access for a group without a password with authorization at the IP address(look set_ips_auth_for_group). If the IP address is already added to a certain group, but you add it to another group, then this IP address will be associated with the last added group, and will be removed from the old group.
| Parameter | Type | Description | Required |
|---|---|---|---|
| action | string | create_group | required |
| hash | string | Your API hash | required |
| userid | int | Your customer ID | required |
| ips_count | numeric | Specify the required number of proxies. This parameter has a higher priority than ips_list. When specifying this parameter, the parameter ips_list will be ignored | required |
| ips_list | string | A comma-separated list of IP addresses that will need to be assigned to a group. | required |
| group_name | string | It will be login for proxy group. The group_name must be more than 5 characters long. It should also start with a character, not a number. And contain only Latin letters and numbers. If you don't specify a group_name, it will be randomly generated. | Not required |
Example Request (CURL)
$postfields = array(
"userid"=>$userid,
"hash"=>$hash,
"action"=>"create_group",
"ips_list"=>"127.0.0.1,127.0.0.10,127.4.0.1",
"group_name"=>"proxylogin1",
);
$result = connect_api_proxy007com($postfields);
function connect_api_proxy007com($postfields)
{
$url = "https://proxy007.com/proxy/api/index.php";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 900);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields);
$data = curl_exec($ch);
curl_close($ch);
return $data;
}
Answer:
{"code":"2001","status":"successful",
"login":"proxylogin1",
"group":"proxylogin1",
"password":"GHF64fg8Sdvn",
"socks5_port":30000,
"http_port":20000,
"ips_list":"127.0.0.1,127.0.0.10,127.4.0.1"}