Method: Dnsimple::Client::Contacts#all_contacts

Defined in:
lib/dnsimple/client/contacts.rb

#all_contacts(account_id, options = {}) ⇒ Dnsimple::CollectionResponse<Dnsimple::Struct::Contact> Also known as: all

Lists ALL the contacts in the account.

This method is similar to #contacts, but instead of returning the results of a specific page it iterates all the pages and returns the entire collection.

Please use this method carefully, as fetching the entire collection will increase the number of requests you send to the API server and you may eventually risk to hit the throttle limit.

Parameters:

  • account_id (Fixnum)

    the account ID

  • options (Hash) (defaults to: {})

    the filtering and sorting option

Returns:

Raises:

See Also:



45
46
47
# File 'lib/dnsimple/client/contacts.rb', line 45

def all_contacts(, options = {})
  paginate(:contacts, , options)
end