We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5b0f90 commit 8ca200aCopy full SHA for 8ca200a
README.md
@@ -7,17 +7,30 @@ export DINGTALK_TOKEN="change me"
7
export DINGTALK_SECRET="change me"
8
```
9
10
-Test sending message:
+Test sending messages:
11
12
```shell
13
go test ./... -v
14
15
16
-Send with this SDK in Go:
+Send messages with this SDK in Go:
17
+
18
+```shell
19
+go get -u github.com/Lonor/dingtalkbot-sdk
20
+```
21
22
```go
-bot := sdk.NewDingBot(os.Getenv("DINGTALK_TOKEN"), os.Getenv("DINGTALK_SECRET"))
-bot.SendSimpleText("hello world")
23
+package main
24
25
+import (
26
+ sdk "github.com/Lonor/dingtalkbot-sdk"
27
+ "os"
28
+)
29
30
+func main() {
31
+ bot := sdk.NewDingBot(os.Getenv("DINGTALK_TOKEN"), os.Getenv("DINGTALK_SECRET"))
32
+ _ = bot.SendSimpleText("hello world")
33
+}
34
35
36
## LICENSE
0 commit comments