public function unsubscribe($applicationName, $eventSource)
    {
        $uri = "applications/$applicationName/subscription?eventSource=".\GuzzleHttp\json_encode($eventSource);
        try {
            $response = $this->client->getEndpoint()->delete($uri);
        } catch (RequestException $e) {
            $this->processRequestException($e);
        }

        return new Application($this->client, \GuzzleHttp\json_decode($response->getBody()));
    }
public function unsubscribe($applicationName, $eventSource)
    {
        $uri = "applications/$applicationName/subscription?eventSource=".\GuzzleHttp\json_encode($eventSource);
        try {
            $response = $this->client->getEndpoint()->delete($uri);
        } catch (RequestException $e) {
            $this->processRequestException($e);
        }

        return new Application($this->client, \GuzzleHttp\json_decode($response->getBody()));
    }
public function unsubscribe ( $ applicationName , $ eventSource ) { $ uri = "applications/$applicationName/subscription?eventSource=" . \ GuzzleHttp \ json_encode ( $ eventSource ) ; try { $ response = $ this -> client -> getEndpoint ( ) -> delete ( $ uri ) ; } catch ( RequestException $ e ) { $ this -> processRequestException ( $ e ) ; } return new Application ( $ this -> client , \ GuzzleHttp \ json_decode ( $ response -> getBody ( ) ) ) ; }
Unsubscribe an application from an event source. Returns the state of the application after the subscriptions have changed

@param string $applicationName Application's name
@param string $eventSource (required) URI for event source (channel:{channelId}, bridge:{bridgeId}, endpoint:{tech}[/{resource}], deviceState:{deviceName}  Allows comma separated values.
@return Application
@throws ConflictException
@throws InvalidParameterException
@throws NotFoundException
@throws UnprocessableEntityException
Unsubscribe an application from an event source . Returns the state of the application after the subscriptions have changed