chanify

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: 11 Imported by: 0

README

Chanify

Feature

  • NewChanify(token string)
  • UseHost(url string)
  • UseToken(token string)
  • SendText(text string)
  • SendMsg(title, body string)
  • SendLink(link string)
  • SetDebug(debug bool)
  • SetGet()
  • SetCopy(text string)
  • SetAutoCopy(copy bool)
  • SetLevel(level int)
  • SetPriority(priority int)
  • SetSound(soundName string)
  • SetRingtone()

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chanify added in v0.2.0

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

func NewChanify added in v0.2.0

func NewChanify(token string) *Chanify

NewChanify host default is `https://api.chanify.net`

func (r *Chanify) SendLink(link string) error

func (*Chanify) SendMsg added in v0.2.0

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

func (*Chanify) SendText added in v0.2.0

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

func (*Chanify) SetAutoCopy added in v0.2.0

func (r *Chanify) SetAutoCopy(copy bool) *Chanify

SetAutoCopy auto copy

func (*Chanify) SetCopy added in v0.2.0

func (r *Chanify) SetCopy(text string) *Chanify

SetCopy Specify what to copy

func (*Chanify) SetDebug added in v0.2.0

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

func (*Chanify) SetGet added in v0.2.0

func (r *Chanify) SetGet() *Chanify

func (*Chanify) SetLevel added in v0.2.0

func (r *Chanify) SetLevel(level int) *Chanify

SetLevel 0:active,default; 1:time-sensitive; 2:passive

func (*Chanify) SetPriority added in v0.2.0

func (r *Chanify) SetPriority(priority int) *Chanify

func (*Chanify) SetRingtone added in v0.2.0

func (r *Chanify) SetRingtone() *Chanify

SetRingtone enable ringtone

func (*Chanify) SetSound added in v0.2.0

func (r *Chanify) SetSound(soundName string) *Chanify

SetSound special custom sound

func (*Chanify) UseHost added in v0.2.0

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

func (*Chanify) UseSecret added in v0.2.0

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

Deprecated

func (*Chanify) UseToken added in v0.2.0

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

type Response

type Response struct {
	Res        int    `json:"res"`
	Message    string `json:"msg"`
	RequestUid string `json:"request-uid"`
}

Jump to

Keyboard shortcuts

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