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")
}
-
Notifications
You must be signed in to change notification settings - Fork 11
License
logicmonitor/lm-sdk-go
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published