Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZoneSettings missing Get all Zone settings method #166

Open
Byidi opened this issue Mar 18, 2021 · 0 comments
Open

ZoneSettings missing Get all Zone settings method #166

Byidi opened this issue Mar 18, 2021 · 0 comments

Comments

@Byidi
Copy link

Byidi commented Mar 18, 2021

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;
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant