2018-03-22 11:03:54 -07:00
|
|
|
package main
|
|
|
|
|
2018-03-23 16:08:03 -07:00
|
|
|
import "fmt"
|
|
|
|
|
2018-03-22 11:03:54 -07:00
|
|
|
func main() {
|
|
|
|
initLog()
|
2018-03-22 13:52:16 -07:00
|
|
|
|
|
|
|
initConfig()
|
2018-03-23 16:08:03 -07:00
|
|
|
|
|
|
|
err := backend.Connect()
|
|
|
|
|
|
|
|
if err == nil {
|
|
|
|
log.Info("Successfully connected to " + backendName)
|
|
|
|
|
|
|
|
invoice, err := backend.GetInvoice("Just a test", 1, 3600)
|
|
|
|
|
|
|
|
log.Info("Got invoice " + invoice)
|
|
|
|
log.Info(fmt.Sprint(err))
|
|
|
|
}
|
|
|
|
|
2018-03-22 11:03:54 -07:00
|
|
|
}
|