qzone

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenderGTK

func GenderGTK(sKey string) string

GenderGTK 生成GTK

func GetPicBoAndRichVal

func GetPicBoAndRichVal(data UploadPicResult) (PicBo, RichVal string, err error)

Types

type Manager

type Manager struct {
	QQ    string
	Gtk   string
	Gtk2  string
	PSkey string
	Skey  string
	Uin   string
	// contains filtered or unexported fields
}

func NewQzoneManager

func NewQzoneManager(qq int64, cookie OPQBot.Cookie) Manager

func (*Manager) GetQzoneToken

func (m *Manager) GetQzoneToken() (string, error)

func (*Manager) GetShuoShuoList

func (m *Manager) GetShuoShuoList() (ShuoshuoList, error)

func (*Manager) Like

func (m *Manager) Like(unikey, curkey, appid string) error

func (*Manager) SendShuoShuo

func (m *Manager) SendShuoShuo(Content string) (SendShuoShuoResult, error)

func (*Manager) SendShuoShuoWithPic

func (m *Manager) SendShuoShuoWithPic(Content, picBo, richVal string) (SendShuoShuoResult, error)

func (*Manager) UploadPic

func (m *Manager) UploadPic(picBase64 string) (UploadPicResult, error)

type SendShuoShuoResult

type SendShuoShuoResult struct {
	Attach     string `json:"attach"`
	Code       int    `json:"code"`
	Feedinfo   string `json:"feedinfo"`
	Message    string `json:"message"`
	Needverify int    `json:"needVerify"`
	Now        int    `json:"now"`
	Republish  int    `json:"republish"`
	Secret     int    `json:"secret"`
	Subcode    int    `json:"subcode"`
	Tid        string `json:"tid"`
	Vote       string `json:"vote"`
}

type ShuoshuoList

type ShuoshuoList struct {
	Code    int    `json:"code"`
	Subcode int    `json:"subcode"`
	Message string `json:"message"`
	Default int    `json:"default"`
	Data    struct {
		Main struct {
			Attach               string        `json:"attach"`
			Searchtype           string        `json:"searchtype"`
			Hasmorefeeds         bool          `json:"hasMoreFeeds"`
			Daylist              string        `json:"daylist"`
			Uinlist              string        `json:"uinlist"`
			Error                string        `json:"error"`
			Hotkey               string        `json:"hotkey"`
			Icgroupdata          []interface{} `json:"icGroupData"`
			HostLevel            string        `json:"host_level"`
			FriendLevel          string        `json:"friend_level"`
			Lastaccesstime       string        `json:"lastaccesstime"`
			Lastaccessrelatetime string        `json:"lastAccessRelateTime"`
			Begintime            string        `json:"begintime"`
			Endtime              string        `json:"endtime"`
			Dayspac              string        `json:"dayspac"`
			Hidednamelist        []interface{} `json:"hidedNameList"`
			Aisortbegintime      string        `json:"aisortBeginTime"`
			Aisortendtime        string        `json:"aisortEndTime"`
			Aisortoffset         string        `json:"aisortOffset"`
			Aisortnexttime       string        `json:"aisortNextTime"`
			OwnerBitmap          string        `json:"owner_bitmap"`
			Pagenum              string        `json:"pagenum"`
			Externparam          string        `json:"externparam"`
		} `json:"main"`
		Data []map[string]interface{} `json:"data"`
	} `json:"data"`
}

type UploadPicResult

type UploadPicResult struct {
	Data struct {
		Pre          string `json:"pre"`
		URL          string `json:"url"`
		Lloc         string `json:"lloc"`
		Sloc         string `json:"sloc"`
		Type         int    `json:"type"`
		Width        int    `json:"width"`
		Height       int    `json:"height"`
		Albumid      string `json:"albumid"`
		Totalpic     int    `json:"totalpic"`
		Limitpic     int    `json:"limitpic"`
		OriginURL    string `json:"origin_url"`
		OriginUUID   string `json:"origin_uuid"`
		OriginWidth  int    `json:"origin_width"`
		OriginHeight int    `json:"origin_height"`
		Contentlen   int    `json:"contentlen"`
	} `json:"data"`
	Ret int `json:"ret"`
}

Jump to

Keyboard shortcuts

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