Customer Order
This commit is contained in:
@@ -3,7 +3,6 @@ package brevo
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"fmt"
|
||||
"furtuna-be/internal/entity"
|
||||
"html/template"
|
||||
"io/ioutil"
|
||||
@@ -77,12 +76,5 @@ func New(conf Config) *ServiceImpl {
|
||||
cfg := brevo.NewConfiguration()
|
||||
cfg.AddDefaultHeader("api-key", conf.GetApiKey())
|
||||
client := brevo.NewAPIClient(cfg)
|
||||
result, resp, err := client.AccountApi.GetAccount(context.Background())
|
||||
if err != nil {
|
||||
fmt.Println("Error when calling AccountApi->get_account: ", err.Error())
|
||||
log.Fatal("error")
|
||||
}
|
||||
fmt.Println("GetAccount Object:", result, " GetAccount Response: ", resp)
|
||||
|
||||
return &ServiceImpl{brevoConn: client}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user