// Code generated by protoc-gen-volcengine-sdk
// source: AddrService
// DO NOT EDIT!

package live

import (
	"fmt"
	"testing"

	"github.com/volcengine/volc-sdk-golang/base"
	"github.com/volcengine/volc-sdk-golang/service/live"
	"github.com/volcengine/volc-sdk-golang/service/live/models/request"
)

func Test_GeneratePlayURL(t *testing.T) {
	instance := live.NewInstance()
	instance.SetCredential(base.Credentials{
		AccessKeyID:     "",
		SecretAccessKey: "",
	})

	query := &request.GeneratePlayURLRequest{
		Vhost:       "",
		Domain:      "",
		App:         "",
		Stream:      "",
		Suffix:      "",
		Type:        "",
		ExpiredTime: "",
	}

	resp, status, err := instance.GeneratePlayURL(query)
	fmt.Println(status)
	fmt.Println(err)
	fmt.Println(resp.String())
}

func Test_GeneratePushURL(t *testing.T) {
	instance := live.NewInstance()
	instance.SetCredential(base.Credentials{
		AccessKeyID:     "",
		SecretAccessKey: "",
	})

	query := &request.GeneratePushURLRequest{
		Vhost:       "",
		Domain:      "",
		App:         "",
		Stream:      "",
		ExpiredTime: "",
	}

	resp, status, err := instance.GeneratePushURL(query)
	fmt.Println(status)
	fmt.Println(err)
	fmt.Println(resp.String())
}
