Tabnine Logo
NewsletterPublisher.putCampaignContent
Code IndexAdd Tabnine to your IDE (free)

How to use
putCampaignContent
method
in
com.novoda.enews.NewsletterPublisher

Best Java code snippets using com.novoda.enews.NewsletterPublisher.putCampaignContent (Showing top 1 results out of 315)

origin: novoda/spikes

public void publish(String html, LocalDateTime atLocalDateTime) {
  Response<ApiCampaignResult> campaignResultResponse = postCampaign();
  if (campaignResultResponse.isSuccessful()) {
    String id = campaignResultResponse.body().id;
    putCampaignContent(id, html);
    scheduleNewsletter(id, atLocalDateTime);
  } else {
    ResponseBody responseBody = campaignResultResponse.errorBody();
    try {
      System.err.println(responseBody.string());
    } catch (IOException e) {
      throw new IllegalStateException("We failed to debug.", e);
    }
    throw new IllegalStateException("We failed " + campaignResultResponse.code());
  }
}
com.novoda.enewsNewsletterPublisherputCampaignContent

Popular methods of NewsletterPublisher

  • publish
  • <init>
  • postCampaign
  • scheduleNewsletter

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getResourceAsStream (ClassLoader)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getApplicationContext (Context)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JList (javax.swing)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now