Documentation Index
Fetch the complete documentation index at: https://mintlify.com/resend/resend-go/llms.txt
Use this file to discover all available pages before exploring further.
Method
func (s *TopicsSvcImpl) List(options *ListOptions) (*ListTopicsResponse, error)
func (s *TopicsSvcImpl) ListWithContext(ctx context.Context, options *ListOptions) (*ListTopicsResponse, error)
Parameters
Pagination optionsMaximum number of topics to return
Cursor for forward pagination
Cursor for backward pagination
Response
Whether there are more results available
Array of topic objectsThe unique identifier of the topic
The description of the topic
Default subscription preference
ISO 8601 timestamp of when the topic was created
Example
client := resend.NewClient("re_123456789")
limit := 10
options := &resend.ListOptions{
Limit: &limit,
}
response, err := client.Topics.List(options)
if err != nil {
panic(err)
}
for _, topic := range response.Data {
fmt.Printf("Topic: %s (%s)\n", topic.Name, topic.Id)
}
fmt.Println("Has More:", response.HasMore)