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

zone_list doesn't work #13

Closed
davidhq opened this issue Sep 6, 2015 · 3 comments
Closed

zone_list doesn't work #13

davidhq opened this issue Sep 6, 2015 · 3 comments

Comments

@davidhq
Copy link

davidhq commented Sep 6, 2015

/Users/david/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/cloudflare-2.0.3/lib/cloudflare/connection.rb:549:in `send_req': Invalid act. (CloudFlare::RequestError)
    from /Users/david/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/cloudflare-2.0.3/lib/cloudflare/connection.rb:516:in `zone_list'
    from ./cf.rb:6:in `<main>'

Minimal sample:

cf = CloudFlare::connection('xxxxxx', 'user@gmail.com')

p cf.zone_list

@morganchristiansson
Copy link

Getting the same thing +1

@pencoyd
Copy link
Collaborator

pencoyd commented Dec 1, 2015

Unclear if the author is maintaining, but I'd suggest moving to the current API (v4) at https://api.cloudflare.com regardless

@infinite-monkeys
Copy link

The zone_list is part of the cloudflare "host" API.

Each of the method calls has a pointer to the docs. In this case, https://www.cloudflare.com/docs/host-api.html#s3.2.10

Take a look at https://github.com/b4k3r/cloudflare/blob/master/lib/cloudflare/connection.rb#L528. If you initialize your CloudFlare::connection with an email, it will use the client API.

#zone_load_multi may give you the equivalent information that as what you're looking for.

HTH.

@b4k3r b4k3r closed this as completed May 17, 2016
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

5 participants