-
Notifications
You must be signed in to change notification settings - Fork 235
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
Add Account Id To Zone Creation #195
Add Account Id To Zone Creation #195
Conversation
According to the docs, this is a required parameter
The linter correctly pointed out that we had too many public methods on this class
TY linter
src/Endpoints/Zones.php
Outdated
@@ -30,7 +30,7 @@ public function __construct(Adapter $adapter) | |||
* @param string $organizationID | |||
* @return \stdClass | |||
*/ | |||
public function addZone(string $name, bool $jumpStart = false, string $organizationID = ''): \stdClass | |||
public function addZone(string $name, bool $jumpStart = false, string $organizationID = '', string $accountId = ''): \stdClass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here, organizationID
is the same as accountID
; the terminology has just changed internally to better represent the entity. i'm happy to support a rename here instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the heads up! I've pushed some changes and left the organization->id
setting in the body for backwards compatibility
This was a misunderstanding by me, these are actually the same thing
I missed updating this in my previous commit
I didn't remove the extra parameter I added earlier due too a terminology change
It seems accounts have superceeded this
@jacobbednarz thanks for all the feedback! I think I've addressed everything |
awesome stuff! thanks! |
According to the docs, this is a required parameter.
Closes #189