cloudflare / cloudflare-php

PHP library for the Cloudflare v4 API
BSD 3-Clause "New" or "Revised" License
621 stars 222 forks source link

Add support for Certificate Transparency Monitoring #211

Open beltofte opened 2 years ago

beltofte commented 2 years ago

This patch add two new methods for getting and updating the beta feature Certificate Transparency Monitoring configuration.

Usage:

Enable: $certificates->updateCertificateTransparencyMonitoring($zoneId, true, ['email@example.com','email@cloudflare.com']);

Disable: $certificates->updateCertificateTransparencyMonitoring($zoneId, false);

Get existing configuration: $certificates->getCertificateTransparencyMonitoring($zoneId);