Home > PHP > Function > SAM > SAMConnection->unsubscribe()

SAMConnection->unsubscribe()

SAMConnection->unsubscribe - Cancel a subscription to a specified topic.

Syntax

bool SAMConnection->unsubscribe (string $subscriptionId, string $targetTopic)

Arguments

  • subscriptionId - The identifier of an existing subscription as returned by a call to the subscribe method.
  • targetTopic

Description

The "unsubscribe" method is used to delete an existing subscription to a specified topic.

Version

PHP PECL sam >= 0.1.0

Return value

This method returns FALSE if an error occurs.