circle-info
Squadcast is now SolarWinds Incident Response

Auth

Overview

Available Operations

AuthGetAccessToken

Get access token to make authenticated HTTP requests to the Squadcast API. Send your refresh token (obtained from the Squadcast web application) in the X-Refresh-Token header.

Example Usage

package main

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

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

    s := squadcastsdk.New()

    res, err := s.Auth.AuthGetAccessToken(ctx, "<value>")
    if err != nil {
        log.Fatal(err)
    }
    if res.Object != nil {
        // handle response
    }
}

Parameters

Parameter
Type
Required
Description

ctx

✔️

The context to use for the request.

xRefreshToken

string

✔️

(Required) Send your refresh token obtained from Squadcast web application.

opts

The options for this request.

Response

*operations.AuthGetAccessTokenResponse, error

Errors

Error Type
Status Code
Content Type

apierrors.BadRequestError

400

application/json

apierrors.UnauthorizedError

401

application/json

apierrors.PaymentRequiredError

402

application/json

apierrors.ForbiddenError

403

application/json

apierrors.NotFoundError

404

application/json

apierrors.ConflictError

409

application/json

apierrors.UnprocessableEntityError

422

application/json

apierrors.InternalServerError

500

application/json

apierrors.BadGatewayError

502

application/json

apierrors.ServiceUnavailableError

503

application/json

apierrors.GatewayTimeoutError

504

application/json

apierrors.APIError

4XX, 5XX

*/*

Last updated