com.ecwid.mailchimp.connection
Interface MailChimpConnectionManager

All Superinterfaces:
Closeable
All Known Implementing Classes:
HttpClientConnectionManager, JavaNetURLConnectionManager

public interface MailChimpConnectionManager
extends Closeable

Abstract connection manager to access MailChimp API service point.

Author:
Vasily Karyaev

Method Summary
 String post(String url, String payload)
          Make a POST request to MailChimp API service point.
 
Methods inherited from interface java.io.Closeable
close
 

Method Detail

post

String post(String url,
            String payload)
            throws IOException
Make a POST request to MailChimp API service point.

Parameters:
url - URL to post data to
payload - data to post
Returns:
service endpoint response body if the response was successful (a 2xx status code)
Throws:
IOException - if an I/O error occurred during the communication, or if the service point response was unsuccessful (>= 300 status code)


Copyright © 2012-2014 Ecwid, Inc. All Rights Reserved.