public function subscribeNewBlocks($identifier) {
        $postData = [
            'event_type'    => 'block',
        ];
        $response = $this->blocktrailClient->post("webhook/{$identifier}/events", null, $postData, RestClient::AUTH_HTTP_SIG);
        return self::jsonDecode($response->body(), true);
    }
public function subscribeNewBlocks($identifier) {
        $postData = [
            'event_type'    => 'block',
        ];
        $response = $this->blocktrailClient->post("webhook/{$identifier}/events", null, $postData, RestClient::AUTH_HTTP_SIG);
        return self::jsonDecode($response->body(), true);
    }
public function subscribeNewBlocks ( $ identifier ) { $ postData = [ 'event_type' => 'block' , ] ; $ response = $ this -> blocktrailClient -> post ( "webhook/{$identifier}/events" , null , $ postData , RestClient :: AUTH_HTTP_SIG ) ; return self :: jsonDecode ( $ response -> body ( ) , true ) ; }
subscribes a webhook to a new block event
@param  string  $identifier  the unique identifier of the webhook to be triggered
@return array                associative array containing the response
subscribes a webhook to a new block event