Amazon.SimpleNotificationService.AmazonSimpleNotificationServiceClient.ListEndpointsByPlatformApplication C# (CSharp) Method

ListEndpointsByPlatformApplication() public method

Lists the endpoints and endpoint attributes for devices in a supported push notification service, such as GCM and APNS. The results for ListEndpointsByPlatformApplication are paginated and return a limited list of endpoints, up to 100. If additional records are available after the first page results, then a NextToken string will be returned. To receive the next page, you call ListEndpointsByPlatformApplication again using the NextToken string received from the previous call. When there are no more records to return, NextToken will be null. For more information, see Using Amazon SNS Mobile Push Notifications.
/// Indicates that the user has been denied access to the requested resource. /// /// Indicates an internal service error. /// /// Indicates that a request parameter does not comply with the associated constraints. /// /// Indicates that the requested resource does not exist. ///
public ListEndpointsByPlatformApplication ( ListEndpointsByPlatformApplicationRequest request ) : ListEndpointsByPlatformApplicationResponse
request Amazon.SimpleNotificationService.Model.ListEndpointsByPlatformApplicationRequest Container for the necessary parameters to execute the ListEndpointsByPlatformApplication service method.
return Amazon.SimpleNotificationService.Model.ListEndpointsByPlatformApplicationResponse
        public ListEndpointsByPlatformApplicationResponse ListEndpointsByPlatformApplication(ListEndpointsByPlatformApplicationRequest request)
        {
            var marshaller = new ListEndpointsByPlatformApplicationRequestMarshaller();
            var unmarshaller = ListEndpointsByPlatformApplicationResponseUnmarshaller.Instance;

            return Invoke<ListEndpointsByPlatformApplicationRequest,ListEndpointsByPlatformApplicationResponse>(request, marshaller, unmarshaller);
        }

Usage Example

        private IEnumerable<Endpoint> ListEndpoints(string applicationarn)
        {
            using (var snsclient = new AmazonSimpleNotificationServiceClient(_accesskey, _secretkey))
            {

                    var result = snsclient.ListEndpointsByPlatformApplication(new ListEndpointsByPlatformApplicationRequest()
                    {
                        PlatformApplicationArn = applicationarn

                    });

                return result.Endpoints;
            }
        }
All Usage Examples Of Amazon.SimpleNotificationService.AmazonSimpleNotificationServiceClient::ListEndpointsByPlatformApplication
AmazonSimpleNotificationServiceClient