api

package module
v0.0.0-...-f30f091 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2017 License: Apache-2.0 Imports: 0 Imported by: 0

README

dingtalk-open

钉钉开放平台 GO SDK

Build Status Go Report Card

安装:

go get github.com/infoepoch/dingtalk-open

更新:

go get -u github.com/infoepoch/dingtalk-open  

快速使用案例

发送到群机器人信息

package main

import (
	"fmt"
	"github.com/infoepoch/dingtalk-open/webhook"
	"log"
)

// 钉钉机器人 token
const dingTalkBotAccessToken = ""

// 发送钉钉纯文本内容
func SendDingTalkText(text string) {
	str, err := webhook.SendText(dingTalkBotAccessToken, text)
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(str)
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package httplib is used as http.Client Usage: import "github.com/astaxie/beego/httplib" b := httplib.Post("http://beego.me/") b.Param("username","astaxie") b.Param("password","123456") b.PostFile("uploadfile1", "httplib.pdf") b.PostFile("uploadfile2", "httplib.txt") str, err := b.String() if err != nil { t.Fatal(err) } fmt.Println(str) more docs http://beego.me/docs/module/httplib.md
Package httplib is used as http.Client Usage: import "github.com/astaxie/beego/httplib" b := httplib.Post("http://beego.me/") b.Param("username","astaxie") b.Param("password","123456") b.PostFile("uploadfile1", "httplib.pdf") b.PostFile("uploadfile2", "httplib.txt") str, err := b.String() if err != nil { t.Fatal(err) } fmt.Println(str) more docs http://beego.me/docs/module/httplib.md

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL