/** * @param $padId * @param $apiKey * @param string $host * @return int|false */ public static function getLastEdited($padId, $apiKey, $host = 'http://localhost:9001') { $client = new Client($apiKey, $host); try { $response = $client->getLastEdited($padId); } catch (\Exception $e) { return false; } if ($response->getCode() == Response::CODE_OK) { return $response->getData()['lastEdited'] / 1000; } else { return false; } }