Skip to content

speakeasy-sdks/hookdeck-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go SDK

Never miss a webhook

Authentication

Get an API key

You'll need to include an API key in every API request. If you do not yet have a Hookdeck account, please sign up for a free account. Your API key is located in your workspace settings.

To include your API key in requests, use either Bearer Token Authentication or Basic Authentication.

Bearer Token Authentication: Include the header Authorization: Bearer $API_KEY, replacing $API_KEY with your personal key Basic Authentication : Set the username as your API key, and supply an empty password

SDK Installation

go get github.com/speakeasy-sdks/hookdeck-go

SDK Example Usage

package main

import(
	"context"
	"log"
	"github.com/speakeasy-sdks/hookdeck-go"
	"github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared"
	"github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations"
)

func main() {
    s := hookdeck.New(
        hookdeck.WithSecurity(shared.Security{
            BasicAuth: &shared.SchemeBasicAuth{
                Password: "",
                Username: "",
            },
        }),
    )
    id := "corrupti"

    ctx := context.Background()
    res, err := s.Attempt.Get(ctx, id)
    if err != nil {
        log.Fatal(err)
    }

    if res.EventAttempt != nil {
        // handle response
    }
}

Available Resources and Operations

  • Get - Get a Single Attempt
  • Get - Get Attempts
  • Get - Get Bookmarks
  • Cancel - Cancel an events bulk retry
  • Create - Create an events bulk retry
  • Get - Get an events bulk retry
  • Cancel - Cancel an ignored events bulk retry
  • Create - Create an ignored events bulk retry
  • Generate - Generate an ignored events bulk retry plan
  • Get - Get an ignored events bulk retry
  • Get - Get ignored events bulk retries
  • Create - Create a requests bulk retry
  • Upsert - Update or create a connection
  • Get - Get connections
  • Add - Add a custom domain to the workspace
  • Delete - Removes a custom domain from the workspace
  • List - List all custom domains and their verification statuses for the workspace
  • Archive - Archive a Destination
  • Create - Create a Destination
  • Delete - Delete a Destination
  • Get - Get a Destination
  • Unarchive - Unarchive a Destination
  • Update - Update a Destination
  • Upsert - Update or Create a Destination
  • Get - Get Destinations
  • Get - Get an Event Raw Body Data
  • Get - Get Events
  • Get - Get integrations
  • Create - Create an Issue Trigger
  • Delete - Delete an Issue Trigger
  • Disable - Disable an Issue Trigger
  • Enable - Enable an Issue Trigger
  • Get - Get an Issue Trigger
  • Update - Update an Issue Trigger
  • Upsert - Create or Update an Issue Trigger
  • Get - Get Issue Triggers
  • Get - Get issues
  • Get - Get the number of issues
  • Get - Get a request
  • Retry - Retry a request
  • Cancel - Cancel a requests bulk retry
  • Get - Get a requests bulk retry
  • Get - Get request events
  • Get - Get request ignored events
  • Get - Get a request raw body data
  • Get - Get requests
  • Get - Get rulesets
  • Get - Get sources
  • Create - Create a transformation
  • Get - Get a transformation
  • Test - Test a transformation code
  • Update - Update a transformation
  • Upsert - Update or create a transformation
  • Get - Get a transformation execution
  • Get - Get transformation executions
  • Get - Get transformations
  • Toggle - Toggle webhook notifications for the workspace

Maturity

This SDK is in beta, and there may be breaking changes between versions without a major version update. 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 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