예제 #1
0
 /**
  * Deletes the custom field with the specified key
  *
  * @param fieldKey The <em>Key</em> of the custom field to delete. This must be surrounded by [].
  * @throws CreateSendException Thrown when the API responds with HTTP Status >= 400
  * @see <a href="http://www.campaignmonitor.com/api/lists/#deleting_a_custom_field"
  *     target="_blank"> Deleting a custom field</a>
  */
 public void deleteCustomField(String fieldKey) throws CreateSendException {
   client.delete("lists", listID, "customFields", fieldKey + ".json");
 }
예제 #2
0
 /**
  * Deletes the specified webhook
  *
  * @param webhookID The ID of the webhook to delete
  * @throws CreateSendException Raised when the API responds with HTTP Status >= 400
  * @see <a href="http://www.campaignmonitor.com/api/lists/#deleting_a_webhook" target="_blank">
  *     Deleting a webhook</a>
  */
 public void deleteWebhook(String webhookID) throws CreateSendException {
   client.delete("lists", listID, "webhooks", webhookID + ".json");
 }
예제 #3
0
 /**
  * Deletes the list with the specified ID
  *
  * @throws CreateSendException Thrown when the API responds with a HTTP Status >= 400
  * @see <a href="http://www.campaignmonitor.com/api/lists/#deleting_a_list" target="_blank">
  *     Deleting a list</a>
  */
 public void delete() throws CreateSendException {
   client.delete("lists", listID + ".json");
 }