Skip to content

nattokin/hango

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

hango

Hangout Chat でWebhookを使ってメッセージを投稿するためのパッケージです。

Usage

Example

package main

import (
	"fmt"
	"log"

	"github.com/zucc-hicc/hango"
)

const webhook = "webhook url"
const thread = "thread path"

func main() {
	c := hango.NewClient(webhook)
	var bs []byte

	// Post to a new thread.
	bs, err := c.Post("Test of post to a new thead")
	if err != nil {
		log.Println(err)
	}

	fmt.Printf("%s\n", bs)

	// Post to an existing thread.
	bs, err = c.PostToThread("Test of post to an existing thread", thread)
	if err != nil {
		log.Println(err)
	}

	fmt.Printf("%s\n", bs)
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages