Categorygithub.com/asjdf/GoQzone
repositorypackage
0.0.0-20211214173921-21f4e1350de6
Repository: https://github.com/asjdf/goqzone.git
Documentation: pkg.go.dev

# 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() // 多张图片