Skip to content

Latest commit

 

History

History
86 lines (60 loc) · 4.08 KB

webhook_secret_key_service.md

File metadata and controls

86 lines (60 loc) · 4.08 KB

WebhookSecretKeyService

A list of all methods in the WebhookSecretKeyService service. Click on the method name to view detailed information about that method.

Methods Description
GetWebhookSecretKey Gets the webhook secret key
UpdateWebhookSecretKey Updates the webhook secret key

GetWebhookSecretKey

Gets the webhook secret key

  • HTTP Method: GET
  • Endpoint: /organizations/{organization_name}/webhook-secret-key

Parameters

Name Type Required Description
ctx Context Default go language context
organizationName string Your organization name. This identifies the billing context for the API operation and represents a security boundary for SaladCloud resources. The organization must be created before using the API, and you must be a member of the organization.

Return Type

WebhookSecretKey

Example Usage Code Snippet

import (
  "fmt"
  "encoding/json"
  "github.com/saladtechnologies/salad-cloud-sdk-go/pkg/saladcloudsdkconfig"
  "github.com/saladtechnologies/salad-cloud-sdk-go/pkg/saladcloudsdk"
)

config := saladcloudsdkconfig.NewConfig()
client := saladcloudsdk.NewSaladCloudSdk(config)

response, err := client.WebhookSecretKey.GetWebhookSecretKey(context.Background(), "organizationName")
if err != nil {
  panic(err)
}

fmt.Print(response)

UpdateWebhookSecretKey

Updates the webhook secret key

  • HTTP Method: POST
  • Endpoint: /organizations/{organization_name}/webhook-secret-key

Parameters

Name Type Required Description
ctx Context Default go language context
organizationName string Your organization name. This identifies the billing context for the API operation and represents a security boundary for SaladCloud resources. The organization must be created before using the API, and you must be a member of the organization.

Return Type

WebhookSecretKey

Example Usage Code Snippet

import (
  "fmt"
  "encoding/json"
  "github.com/saladtechnologies/salad-cloud-sdk-go/pkg/saladcloudsdkconfig"
  "github.com/saladtechnologies/salad-cloud-sdk-go/pkg/saladcloudsdk"
)

config := saladcloudsdkconfig.NewConfig()
client := saladcloudsdk.NewSaladCloudSdk(config)

response, err := client.WebhookSecretKey.UpdateWebhookSecretKey(context.Background(), "organizationName")
if err != nil {
  panic(err)
}

fmt.Print(response)