guardian / exact-target-lists

Placeholder description: @regiskuckaertz created this with repo-genesis

Github

exact-target-lists

A small library for creating and deleting email lists via the Exact Target SOAP api.

Usage

import com.gu.exact_target_lists.{ExactTargetConfig, ExactTargetLists}
import com.gu.exact_target_lists.models.ExactTargetError

val lists = new ExactTargetLists(
  ExactTargetConfig(
    username = ???,
    password = ???,
    folderId = ???,
    endpoint = ???,
    clientId = ???
  )
)

val createResult: Either[ExactTargetError, Int] = lists.createExactTargetList("Test", Some("A test list"))
val deleteResult: Either[ExactTargetError, Int] = createResult.flatMap(listId => lists.deleteExactTargetList(listId))