Awesome Go

hipchat (xmpp)

CategoryThird-party APIs
SubcategoryThird-party APIs
Stars0

A golang package to communicate with HipChat over XMPP

About hipchat (xmpp)

hipchat

This is a abstraction in golang to Hipchat's implementation of XMPP. It communicates over TLS and requires zero knowledge of XML or the XMPP protocol.

bot building

Hipchat treats the "bot" resource differently from any other resource connected to their service. When connecting to Hipchat with a resource of "bot", a chat history will not be sent. Any other resource will receive a chat history.

example/hello.go

package main

import (
	"github.com/daneharrigan/hipchat"
)

func main() {
	user := "11111_22222"
	pass := "secret"
	resource := "bot"
	roomJid := "[email protected]"
	fullName := "Some Bot"

	client, err := hipchat.NewClient(user, pass, resource)
	if err != nil {
		fmt.Printf("client error: %s\n", err)
		return
	}

	client.Status("chat")
	client.Join(roomJid, fullName)
	client.Say(roomJid, fullName, "Hello")
	select {}
}

Frequently Asked Questions

What is hipchat (xmpp)?

hipchat (xmpp) is a Third-party APIs library for the Go programming language. A golang package to communicate with HipChat over XMPP

How do I install hipchat (xmpp)?

Install hipchat (xmpp) with the Go module system using `go get daneharrigan/hipchat`. Check the repository for the current installation instructions.

What category does hipchat (xmpp) belong to?

hipchat (xmpp) is listed under Third-party APIs, specifically Third-party APIs.

← Back to Third-party APIs