Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveURL ¶ added in v1.2.0
ResolveURL 根据 SendKey 前缀解析推送入口(不做网络请求):
scx-<uid>-<token> → Server酱 Max : https://<uid>.max.ft07.com/<key>.send sctp<uid>t<token> → Server酱³(SC3) : https://<uid>.push.ft07.com/send/<key>.send 其余(SCT…) → Server酱Turbo : https://sctapi.ftqq.com/<key>.send
注意:Max 的 Key 区分大小写,不做任何大小写转换。 Key 以 scx- / sctp 开头但格式非法时返回错误,不会静默回落到 Turbo 入口。
Types ¶
type ScSendOptions ¶
type ScSendResponse ¶
type ScSendResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}
func ScSend ¶
func ScSend(sendkey, title, desp string, options *ScSendOptions) (*ScSendResponse, error)
Click to show internal directories.
Click to hide internal directories.