hook-api\ListWebHooks.php
<?php

Get All WebHooks Sample

Use this call to list all the webhooks, as documented here at: http://dev.blockcypher.com/#webhooks API used: GET /v1/btc/main/hooks?token=

require __DIR__ . '/../bootstrap.php'; $webHookClient = new \BlockCypher\Client\WebHookClient($apiContexts['BTC.main']);

Get List of All WebHooks

try { $output = $webHookClient->getAll(); } catch (Exception $ex) { ResultPrinter::printError("List all WebHooks", "Array of WebHook", null, null, $ex); exit(1); } ResultPrinter::printResult("List all WebHooks", "Array of WebHook", null, null, $output); return $output;