module Voog::API::Texts
Public Instance Methods
text(id, params = {})
click to toggle source
Get a single text content
@see www.voog.com/developers/api/resources/texts#get_text
# File lib/voog_api/api/texts.rb, line 19 def text(id, params = {}) get "texts/#{id}", {query: params} end
texts(params = {})
click to toggle source
List text contents
@see www.voog.com/developers/api/resources/texts#get_texts
# File lib/voog_api/api/texts.rb, line 12 def texts(params = {}) paginate 'texts', {query: params} end
update_text(id, data)
click to toggle source
Update a text content
@see www.voog.com/developers/api/resources/texts#update_text
# File lib/voog_api/api/texts.rb, line 26 def update_text(id, data) put "texts/#{id}", data end