/xchango

A library for access calendar information from exchange.

Primary LanguageGoMIT LicenseMIT

Exchango

Read calendar information from an Exchange Server using Go.

Build Status Build Status

Install

go get github.com/sgoertzen/xchango

Usage

import "github.com/sgoertzen/xchango"

func main() {
	xchango.SetExchangeConfig(/* your class that implements ExchangeConfig interface */)
	
	user := ExchangeUser { Username: "sally", Password: "123" }
	cal, err := xchango.GetExchangeCalendar(user)
	if err != nil {
		// handle error
	}
	
	appointments, er := xchango.GetExchangeAppointments(user, cal)
	if er != nil {
		// handle error
	}
	
	for _, app := range appointments {
		// Do something with each appointment
	}
}