0

I'm using the AWS Alexa for Business Go SDK and while there are functions for CreateContact, DeleteContact, GetContact, SearchContacts, there isn't a function for ListContacts while there are List APIs for other objects ListConferenceProviders.

https://docs.aws.amazon.com/sdk-for-go/api/service/alexaforbusiness/

How can one get a list of contacts for Alexa for Business?

Grokify
  • 15,092
  • 6
  • 60
  • 81

1 Answers1

0

While there isn't a ListContacts API, the SearchContacts API can be used with an empty filter slice in SearchContactsInput as follows:

resp, err := svc.SearchContacts(
    &alexaforbusiness.SearchContactsInput{})

For testing purposes, it will also work to have a Filter with an empty Values slice, even if Key is populated.

Grokify
  • 15,092
  • 6
  • 60
  • 81