package main
import lmv1 "github.com/logicmonitor/lm-sdk-go"
func NewLMClient(id, key, company string) *lmv1.DefaultApi {
config := lmv1.NewConfiguration()
config.APIKey = map[string]map[string]string{
"Authorization": map[string]string{
"AccessID": id,
"AccessKey": key,
},
}
config.BasePath = "https://" + company + ".logicmonitor.com/santaba/rest"
api := lmv1.NewDefaultApi()
api.Configuration = config
return api
}
func main() {
client := NewLMClient("foo", "bar", "baz")
}