unofficial golang api for proxybonanza.com

ProxyGonanza

GoDoc Go Report Card

-- import "git.tcp.direct/kayos/proxygonanza"

Documentation

const (
	APIBaseURL = "https://proxybonanza.com/api/v1/"
)

func GetMyIP

func GetMyIP() net.IP

type APIClient

type APIClient struct {
	Key           string
	KnownPackages map[int]PackageDetails
}

APIClient is a client for ProxyBonanza.com.

func NewApiClient

func NewApiClient(key string) *APIClient

NewApiClient instantiates a proxybonanza.com API client with the given key.

func (*APIClient) AddAuthIP

func (api *APIClient) AddAuthIP(ip net.IP, packageID int) (AddAuthIPResponse, error)

AddAuthIP adds a new IP to the corresponding/provided proxy package ID.

func (*APIClient) AddCurrentIPtoAllPackages

func (api *APIClient) AddCurrentIPtoAllPackages() (success int)

AddCurrentIPtoAllPackages adds your current WAN IP to all packages on your account. It returns the amount of successful packages that it was applied to.

func (*APIClient) DeleteAllAuthIPs

func (api *APIClient) DeleteAllAuthIPs() (int, error)

DeleteAllAuthIPs deletes all authenticaiton IPs from your account.

func (*APIClient) DeleteAuthIPByID

func (api *APIClient) DeleteAuthIPByID(ipID int) (ok bool)

DeleteAuthIPByID deletes an authentication IP with the matching ID provided

func (*APIClient) DeleteAuthIPByIP

func (api *APIClient) DeleteAuthIPByIP(ipa net.IP) (err error)

DeleteAuthIPByIP will iterate through all the authips on your account and delete one that matches the given IP.

func (*APIClient) GetAuthIPs

func (api *APIClient) GetAuthIPs() ([]AuthIP, error)

GetAuthIPs gets all authentication IPs active on your account.

func (*APIClient) GetProxyPackages

func (api *APIClient) GetProxyPackages() ([]UserPackage, error)

GetProxyPackages gets current proxy packages from your account.

type AddAuthIPResponse

type AddAuthIPResponse struct {
	Success bool   `json:"success"`
	Message string `json:"message"`
	Data    struct {
		ID int `json:"id"`
	} `json:"data"`
}

AddAuthIPResponse represents an API response from proxybonanza.com.

type AuthIP

type AuthIP struct {
	UserpackageID int         `json:"userpackage_id"`
	ID            interface{} `json:"id"`
	IP            string      `json:"ip"`
}

AuthIP is an IP address authorized to use the proxies in the related package.

type AuthIPResponse

type AuthIPResponse struct {
	Success    bool       `json:"success"`
	Message    string     `json:"message"`
	AuthIPData []AuthIP   `json:"data"`
	Pages      pagination `json:"pagination"`
}

AuthIPResponse represents an API response from proxybonanza.com.

type DelAuthIPResponse

type DelAuthIPResponse struct {
	Success bool `json:"success"`
}

DelAuthIPResponse represents an API response from proxybonanza.com.

type Package

type Package struct {
	ID           int
	AuthIPs      []AuthIP
	AllTimeStats PackageStatistics
	HourlyStats  map[time.Time]PackageStatistics
}

Package contains what we know about a particular proxybonanza package.

type PackageDetails

type PackageDetails struct {
	Name               string      `json:"name"`
	Bandwidth          int64       `json:"bandwidth"`
	Price              interface{} `json:"price"`
	HowmanyIPs         int         `json:"howmany_ips"`
	PricePerGig        interface{} `json:"price_per_gig"`
	PackageType        string      `json:"package_type"`
	HowmanyAuthips     int         `json:"howmany_authips"`
	IPType             int         `json:"ip_type"`
	PriceUserFormatted string      `json:"price_user_formatted"`
}

PackageDetails represents an API response from proxybonanza.com containing proxy package information.

type PackageResponse

type PackageResponse struct {
	Success     bool          `json:"success"`
	Message     string        `json:"message"`
	PackageData []UserPackage `json:"data"`
	Pages       pagination    `json:"pagination"`
}

PackageResponse represents an API response from proxybonanza.com containing proxy package information.

type PackageStatistics

type PackageStatistics struct {
	UserpackageID int    `json:"userpackage_id"`
	Date          string `json:"date"`
	BndHTTP       int    `json:"bnd_http"`
	ConnHTTP      int    `json:"conn_http"`
	BndSocks      int    `json:"bnd_socks"`
	ConnSocks     int    `json:"conn_socks"`
	BndTotal      int    `json:"bnd_total"`
	ConnTotal     int    `json:"conn_total"`
}

PackageStatistics represents the statistics for the related proxy package.

type UserPackage

type UserPackage struct {
	ID                             int            `json:"id"`
	CustomName                     interface{}    `json:"custom_name"`
	Login                          string         `json:"login"`
	Password                       string         `json:"password"`
	Expires                        time.Time      `json:"expires"`
	Bandwidth                      int64          `json:"bandwidth"`
	LastIPChange                   time.Time      `json:"last_ip_change"`
	LowBanwidthNotificationPercent int            `json:"low_banwidth_notification_percent"`
	Package                        PackageDetails `json:"package"`
	BandwidthGb                    float64        `json:"bandwidth_gb"`
	AdditionalBandwidthGb          int            `json:"additional_bandwidth_gb"`
	BandwidthPercentLeftHuman      string         `json:"bandwidth_percent_left_human"`
	ExpirationDateHuman            string         `json:"expiration_date_human"`
	Name                           string         `json:"name"`
}

