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

Importing tld's - Solution. #1

Open
exp0logy opened this issue Jul 8, 2022 · 1 comment
Open

Importing tld's - Solution. #1

exp0logy opened this issue Jul 8, 2022 · 1 comment

Comments

@exp0logy
Copy link

exp0logy commented Jul 8, 2022

I've implemented importing tld's for this plugin.

Can we add it please?

@exp0logy
Copy link
Author

exp0logy commented Jul 8, 2022

public function getTLDsAndPrices() { $tlds = []; $response = $this->makeRequest('getDomainPricing', [], []); foreach ($response->pricing as $obj) { $tld = '.' . $obj->tld; $tlds[$tld]['pricing']['register'] = $obj->register_1_year; $tlds[$tld]['pricing']['transfer'] = $obj->transfer; $tlds[$tld]['pricing']['renew'] = $obj->renew; } return $tlds; }

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