-
Notifications
You must be signed in to change notification settings - Fork 0
GetProxy
s00d edited this page Nov 2, 2021
·
2 revisions

import ru.onlinesim.OnlineSimApi;
import ru.onlinesim.apis.GetProxy;
public class Run {
public static void main(String[] args) {
OnlineSimApi loader = new OnlineSimApi('apikey', 'dev_id', 'locale');
GetProxy proxy = loader.proxy();
}
}import ru.onlinesim.OnlineSimApi;
import ru.onlinesim.response.get_proxy.Proxy;
import ru.onlinesim.response.get_proxy.Tariff;
import ru.onlinesim.apis.GetProxy;
public class Run {
public static void main(String[] args) {
OnlineSimApi loader = new OnlineSimApi('apikey', 'dev_id', 'locale');
GetProxy proxy = loader.proxy();
Tariff tariffs = proxy.tariffs();
System.out.println(tariffs.toString());
Proxy myProxy = proxy.getTraffic("100MB");
System.out.println(myProxy.toString());
Proxy myProxyDay = proxy.getDays(7);
System.out.println(myProxyDay.toString());
HashMap<java.lang.Number, Proxy> list = proxy.state();
System.out.println(list.toString());
}
}Get new proxy
| Params | Default | Description |
|---|---|---|
| days | no | days count |
| type | no | proxy type 'shared','sharednowait','private','privatenowait','multiport' |
| connect | no | connection type 'https','socks' |
| operator | no | operator code |
| country | no | country |
| city | no | city |
| port_count | 1 | port count for muliport |
Get new proxy
| Params | Default | Description |
|---|---|---|
| traffic | no | traffic 100MB, 1GB |
| operator | no | operator code |
| country | no | country |
| city | no | city |
| session | no | session for traffic |
Get proxy list
| Params | Default | Description |
|---|---|---|
| orderby | no | ASC or DESC |
Get selected proxy
| Params | Default | Description |
|---|---|---|
| tzid | no | operation tzid |
Change proxy ip
| Params | Default | Description |
|---|---|---|
| tzid | no | operation tzid |
Change proxy type
| Params | Default | Description |
|---|---|---|
| tzid | no | operation tzid |
Add comment to proxy
| Params | Default | Description |
|---|---|---|
| tzid | no | operation tzid |
| comment | no | comment for proxy, empty string for delete |
© 2013 - 2021. OnlineSim LLC