Skip to content

Commit

Permalink
Develop (#7)
Browse files Browse the repository at this point in the history
* Automated release commit release-7

* Build from latest swagger revision (#3)

* Fix AddCollector by using pointers

* don't omit empty for failback (#2)

* rebuild from upstream swagger updates

* update docs

* rebuild from auth updates

* simplify request signing

* Automated release commit release-11

* Automated release commit release-11

* Automated release commit release-11

* Automated release commit release-11

* Automated release commit release-11

* boilerplate

* Develop (#9)

* Create main.go

* Update main.go
  • Loading branch information
JeremyTangCD authored and Jeff committed Apr 25, 2019
1 parent cc3e89a commit 2f24051
Show file tree
Hide file tree
Showing 1,033 changed files with 157,328 additions and 15,043 deletions.
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Compiled Object files, Static and Dynamic libs (Shared Objects)
*.o
*.a
*.so

# Folders
_obj
_test

# Architecture specific extensions/prefixes
*.[568vq]
[568vq].out

*.cgo1.go
*.cgo2.c
_cgo_defun.c
_cgo_gotypes.go
_cgo_export.*

_testmain.go

*.exe
*.test
*.prof
5 changes: 5 additions & 0 deletions .swagger-codegen-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Swagger Codegen Ignore
# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen

CONTRIBUTING.md
LICENSE
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: go

install:
- go get -d -v .

script:
- go build -v ./

35 changes: 18 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,27 @@ Getting Started
```go
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
import (
"fmt"
"github.com/logicmonitor/lm-sdk-go/client"
"github.com/logicmonitor/lm-sdk-go/client/lm"
)

func NewLMClient() *client.LMSdkGo {
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

return client.New(config)
}

func main() {
client := NewLMClient("foo", "bar", "baz")
client := NewLMClient()
}
```

Expand Down
164 changes: 0 additions & 164 deletions api_client.go

This file was deleted.

44 changes: 0 additions & 44 deletions api_response.go

This file was deleted.

32 changes: 0 additions & 32 deletions automatic_upgrade_info.go

This file was deleted.

Loading

0 comments on commit 2f24051

Please sign in to comment.