Documentation ¶
Index ¶
- type BalanceResponse
- type ChangeTypeResponse
- type CountriesResponse
- type Country
- type Default
- type GetFree
- type GetNumbers
- func (c *GetNumbers) Close(tzid int) (error, bool)
- func (c *GetNumbers) Get(service string, country int) (error, int)
- func (c *GetNumbers) Next(tzid int) (error, bool)
- func (c *GetNumbers) Price(country int, service string) (error, int)
- func (c *GetNumbers) Service() (error, []string)
- func (c *GetNumbers) ServiceNumber(service string) (error, []string)
- func (c *GetNumbers) State(message_to_code int, orderby Order) (error, StateResponse)
- func (c *GetNumbers) StateOne(tzid int, message_to_code int) (error, State)
- func (c *GetNumbers) Tariffs() (error, map[string]TariffsResponse)
- func (c *GetNumbers) TariffsOne(country int) (error, TariffsResponse)
- type GetProxy
- func (c *GetProxy) ChangeIp(tzid int) (error, bool)
- func (c *GetProxy) ChangeType(tzid int) (error, string)
- func (c *GetProxy) GetDays(proxy_type string) (error, Proxy)
- func (c *GetProxy) GetTraffic(traffic string) (error, Proxy)
- func (c *GetProxy) SetComment(tzid int, comment string) (error, bool)
- func (c *GetProxy) State(orderby string) (error, []Proxy)
- func (c *GetProxy) StateOne(tzid int) (error, Proxy)
- type GetRent
- func (c *GetRent) Close(tzid int) (error, bool)
- func (c *GetRent) Extend(tzid int, days int) (error, Rent)
- func (c *GetRent) Get(country int, days int, extension bool) (error, Rent)
- func (c *GetRent) PortReload(tzid int) (error, bool)
- func (c *GetRent) State() (error, []Rent)
- func (c *GetRent) StateOne(tzid int) (error, Rent)
- func (c *GetRent) Tariffs() (error, map[string]TariffsRent)
- func (c *GetRent) TariffsOne(country int) (error, TariffsRent)
- type GetRentResponse
- type GetResponse
- type GetUser
- type HTTPClientError
- type Message
- type MessagesResponse
- type Number
- type NumbersResponse
- type Onlinesim
- type Order
- type PriceResponse
- type Profile
- type ProfileResponse
- type Proxy
- type ProxyResponse
- type ProxyStateResponse
- type Rent
- type Service
- type ServiceNumberResponse
- type ServiceResponse
- type State
- type StateRentResponse
- type StateResponse
- type TariffsRent
- type TariffsResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BalanceResponse ¶
type ChangeTypeResponse ¶
type ChangeTypeResponse struct { Response interface{} `json:"response"` ConnectType string `json:"connect_type"` }
type CountriesResponse ¶
type CountriesResponse struct { Response interface{} `json:"response"` Countries []Country `json:"countries"` }
type GetNumbers ¶
type GetNumbers struct {
// contains filtered or unexported fields
}
func (*GetNumbers) Service ¶
func (c *GetNumbers) Service() (error, []string)
func (*GetNumbers) ServiceNumber ¶
func (c *GetNumbers) ServiceNumber(service string) (error, []string)
func (*GetNumbers) State ¶
func (c *GetNumbers) State(message_to_code int, orderby Order) (error, StateResponse)
func (*GetNumbers) StateOne ¶
func (c *GetNumbers) StateOne(tzid int, message_to_code int) (error, State)
func (*GetNumbers) Tariffs ¶
func (c *GetNumbers) Tariffs() (error, map[string]TariffsResponse)
func (*GetNumbers) TariffsOne ¶
func (c *GetNumbers) TariffsOne(country int) (error, TariffsResponse)
type GetRent ¶
type GetRent struct {
// contains filtered or unexported fields
}
func (*GetRent) TariffsOne ¶
func (c *GetRent) TariffsOne(country int) (error, TariffsRent)
type GetRentResponse ¶
type GetRentResponse struct { Response interface{} `json:"response"` Item Rent `json:"item"` }
type GetResponse ¶
type GetResponse struct { Response interface{} `json:"response"` Tzid int `json:"tzid"` }
type GetUser ¶
type GetUser struct {
// contains filtered or unexported fields
}
func (*GetUser) Balance ¶
func (c *GetUser) Balance() (error, BalanceResponse)
type HTTPClientError ¶
func (*HTTPClientError) Error ¶
func (e *HTTPClientError) Error() string
type MessagesResponse ¶
type MessagesResponse struct { Response interface{} `json:"response"` Numbers []Message `json:"numbers"` }
type NumbersResponse ¶
type NumbersResponse struct { Response interface{} `json:"response"` Numbers []Number `json:"numbers"` }
type Onlinesim ¶
type Onlinesim struct {
// contains filtered or unexported fields
}
func (*Onlinesim) Numbers ¶
func (c *Onlinesim) Numbers() *GetNumbers
func (*Onlinesim) SetRateLimit ¶
SetRateLimit rate limit setter for custom usage Onlinesim limit is 5 requests per second (we use 2)
type PriceResponse ¶
type PriceResponse struct { Response interface{} `json:"response"` Price int `json:"price"` }
type Profile ¶
type Profile struct { ID int `json:"id"` Name string `json:"name"` Username string `json:"username"` Email string `json:"email"` Apikey string `json:"apikey"` APIAccess bool `json:"api_access"` Locale string `json:"locale"` NumberRegion interface{} `json:"number_region"` NumberCountry string `json:"number_country"` NumberReject interface{} `json:"number_reject"` CreatedAt string `json:"created_at"` Payment struct { Payment float64 `json:"payment"` Spent int `json:"spent"` Now int `json:"now"` Income float64 `json:"income"` SmsCount int `json:"sms_count"` } `json:"payment"` }
type ProfileResponse ¶
type ProfileResponse struct { Response interface{} `json:"response"` Profile Profile `json:"profile"` }
type Proxy ¶
type Proxy struct { Type string `json:"type"` ConnectType string `json:"connect_type"` Host string `json:"host"` Port int `json:"port"` User string `json:"user"` Pass string `json:"pass"` Operator string `json:"operator"` Rent interface{} `json:"rent"` GeneralTraffic int `json:"general_traffic"` Traffic int `json:"traffic"` Country string `json:"country"` City string `json:"city"` Session bool `json:"session"` PortCount int `json:"port_count"` Rotate interface{} `json:"rotate"` StopAt string `json:"stop_at"` UpdatedAt string `json:"updated_at"` CreatedAt string `json:"created_at"` Tzid int `json:"tzid"` Time int `json:"time"` Days int `json:"days"` Hours int `json:"hours"` ChangeIP bool `json:"change_ip"` ChangeType bool `json:"change_type"` }
type ProxyResponse ¶
type ProxyResponse struct { Response interface{} `json:"response"` Item Proxy `json:"item"` }
type ProxyStateResponse ¶
type ProxyStateResponse struct { Response interface{} `json:"response"` List []Proxy `json:"list"` }
type Rent ¶
type Rent struct { Status int `json:"status"` Extension int `json:"extension"` Messages []struct { ID int `json:"id"` Service string `json:"service"` Text string `json:"text"` Code string `json:"code"` CreatedAt string `json:"created_at"` } `json:"messages"` Sum string `json:"sum"` Country int `json:"country"` Number string `json:"number"` Rent int `json:"rent"` Tzid int `json:"tzid"` Time int `json:"time"` Days int `json:"days"` Hours int `json:"hours"` Extend []interface{} `json:"extend"` Checked bool `json:"checked"` Reload int `json:"reload"` DayExtend int `json:"day_extend"` }
type ServiceNumberResponse ¶
type ServiceNumberResponse struct { Number []string `json:"number"` Response interface{} `json:"response"` }
type ServiceResponse ¶
type ServiceResponse struct { Service []string `json:"service"` Response interface{} `json:"response"` }
type State ¶
type State struct { Tzid int `json:"tzid"` Form string `json:"form"` Time int `json:"time"` Number string `json:"number"` Msg []struct { Service string `json:"service"` Msg string `json:"msg"` } `json:"msg,omitempty"` Service string `json:"service"` Country int `json:"country"` Response interface{} `json:"response"` Sum int `json:"sum,omitempty"` }
type StateRentResponse ¶
type StateRentResponse struct { Response interface{} `json:"response"` List []Rent `json:"list"` }
type StateResponse ¶
type StateResponse []State
type TariffsRent ¶
Click to show internal directories.
Click to hide internal directories.