Releases: chrisbarr/AmazonSNS-PHP-API
Releases · chrisbarr/AmazonSNS-PHP-API
Able to set custom endpoints and update available regions
Make $userData an optional parameter in createPlatformEndpoint()
Merge pull request #17 from chrisharrison/master Fixed an incorrect return type and removed restriction on optional parameter
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']);
1.5.0
1.4.0
1.3.0
1.2.0
Composer support
1.0.0 Add composer support, update readme and minor tweaks - tag 1.0.0