Sha256: 4ba4d9ad9f26fd822704063e2f87612de84843d9ff3833f6795eab692124a9e3
Contents?: true
Size: 1.05 KB
Versions: 3
Compression:
Stored size: 1.05 KB
Contents
require 'onlinesim/Base' module OnlineSim class GetProxy < Base def get(cl:'days', type:'private', connect:'https', count: 1, operator:nil, country: 7, city: 'any', port_count: 1, session:true ) return self ._get(:endpoint => '/proxy/getProxy', :params => {class: cl,type:type,connect:connect,count:count,operator:operator,country:country,city:city,port_count:port_count,session:session})['item'] end def state(orderby: "ASC") return self ._get(:endpoint => '/proxy/getState', :params => {orderby: orderby})['list'] end def stateone(tzid) return self ._get(:endpoint => '/proxy/getState', :params => {tzid: tzid})['list'][0] end def changeip(tzid) return self ._get(:endpoint => '/proxy/changeIp', :params => {tzid: tzid}) end def changetype(tzid) return self ._get(:endpoint => '/proxy/changeType', :params => {tzid: tzid})['connect_type'] end def setcomment(tzid, comment: '') return self ._get(:endpoint => '/proxy/setComment', :params => {tzid: tzid,comment:comment}) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
onlinesim-1.0.8 | lib/onlinesim/GetProxy.rb |
onlinesim-1.0.7 | lib/onlinesim/GetProxy.rb |
onlinesim-1.0.6 | lib/onlinesim/GetProxy.rb |