Skip to content

Latest commit

 

History

History
55 lines (42 loc) · 2.33 KB

README.md

File metadata and controls

55 lines (42 loc) · 2.33 KB

Call

(Call)

Available Operations

ListUcCalls

List all calls

Example Usage

package main

import(
	unifiedgosdk "github.com/unified-to/unified-go-sdk"
	"github.com/unified-to/unified-go-sdk/pkg/models/operations"
	"context"
	"log"
)

func main() {
    s := unifiedgosdk.New(
        unifiedgosdk.WithSecurity("<YOUR_API_KEY_HERE>"),
    )
    request := operations.ListUcCallsRequest{
        ConnectionID: "<value>",
    }
    ctx := context.Background()
    res, err := s.Call.ListUcCalls(ctx, request)
    if err != nil {
        log.Fatal(err)
    }
    if res.UcCalls != nil {
        // handle response
    }
}

Parameters

Parameter Type Required Description
ctx context.Context ✔️ The context to use for the request.
request operations.ListUcCallsRequest ✔️ The request object to use for the request.

Response

*operations.ListUcCallsResponse, error

Error Object Status Code Content Type
sdkerrors.SDKError 4xx-5xx /