goQzone

package module
v0.0.0-...-21f4e13 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: GPL-3.0 Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

GoQzone

logo

发送QQ空间说说的Go程序 (扩充功能中)

使用方法

引用

import "GoQzone-Demo/pkg/goQzone"

新建会话,登录

client := goQzone.Init()
if err := client.QrLogin();err != nil{
	panic(err)
}

发布

err = client.NewPost().Content("说说内容").Pic(图片 []byte类型).Send()
if err != nil {
	fmt.Println(err)
}

其他发布类型

client.NewPost().Pic(图片 []byte类型).Send() // 只发一张图
client.NewPost().Content("说说内容").Send()  // 只有文字
client.NewPost().Pic(图片 []byte类型).Pic(图片 []byte类型).Send() // 多张图片

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Emotion

type Emotion struct {
	SynTweetVersion string       `json:"syn_tweet_verson"`
	ParamStr        string       `json:"paramstr"`
	PicTemplate     string       `json:"pic_template"`
	RichType        string       `json:"richtype"`
	RichVal         string       `json:"richval"`
	SpecialUrl      string       `json:"special_url"`
	SubRichType     string       `json:"subrichtype"`
	Con             string       `json:"con"` // 文字内容
	FeedVersion     string       `json:"feedversion"`
	Ver             string       `json:"ver"`
	UgcRight        VisibleRight `json:"ugc_right"`            // 可见权限
	AllowUins       string       `json:"allow_uins,omitempty"` // 部分好友可见或不可见需要用到这个 提交时需再添加一个参数allow_uins 值为指定的好友,用英文的“|”分开
	ToSign          string       `json:"to_sign"`
	HostUin         string       `json:"hostuin"`
	CodeVersion     string       `json:"code_version"`
	Format          string       `json:"format"`
	QzReferrer      string       `json:"qzreferrer"`
	PicBo           string       `json:"pic_bo,omitempty"`
}

type Service

type Service struct {
	Request *gorequest.SuperAgent
}

func Init

func Init() *Service

func (*Service) CheckCookieValid

func (s *Service) CheckCookieValid() bool

func (*Service) NewPost

func (s *Service) NewPost() *superEmotion

NewPost 新建说说

func (*Service) QrLogin

func (s *Service) QrLogin() error

QrLogin 扫码登录

func (*Service) QuickLogin

func (s *Service) QuickLogin() error

type VisibleRight

type VisibleRight int

VisibleRight 说说可见权限

const (
	VisibleAll    VisibleRight = 1  // 所有人可见
	VisibleFriend VisibleRight = 4  // 好友可见
	VisibleSelf   VisibleRight = 64 // 仅自己可见

)

Jump to

Keyboard shortcuts

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