class Aircall::Contacts
Public Instance Methods
get_all(page: 1, per_page: 5, order: "asc", order_by: "created_at", from: nil, to: nil)
click to toggle source
# File lib/aircall/contacts.rb, line 5 def get_all(page: 1, per_page: 5, order: "asc", order_by: "created_at", from: nil, to: nil) get(construct_request_with_arguments("/contacts", binding)) end
get_by_email(email, page: 1, per_page: 5, order: "asc", order_by: "created_at", from: nil, to: nil)
click to toggle source
# File lib/aircall/contacts.rb, line 13 def get_by_email(email, page: 1, per_page: 5, order: "asc", order_by: "created_at", from: nil, to: nil) get(construct_request_with_arguments("/contacts/search", binding)) end
get_by_id(contact_id)
click to toggle source
# File lib/aircall/contacts.rb, line 9 def get_by_id(contact_id) get("/contacts/#{contact_id}") end
get_by_phone_number(phone_number, page: 1, per_page: 5, order: "asc", order_by: "created_at", from: nil, to: nil)
click to toggle source
# File lib/aircall/contacts.rb, line 17 def get_by_phone_number(phone_number, page: 1, per_page: 5, order: "asc", order_by: "created_at", from: nil, to: nil) get(construct_request_with_arguments("/contacts/search", binding)) end