ZoneSettings missing Get all Zone settings method
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
Research direction
Start in the ZoneSettings class and compare its existing methods with the Cloudflare zone-settings-properties endpoint linked in the issue. Verify the requested get-all-settings behavior and inspect nearby API method patterns before determining the needed coverage. Done means the library exposes this zone settings request consistently and its response behavior is verified.
Written by the indexing model from the issue text.
Description
Hi,
I need to get all the settings for a specific zone, like this endpoint #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:
public function getSettings($zoneID)
{
$return = $this->adapter->get(
'zones/' . $zoneID . '/settings/'
);
$body = json_decode($return->getBody());
if ($body->success) {
return $body->result;
}
return false;
}
- Dominant language
- PHP
- Stars
- 674
- Forks
- 268
- PR merge metrics
- No merged PRs in 30d
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cloudflare/cloudflare-php
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
cloudflare/cloudflare-php#202 · 1 reaction ·
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
cloudflare/cloudflare-php#156 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
cloudflare/cloudflare-php#278 · 5 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
cloudflare/cloudflare-php#272 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
cloudflare/cloudflare-php#264 ·
All issues in cloudflare/cloudflare-php
Similar issues
-
Toolkit
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
[Bug] v-quick-install-app install crashes with ValueError if no supported PHP version is installedOpen
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
langgenius/dify#43074 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
module: remove unused css
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
backdrop-contrib/field_group#99 · 2 comments ·