xizhi

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: MIT Imports: 8 Imported by: 0

README

息知

https://xizhi.qqoq.net/{key}.send?title=标题&content=内容

Feature

  • NewXiZhi(token string)
  • UseToken(token string)
  • SendText(text string)
  • SendMsg(title, body string)
  • SendMarkdown(title, body string)
  • SetDebug(debug bool)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
}

type XiZhi

type XiZhi struct {
	// contains filtered or unexported fields
}

func NewXiZhi

func NewXiZhi(token string) *XiZhi

NewXiZhi init

func (*XiZhi) SendMarkdown

func (r *XiZhi) SendMarkdown(title, body string) error

func (*XiZhi) SendMsg

func (r *XiZhi) SendMsg(title, body string) error

func (*XiZhi) SendText

func (r *XiZhi) SendText(text string) error

func (*XiZhi) SetDebug

func (r *XiZhi) SetDebug(debug bool) *XiZhi

func (*XiZhi) UseHost

func (r *XiZhi) UseHost(url string) notice.Noticer

Deprecated Manual settings are not supported

func (*XiZhi) UseSecret

func (r *XiZhi) UseSecret(secret string) notice.Noticer

Deprecated Manual settings are not supported

func (*XiZhi) UseToken

func (r *XiZhi) UseToken(token string) notice.Noticer

Jump to

Keyboard shortcuts

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