Skip to content

Latest commit

 

History

History
62 lines (45 loc) · 2.82 KB

File metadata and controls

62 lines (45 loc) · 2.82 KB

Schedules.Export

Overview

Available Operations

DeleteIcalLink

Delete ICal Link

Example Usage

package main

import(
	"context"
	"os"
	squadcastsdk "github.com/solarwinds/squadcast-sdk-go"
	"log"
)

func main() {
    ctx := context.Background()

    s := squadcastsdk.New(
        squadcastsdk.WithSecurity(os.Getenv("SQUADCASTSDK_REFRESH_TOKEN_AUTH")),
    )

    res, err := s.Schedules.Export.DeleteIcalLink(ctx, "<id>", true)
    if err != nil {
        log.Fatal(err)
    }
    if res.Body != nil {
        // handle response
    }
}

Parameters

Parameter Type Required Description
ctx context.Context ✔️ The context to use for the request.
scheduleID string ✔️ N/A
myOnCall bool ✔️ N/A
opts []operations.Option The options for this request.

Response

*operations.ExportDeleteIcalLinkResponse, error

Errors

Error Type Status Code Content Type
apierrors.CommonV4Error 400, 401, 402, 403, 404, 409, 422 application/json
apierrors.CommonV4Error 500, 502, 503, 504 application/json
apierrors.APIError 4XX, 5XX */*