コード例 #1
0
ファイル: search.go プロジェクト: jaisingh/go-flowdock
// Example of searching a flowdock flow for a string and tags
func main() {
	client := flowdock.NewClient(auth.AuthenticationRequest())

	search := "production to production"
	tags := []string{"deployment", "deploy_end", "production", "icis"}
	event := "mail"
	messageSearch(&tags, &event, &search, client)
}
コード例 #2
0
ファイル: stream.go プロジェクト: jaisingh/go-flowdock
func main() {
	httpClient := auth.AuthenticationRequest()
	token, _ := oauth.CacheFile("cache.json").Token()

	client := flowdock.NewClient(httpClient)

	messageList(client)
	messageStream(client, token.AccessToken)

	fmt.Println("Waiting for event")
}
コード例 #3
0
ファイル: integration.go プロジェクト: jaisingh/go-flowdock
func main() {
	client := flowdock.NewClient(auth.AuthenticationRequest())

	// Careful
	// flowsCreate("iora", "wm-test-api", client)
	// flowsUpdate("iora", "wm-test-api", client)

	flowsGet("iora", "culinary-extra", client)
	flowsGetById("iora:culinary-extra", client)
	flowsList(client)

	message := messagesCreate(client)
	messagesComment(client, *message.ID)
	messageList(client)
	// inboxMessage(client)
}