Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/asjdf/goqzone
发送QQ空间说说的Go程序
https://github.com/asjdf/goqzone
Last synced: 11 days ago
JSON representation
发送QQ空间说说的Go程序
- Host: GitHub
- URL: https://github.com/asjdf/goqzone
- Owner: asjdf
- License: gpl-3.0
- Created: 2021-07-22T22:31:52.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-14T17:39:28.000Z (about 3 years ago)
- Last Synced: 2024-06-20T10:07:17.706Z (6 months ago)
- Language: Go
- Size: 125 KB
- Stars: 14
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GoQzone
发送QQ空间说说的Go程序 (扩充功能中)
## 使用方法
引用
```go
import "GoQzone-Demo/pkg/goQzone"
```新建会话,登录
```go
client := goQzone.Init()
if err := client.QrLogin();err != nil{
panic(err)
}
```发布
```go
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() // 多张图片
```