Skip to content

GetProxy

Pavel Kuzmin edited this page Feb 6, 2023 · 6 revisions

[<< go back]

Diagram

Diagram

from onlinesimru import UserService

client = UserService('YOUR_TOKEN')
proxy = client.proxy()

Example

from onlinesimru import UserService


def main():
    client = UserService('YOUR_TOKEN')
    proxy = client.proxy()
    get = proxy.get()
    print(get)

    state = proxy.state()
    print(state)
    # or 
    state = proxy.stateOne(tzid)
    print(state)

main()

Get new proxy

Params Default Description
$class days days or traffic
$type private proxy type for days
$connect https connection type for days
$count 1 days count
$operator any operator code
$country 7 country
$city any city
$port_count 1 port count for muliport
$session true session for traffic

state [docs ru] [docs en]

Get proxy list

Params Default Description
$orderby no ASC or DESC

stateOne [docs ru] [docs en]

Get selected proxy

Params Default Description
$tzid no operation tzid

changeIp [docs ru] [docs en]

Change proxy ip

Params Default Description
$tzid no operation tzid

changeType [docs ru] [docs en]

Change proxy type

Params Default Description
$tzid no operation tzid

setComment [docs ru] [docs en]

Add comment to proxy

Params Default Description
$tzid no operation tzid
$comment no comment for proxy^ empty string for delete