Skip to content

/AWS1/CL_SNS=>LISTPHONENUMBERSOPTEDOUT()

About ListPhoneNumbersOptedOut

Returns a list of phone numbers that are opted out, meaning you cannot send SMS messages to them.

The results for ListPhoneNumbersOptedOut are paginated, and each page returns up to 100 phone numbers. If additional phone numbers are available after the first page of results, then a NextToken string will be returned. To receive the next page, you call ListPhoneNumbersOptedOut again using the NextToken string received from the previous call. When there are no more records to return, NextToken will be null.

Method Signature

IMPORTING

Optional arguments:

IV_NEXTTOKEN TYPE /AWS1/SNSSTRING /AWS1/SNSSTRING

A NextToken string is used when you call the ListPhoneNumbersOptedOut action to retrieve additional records that are available after the first page of results.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_SNSLSTPHONENOSOPTED01 /AWS1/CL_SNSLSTPHONENOSOPTED01