speakeasy-sdks / symops-go

A Go SDK for accessing the Symops API

Home Page:https://docs.symops.com/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Symops Go SDK

Secure your production infrastructure with code

SDK Installation

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.

SDK Example Usage

package main

import (
    "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

About

A Go SDK for accessing the Symops API

https://docs.symops.com/docs

License:MIT License