https://github.com/codeskyblue/dingrobot
DingTake Robot API
https://github.com/codeskyblue/dingrobot
Last synced: 3 months ago
JSON representation
DingTake Robot API
- Host: GitHub
- URL: https://github.com/codeskyblue/dingrobot
- Owner: codeskyblue
- License: mit
- Created: 2017-12-14T06:02:55.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-14T07:50:10.000Z (about 8 years ago)
- Last Synced: 2025-04-11T18:56:52.934Z (9 months ago)
- Language: Go
- Size: 4.88 KB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)