class ReamazeAPI::Contact
Public Instance Methods
all(params = {})
click to toggle source
Public: Retrieve contacts.
params - Hash of parameters to pass to the API
API Routes
GET /contacts
See also: www.reamaze.com/api/get_contacts
Returns a Hash.
# File lib/reamaze_api/contact.rb, line 14 def all(params = {}) paginate "/contacts", :contacts, params end
create(params)
click to toggle source
Public: Create a new contact.
params - Hash of parameters to pass to the API
API Routes
POST /contacts
See also: www.reamaze.com/api/post_contacts
Returns a Hash.
# File lib/reamaze_api/contact.rb, line 29 def create(params) post "/contacts", params end
update(slug, params)
click to toggle source
Public: Update an existing contact.
slug - Contact
slug (email) params - Hash of parameters to pass to the API
API Routes
PUT /contacts/{slug}
See also: www.reamaze.com/api/put_contacts
Returns a Hash.
# File lib/reamaze_api/contact.rb, line 45 def update(slug, params) put "/contacts/#{slug}", params end