client

package
v0.0.0-...-d54ac61 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Environtment = "PROD"
	UserAgent    = "BNK48_102/1.2.89/Dalvik/2.1.0 (Linux; U; Android 5.1.1; HUAWEI MLA-L12 Build/HUAWEIMLA-L12)"
	AppId        = "BNK48_102"
	AppVersion   = "1.2.22"
	DeviceModel  = "HUAWEI HUAWEI MLA-L12"
	DeviceId     = "6802689067815614"
	DeviceName   = "HUAWEI MLA-L12"
)
View Source
var (
	DefaultClient = NewClient()
)
View Source
var (
	DefaultHeaders = map[string]string{
		"environment":        Environtment,
		"user-agent":         UserAgent,
		"bnk48-appcode":      AppId,
		"bnk48-device-id":    DeviceId,
		"bnk48-device-model": DeviceModel,
	}
)

Functions

func NewClient

func NewClient() *resty.Client

Types

type ErrApiResponse

type ErrApiResponse struct {
	ApiVersion string `json:"apiVersion"`
	Error      struct {
		Code        int    `json:"code"`
		ErrorNumber int    `json:"errorNumber"`
		Message     string `json:"message"`
	} `json:"error"`
	TraceId string `json:"traceId"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL