【文件属性】:
文件名称:magicbell-go:用于MagicBell的非官方Go API库
文件大小:20KB
文件格式:ZIP
更新时间:2021-02-08 08:44:44
golang golang-api magicbell Go
magicbell-go:用于MagicBell的非官方Go API库
这项工作仍在进行中,请期待重大更改。
什么是MagicBell?
参见 。
安装
go get -u github.com/tizz98/magicbell-go
用法
package main
import (
"fmt"
"github.com/tizz98/magicbell-go"
)
func main () {
magicbell . Init (magicbell. Config {
APIKey : "my-key" ,
APISecret : "my-secret" ,
})
user , _ := magicbell . CreateUser (magicbell. CreateUserRequest {
ExternalID : "56780" ,
Email
【文件预览】:
magicbell-go-main
----users_test.go(5KB)
----testdata()
--------api()
----api_errors.go(3KB)
----global.go(251B)
----.github()
--------FUNDING.yml(64B)
--------workflows()
----response.go(176B)
----LICENSE(1KB)
----api.go(3KB)
----notifications_test.go(3KB)
----hmac.go(752B)
----api_iface.go(3KB)
----helpers_test.go(2KB)
----.gitignore(285B)
----hmac_test.go(1KB)
----CHANGELOG.md(528B)
----Makefile(37B)
----go.sum(1024B)
----users.go(6KB)
----CODE_OF_CONDUCT.md(3KB)
----README.md(777B)
----go.mod(91B)
----notifications.go(3KB)