Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/speakeasy-sdks/symops-go
A Go SDK for accessing the Symops API
https://github.com/speakeasy-sdks/symops-go
authorisation iac infrastructure production-code security sym symops
Last synced: 1 day ago
JSON representation
A Go SDK for accessing the Symops API
- Host: GitHub
- URL: https://github.com/speakeasy-sdks/symops-go
- Owner: speakeasy-sdks
- License: mit
- Created: 2023-04-11T21:46:38.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-02T21:20:00.000Z (7 months ago)
- Last Synced: 2024-04-28T05:14:52.328Z (6 months ago)
- Topics: authorisation, iac, infrastructure, production-code, security, sym, symops
- Homepage: https://docs.symops.com/docs
- Size: 27.3 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## SDK Installation
```bash
go get github.com/speakeasy-sdks/symops-go
```## Authentication
To get access to the API and fetch an API key, please sign up for [access](https://docs.symops.com/docs).
## SDK Example Usage
```go
package mainimport (
"context"
"log"
"symops"
"symops/pkg/models/shared"
"symops/pkg/models/operations"
)func main() {
s := symops.New()ctx := context.Background()
req := operations.GetEventRequest{
EventID: "corrupti",
}res, err := s.GetEvent(ctx, req)
if err != nil {
log.Fatal(err)
}if res.Event != nil {
// handle response
}
}
```## Available Resources and Operations
### Symops SDK
* `GetEvent` - Retrieve an event by event ID
### Maturity
This SDK is in beta and therefore, we recommend pinning usage to a specific package version.
This way, you can install the same version each time without breaking changes unless you are intentionally
looking for the latest version.### Contributions
While we value open-source contributions to this SDK, this library is generated and maintained programmatically.
Feel free to open a PR or a Github issue as a proof of concept and we'll do our best to include it in a future release !### SDK Created by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)