Unsubscribe Method
Unsubscribes from the topic.
Object Oriented Interface
public function doUnsubscribe($subscriptionarn);
Procedural Interface
inamazon_sns_do_unsubscribe($res, $subscriptionarn);
Remarks
This method deletes a subscription to a topic. The subscription is identified by the SubscriptionArn parameter.
If the subscription requires authentication for deletion, only the subscription owner or topic owner can unsubscribe. If authentication is not required a cancellation notice is sent to the endpoint, so that the endpoint owner can re-subscribe if the unsubscribe request was unintentional.