cloudflare / cloudflare/cloudflare-php
ZoneSettings missing Get all Zone settings method
- Dominant language
- PHP
- Stars
- 674
- Forks
- 268
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I need to get all the settings for a specific zone, like this endpoint [#zone-settings-properties](https://api.cloudflare.com/#zone-settings-properties).
Which I initially search for in the ZoneSettings class, but I didn't seems to be in this class, neither in the rest of the code.
Is it really missing? Do you plan to add it ?
I was able to get the wanted result by adding this to the ZoneSettings class:
```php
public function getSettings($zoneID)
{
$return = $this->adapter->get(
'zones/' . $zoneID . '/settings/'
);
$body = json_decode($return->getBody());
if ($body->success) {
return $body->result;
}
return false;
}
Contributor guide
Assessment
This issue has not been assessed yet.