streamlabs

package
v0.0.0-...-ae6a1b9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BASE_API_URL = "https://streamlabs.com/api"
	API_VER      = "v1.0"

	DONATIONS_ENDPOINT = "donations"
	ALERTS_ENDPOINT    = "alerts"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiClient

type ApiClient struct {
	// contains filtered or unexported fields
}

func NewApiClient

func NewApiClient(accessToken string) ApiClient

func (ApiClient) CreateAlert

func (api ApiClient) CreateAlert(alert models.CreateAlert) (bool, error)

func (ApiClient) CreateDonation

func (api ApiClient) CreateDonation(donation models.CreateDonation) (int64, error)

func (ApiClient) GetDonations

func (api ApiClient) GetDonations() ([]models.GetDonation, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL