Skip to content

Latest commit

 

History

History
58 lines (40 loc) · 1.85 KB

README.md

File metadata and controls

58 lines (40 loc) · 1.85 KB

MailingLists

(MailingLists)

Overview

View mailing lists

Available Operations

  • GetLists - Get a list of mailing lists

GetLists

Retrieve a list of your account's mailing lists.

Example Usage

package main

import(
	loopsgo "github.com/speakeasy-sdks/loops-go"
	"context"
	"log"
)

func main() {
    s := loopsgo.New(
        loopsgo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
    )

    ctx := context.Background()
    res, err := s.MailingLists.GetLists(ctx)
    if err != nil {
        log.Fatal(err)
    }
    if res.MailingLists != nil {
        // handle response
    }
}

Parameters

Parameter Type Required Description
ctx context.Context ✔️ The context to use for the request.
opts []operations.Option The options for this request.

Response

*operations.GetListsResponse, error

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