Unofficial PHP API for HeyUpdate.com
This requires PHP 5.3 or later and a valid API key.
require_once('HeyUpdateAPI.php')
$hey = new HeyUpdateAPI("<<YOUR TOKEN>>", "https://api.heyupdate.com");
The default behaviour of the API is to return 7 days of updates:
$updates = $hey->Updates()->getRes();
Use UpdatesByPeriod to get custom date ranges. Supports 'day', 'week' and 'month'.
$day = $hey->UpdatesByPeriod("day")->getRes();
$week = $hey->UpdatesByPeriod("week")->getRes();
$month = $hey->UpdatesByPeriod("month")->getRes();
$filter_email = $hey->UpdatesByPeriod("month")->filterByEmail("hey@update.com")->getRes();
$filter_name = $hey->UpdatesByPeriod("month")->filterByName("sam hermans")->getRes();