Method: GatherContent::Api::Item#save
- Defined in:
- lib/gather_content/api/item.rb
#save(config) ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'lib/gather_content/api/item.rb', line 18 def save(config) encoded = Base64.strict_encode64(config.to_json) result = post_json({config: encoded}, "#{path}/save") if result.status == 202 true else raise GatherContent::Error::RequestError.new(result) end end |