An open API service indexing awesome lists of open source software.

https://github.com/codeskyblue/dingrobot

DingTake Robot API
https://github.com/codeskyblue/dingrobot

Last synced: 3 months ago
JSON representation

DingTake Robot API

Awesome Lists containing this project

README

          

# dingrobot
DingTake Robot API

Prepare DingTalk robot access_token, See my article if you dont know how to get it.

## Usage
```go
import "github.com/codeskyblue/dingrobot"

func main(){
robot := dingrobot.New("xxxxx-access_token-*****")
// send text message
robot.Text("Hi")
// send markdown message
robot.Markdown("**Hi**")
// send link
robot.Link("Google", "Google homepage", "https://www.google.com.hk")

// At someone
robot.At("13811223344").Text("test at someone")

// At all
robot.AtAll(true).Text("test at all message")
}
```

## TODO
* FeedCard
* ActionCard
* ImageUpload

## LICENSE
[MIT](LICENSE)