| 12345678910111213141516171819202122232425262728293031 |
- package providers
- import (
- "fmt"
- "os"
- "testing"
- "time"
- "git.wenlab.co/joe/beaconfire"
- )
- func TestWorkwx(t *testing.T) {
- key := os.Getenv("WORKWX_KEY")
- if len(key) <= 0 {
- fmt.Println("env WORKWX_KEY is empty")
- return
- }
- bf := NewWorkWx(&OptionsWorkwx{
- Key: key,
- })
- bf.Send(&beaconfire.BeaconParam{
- From: "sender",
- To: []string{""},
- Ts: time.Now().Unix(),
- Title: "title",
- Content: "test message",
- })
- }
|