Read calendar information from an Exchange Server using Go.
go get github.com/sgoertzen/xchango
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
}
}