| 1234567891011121314151617181920212223242526272829 |
- 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.BeaconMessage{
- Ts: time.Now().Unix(),
- Title: "title",
- Content: "test message",
- })
- }
|