Ejemplo n.º 1
0
// 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)
}
Ejemplo n.º 2
0
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")
}
Ejemplo n.º 3
0
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)
}