SendWithUs { public DeactivatedDrips deactivateDrips(String customerEmailAddress) throws SendWithUsException { Map<String, Object> sendParams = new HashMap<String, Object>(); sendParams.put("email_address", customerEmailAddress); String url = getURLEndpoint("drip_campaigns/deactivate"); String response = makeURLRequest(url, "POST", sendParams); Gson gson = new Gson(); return gson.fromJson(response, DeactivatedDrips.class); } SendWithUs(String apiKey);  SendWithUs(String apiKey, SendWithUsApiLocation sendWithUsApiLocation); @Deprecated Email[] emails(); Email[] templates(); Email template(String templateId); Email template(String templateId, String locale); TemplateVersionDetails templateVersion(String templateId, String versionId); TemplateVersionDetails templateVersion(String templateId, String versionId, String locale); SendReceipt send(String emailId, Map<String, Object> recipient,
            Map<String, Object> emailData); SendReceipt send(String emailId, Map<String, Object> recipient,
            Map<String, Object> sender, Map<String, Object> emailData); SendReceipt send(String emailId, Map<String, Object> recipient,
            Map<String, Object> sender, Map<String, Object> emailData,
            Map<String, Object>[] cc); SendReceipt send(String emailId, Map<String, Object> recipient,
            Map<String, Object> sender, Map<String, Object> emailData,
            Map<String, Object>[] cc, Map<String, Object>[] bcc); SendReceipt send(String emailId, Map<String, Object> recipient,
            Map<String, Object> sender, Map<String, Object> emailData,
            Map<String, Object>[] cc, Map<String, Object>[] bcc,
            String[] attachment_paths); SendReceipt send(String emailId, Map<String, Object> recipient,
            Map<String, Object> sender, Map<String, Object> emailData,
            Map<String, Object>[] cc, Map<String, Object>[] bcc,
            String[] attachment_paths, String espAccount); SendReceipt send(String emailId, Map<String, Object> recipient,
                            Map<String, Object> sender, Map<String, Object> emailData,
                            Map<String, Object>[] cc, Map<String, Object>[] bcc,
                            String[] attachment_paths, String espAccount,
                            String locale); SendReceipt send(String emailId, Map<String, Object> recipient,
                            Map<String, Object> sender, Map<String, Object> emailData,
                            Map<String, Object>[] cc, Map<String, Object>[] bcc,
                            String[] attachment_paths, String espAccount,
                            String locale, Map<String, String> headers); SendReceipt send(SendWithUsSendRequest request); RenderedTemplate render(String templateId,
            Map<String, Object> templateData); ActivatedDrip startOnDripCampaign(String dripCampaignId, SendWithUsDripRequest dripRequest); DeactivatedDrip removeFromDripCampaign(String customerEmailAddress, String dripCampaignId ); DeactivatedDrips deactivateDrips(String customerEmailAddress); CustomerReceipt createUpdateCustomer(String customerEmailAddress,
            Map<String, Object> customerData); SendReceipt resend(String logId); Snippet[] getSnippets(); Snippet getSnippet(String snippetId); SnippetReceipt createSnippet(String name, String body); SnippetReceipt updateSnippet(String snippetId, String name, String body); APIReceipt deleteSnippet(String snippetId); static final String CLIENT_VERSION; static final String CLIENT_LANG; static final String SWU_API_HEADER; static final String SWU_CLIENT_HEADER; }
@Test public void testDeactivateAllDrips() throws Exception { DeactivatedDrips receipt = sendwithusAPI.deactivateDrips(TEST_RECIPIENT_ADDRESS); assertSuccessfulAPIResponse(receipt); }