api

package
v0.0.0-...-562e60d Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInitInfo

func GetInitInfo() (*resty.Response, error)

状态初始化,获取基本信息接口

func GetLiveActivityKey

func GetLiveActivityKey(matchId string) (*resty.Response, error)

获取比赛直播信息

func GetLiveMsgList

func GetLiveMsgList(matchId string, liveActivityKeyStr string, commentId string) (*resty.Response, error)

获取直播内容接口

func GetPlayByPlay

func GetPlayByPlay(gid int) (*resty.Response, error)

获取比赛直播信息

func GetScheduleList

func GetScheduleList(gametype GameType, coursors ...string) (*resty.Response, error)

获取比赛日程列表

func GetSingleMatch

func GetSingleMatch(matchId string) (*resty.Response, error)

根据比赛id获取比赛信息

Types

type GameType

type GameType string
const (
	NBA GameType = "nba"
	CBA GameType = "cba"
)

func (GameType) String

func (g GameType) String() string

type Session

type Session struct {
	// Client    *http.Client
	Client    *resty.Client
	Headers   map[string]string
	IMEI      string
	AndroidId string // 也是clientid
}
var HttpSession Session

func NewSession

func NewSession() *Session

func (*Session) Request

func (s *Session) Request(method string, url string, headers map[string]string, params map[string]string) (*resty.Response, error)

Jump to

Keyboard shortcuts

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