UserPackage represents a proxy package purchased from proxybonanza.com.

Owner
kayos
you guys come here often?
kayos
Similar Resources

Unofficial SDK of official notion API in Go

notion-go A go client for the Notion API Description This aims to be an unofficial Go version of the official SDK which is written in JavaScript. Inst

May 12, 2022

Avanza Unofficial GO API Client

Avanza Unofficial GO API Client Please note that I am not affiliated with Avanza Bank AB in any way. The underlying API can be taken down or changed w

Jan 7, 2023

Unofficial Go SDK for GoPay Payments REST API

Unofficial Go SDK for GoPay Payments REST API Installation go get https://github.com/apparently-studio/gopay-go-api Basic usage client := gopay.NewCl

Nov 18, 2022

unofficial NBA Stats API SDK in Go

nba api go (nag) is an unofficial NBA Stats API in Go. it is very much a Go port of nba_api. endpoints alltimeleadersgrids assistleaders assisttracker

Sep 23, 2022

Unofficial but convenient Go wrapper around the NVD API

NVD API The NVD API is an unofficial Go wrapper around the NVD API. Supports: CVE CPE How to use The following shows how to basically use the wrapper

Nov 1, 2021

(unofficial) TexTra API client library

go-textra This is a library that translates with みんなの自動翻訳(minnano-jidou-honyaku)@textra's API. You need a textra account. package main import ( "fmt

Dec 13, 2021

Twilight is an unofficial Golang SDK for Twilio APIs

Twilight is an unofficial Golang SDK for Twilio APIs

Twilight is an unofficial Golang SDK for Twilio APIs. Twilight was born as a result of my inability to spell Twilio correctly. I searched for a Twillio Golang client library and couldn’t find any, I decided to build one. Halfway through building this, I realized I had spelled Twilio as Twillio when searching for a client library on Github.

Jul 2, 2021

An unofficial package in Golang to help developers implement ZATCA (Fatoora) QR code easily.

Zatca SDK GO An unofficial package in Golang to help developers to implement ZATCA (Fatoora) QR code easily which required for e-invoicing ✅ The hash

Jan 1, 2023

Unofficial Golang SDK for TON (The Open Network)

TonWeb Unofficial Golang SDK for TON (The Open Network) Installation go get github.com/neotoolkit/tonweb Usage package main import ( "fmt" "os" "

Jun 13, 2022
Comments
  • Proxy Bonanza broke something in their API

    Proxy Bonanza broke something in their API

    Haven't investigated the details, but LastIPChange time.Timejson:"last_ip_change"`` does not unmarshal anymore. Going to temporarily remove it until that's figured out.

Go client for the YNAB API. Unofficial. It covers 100% of the resources made available by the YNAB API.

YNAB API Go Library This is an UNOFFICIAL Go client for the YNAB API. It covers 100% of the resources made available by the YNAB API. Installation go

Oct 6, 2022
The NVD API is an unofficial Go wrapper around the NVD API.

NVD API The NVD API is an unofficial Go wrapper around the NVD API. Supports: CVE CPE How to use The following shows how to basically use the wrapper

Jan 7, 2023
An unofficial API based on Hasura API Reference.

An unofficial API based on Hasura API Reference.

Apr 14, 2022
Unofficial Anilist.co GraphQL API wrapper for GoLang.

anilistWrapGo Unofficial Anilist.co GraphQL API wrapper for GoLang. Examples All examples are present as tests in test directory. Below are a few snip

Dec 20, 2022
Unofficial getpocket.com API Golang SDK

GetPocket API Golang SDK https://getpocket.com/developer/ Example usage: package main import ( "context" "fmt" pocket "github.com/ernur-eskermes/p

Nov 28, 2021
Unofficial golang implementation for the pipl.com search API
Unofficial golang implementation for the pipl.com search API

go-pipl The unofficial golang wrapper for the pipl.com API. Table of Contents Installation Documentation Examples & Tests Benchmarks Code Standards Us

Nov 6, 2022
Unofficial golang implementation for the Preev API
Unofficial golang implementation for the Preev API

go-preev The unofficial golang implementation for the Preev.pro API Table of Contents Installation Documentation Examples & Tests Benchmarks Code Stan

Sep 13, 2022
🔗 Unofficial golang implementation for the NOWNodes API
🔗 Unofficial golang implementation for the NOWNodes API

go-nownodes The unofficial golang implementation for the NOWNodes.io API Table of Contents Installation Documentation Examples & Tests Benchmarks Code

Jan 30, 2022
Golang SDK for Dusupay payment gateway API (Unofficial)

Dusupay API SDK GO (Unofficial) Description Unofficial Dusupay payment gateway API Client for Go API documentation https://docs.dusupay.com/ Installat

Sep 27, 2022
Unofficial Google Trends API for Go

Google Trends API for Go Unofficial Google Trends API for Golang gogtrends is API wrapper which allows to get reports from Google Trends. All contribu

Nov 21, 2022