Return nextToken in subscriber list methods
Previously the listSubscriptions and listSubscriptionsByTopic methods had no way of returning a nextToken if one existed. Now the method returns an array of members and nextToken elements like so:
$result = $sns->listSubscriptions();
print_r($result);
/*
Array
(
[members] => Array
(
[0] => Array
(
[Owner] => ...
[Endpoint] => ...
[Protocol] => ...
[SubscriptionArn] => ...
[TopicArn] => ...
)
)
[nextToken] => ... // This is only set if a nextToken was returned from Amazon
)
*/
// Fetch the next page of results
$sns->listSubscriptions($result['nextToken']);