Esempio n. 1
0
 /**
  * Updates the available options for a Multi-Valued custom field.
  *
  * @param fieldKey The <em>Key</em> of the custom field to update. This must be surrounded by [].
  * @param options The new options to use for the field.
  * @throws CreateSendException Raised when the API responds with HTTP Status >= 400
  * @see <a href="http://www.campaignmonitor.com/api/lists/#updating_custom_field_options"
  *     target="_blank"> Updating custom field options</a>
  */
 public void updateCustomFieldOptions(String fieldKey, UpdateFieldOptions options)
     throws CreateSendException {
   client.put(options, "lists", listID, "customFields", fieldKey, "options.json");
 }
Esempio n. 2
0
 /**
  * Deactivates the specified webhook.
  *
  * @param webhookID The ID of the webhook to deactivate
  * @throws CreateSendException Thrown when the API responds with HTTP Status >= 400
  * @see <a href="http://www.campaignmonitor.com/api/lists/#deactivating_a_webhook"
  *     target="_blank"> Activating a webhook</a>
  */
 public void deactivateWebhook(String webhookID) throws CreateSendException {
   client.put("", "lists", listID, "webhooks", webhookID, "activate.json");
 }
Esempio n. 3
0
 /**
  * Updates the basic list details for an existing subscriber list
  *
  * @param list The new basic details for the list
  * @throws CreateSendException Thrown when the API responds with a HTTP Status >= 400
  * @see <a href="http://www.campaignmonitor.com/api/lists/#updating_a_list" target="_blank">
  *     Updating a list</a>
  */
 public void update(List list) throws CreateSendException {
   client.put(list, "lists", listID + ".json");
 }