Method: MailChimp3::Endpoint#post
- Defined in:
- lib/mailchimp3/endpoint.rb
#post(body = {}) ⇒ Object
32 33 34 35 36 37 38 |
# File 'lib/mailchimp3/endpoint.rb', line 32 def post(body = {}) @last_result = _connection.post(@url) do |req| body[:apikey] = @oauth_access_token || @basic_auth_key if @version == 2 req.body = body.to_json end _build_response(@last_result) end |