public function updateWebhook($identifier, $newUrl = null, $newIdentifier = null) {
        $putData = [
            'url'        => $newUrl,
            'identifier' => $newIdentifier
        ];
        $response = $this->blocktrailClient->put("webhook/{$identifier}", null, $putData, RestClient::AUTH_HTTP_SIG);
        return self::jsonDecode($response->body(), true);
    }
public function updateWebhook($identifier, $newUrl = null, $newIdentifier = null) {
        $putData = [
            'url'        => $newUrl,
            'identifier' => $newIdentifier
        ];
        $response = $this->blocktrailClient->put("webhook/{$identifier}", null, $putData, RestClient::AUTH_HTTP_SIG);
        return self::jsonDecode($response->body(), true);
    }
public function updateWebhook ( $ identifier , $ newUrl = null , $ newIdentifier = null ) { $ putData = [ 'url' => $ newUrl , 'identifier' => $ newIdentifier ] ; $ response = $ this -> blocktrailClient -> put ( "webhook/{$identifier}" , null , $ putData , RestClient :: AUTH_HTTP_SIG ) ; return self :: jsonDecode ( $ response -> body ( ) , true ) ; }
update an existing webhook
@param  string  $identifier      the unique identifier of the webhook to update
@param  string  $newUrl          the new url to receive the webhook events
@param  string  $newIdentifier   a new unique identifier to associate with this webhook
@return array                    associative array containing the response
update an existing webhook