|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.createsend.CreateSendBase
com.createsend.Lists
public class Lists
Provides methods for accessing all List resources in the Campaign Monitor API *
Field Summary |
---|
Fields inherited from class com.createsend.CreateSendBase |
---|
jerseyClient, urlEncodingScheme |
Constructor Summary | |
---|---|
Lists(AuthenticationDetails auth)
Constructor used to create new lists. |
|
Lists(AuthenticationDetails auth,
java.lang.String listID)
Constructor for working with existing lists. |
Method Summary | |
---|---|
void |
activateWebhook(java.lang.String webhookID)
Activates the specified webhook. |
PagedResult<Subscriber> |
active()
Gets a paged collection of active subscribers who have subscribed to the list. |
PagedResult<Subscriber> |
active(java.util.Date subscribedFrom,
java.lang.Integer page,
java.lang.Integer pageSize,
java.lang.String orderField,
java.lang.String orderDirection)
Gets a paged collection of active subscribers who have subscribed to the list since the provided date. |
PagedResult<Subscriber> |
active(java.lang.Integer page,
java.lang.Integer pageSize,
java.lang.String orderField,
java.lang.String orderDirection)
Gets a paged collection of active subscribers who have subscribed to the list. |
PagedResult<Subscriber> |
bounced()
Gets a paged collection of bounced subscribers who have bounced out of the list. |
PagedResult<Subscriber> |
bounced(java.util.Date subscribedFrom,
java.lang.Integer page,
java.lang.Integer pageSize,
java.lang.String orderField,
java.lang.String orderDirection)
Gets a paged collection of bounced subscribers who have bounced out of the list since the provided date. |
PagedResult<Subscriber> |
bounced(java.lang.Integer page,
java.lang.Integer pageSize,
java.lang.String orderField,
java.lang.String orderDirection)
Gets a paged collection of bounced subscribers who have bounced out of the list. |
java.lang.String |
create(java.lang.String clientID,
List list)
Creates a new empty subscriber list. |
java.lang.String |
createCustomField(CustomFieldForCreate customField)
Creates a new custom field with the specified data |
java.lang.String |
createWebhook(Webhook webhook)
Creates a new webhook on the specified list. |
CustomField[] |
customFields()
Gets the custom fields available for the list with the specified ID |
void |
deactivateWebhook(java.lang.String webhookID)
Deactivates the specified webhook. |
void |
delete()
Deletes the list with the specified ID |
void |
deleteCustomField(java.lang.String fieldKey)
Deletes the custom field with the specified key |
PagedResult<Subscriber> |
deleted()
Gets a paged collection of subscribers who have been deleted from the list. |
PagedResult<Subscriber> |
deleted(java.util.Date subscribedFrom,
java.lang.Integer page,
java.lang.Integer pageSize,
java.lang.String orderField,
java.lang.String orderDirection)
Gets a paged collection of subscribers who have been deleted from the list since the provided date. |
PagedResult<Subscriber> |
deleted(java.lang.Integer page,
java.lang.Integer pageSize,
java.lang.String orderField,
java.lang.String orderDirection)
Gets a paged collection of subscribers who have been deleted from the list. |
void |
deleteWebhook(java.lang.String webhookID)
Deletes the specified webhook |
List |
details()
Gets the details of the list with the given ID |
java.lang.String |
getListID()
Gets the current list ID. |
Segment[] |
segments()
Gets the segments available in the list with the specified ID |
void |
setListID(java.lang.String listID)
Sets the current list ID. |
Statistics |
stats()
Gets subscriber statistics for the list with the specified ID |
void |
testWebhook(java.lang.String webhookID)
Tests the specified webhook |
PagedResult<Subscriber> |
unconfirmed()
Gets a paged collection of unconfirmed subscribers who have subscribed to the list. |
PagedResult<Subscriber> |
unconfirmed(java.util.Date subscribedFrom,
java.lang.Integer page,
java.lang.Integer pageSize,
java.lang.String orderField,
java.lang.String orderDirection)
Gets a paged collection of unconfirmed subscribers who have subscribed to the list since the provided date. |
PagedResult<Subscriber> |
unconfirmed(java.lang.Integer page,
java.lang.Integer pageSize,
java.lang.String orderField,
java.lang.String orderDirection)
Gets a paged collection of unconfirmed subscribers who have subscribed to the list. |
PagedResult<Subscriber> |
unsubscribed()
Gets a paged collection of unsubscribed subscribers who have unsubscribed from the list. |
PagedResult<Subscriber> |
unsubscribed(java.util.Date subscribedFrom,
java.lang.Integer page,
java.lang.Integer pageSize,
java.lang.String orderField,
java.lang.String orderDirection)
Gets a paged collection of unsubscribed subscribers who have unsubscribed from the list since the provided date. |
PagedResult<Subscriber> |
unsubscribed(java.lang.Integer page,
java.lang.Integer pageSize,
java.lang.String orderField,
java.lang.String orderDirection)
Gets a paged collection of unsubscribed subscribers who have unsubscribed from the list. |
void |
update(ListForUpdate list)
Updates the basic list details for an existing subscriber list |
java.lang.String |
updateCustomField(java.lang.String fieldKey,
CustomFieldForUpdate customField)
Updates a new custom field. |
void |
updateCustomFieldOptions(java.lang.String fieldKey,
UpdateFieldOptions options)
Updates the available options for a Multi-Valued custom field. |
Webhook[] |
webhooks()
Gets all webhooks which have been attached to events on the specified list |
Methods inherited from class com.createsend.CreateSendBase |
---|
refreshToken |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Lists(AuthenticationDetails auth)
auth
- The authentication details to use when making API calls.
May be either an OAuthAuthenticationDetails or
ApiKeyAuthenticationDetails instance.public Lists(AuthenticationDetails auth, java.lang.String listID)
auth
- The authentication details to use when making API calls.
May be either an OAuthAuthenticationDetails or
ApiKeyAuthenticationDetails instance.listID
- The List ID to use when making API calls.Method Detail |
---|
public void setListID(java.lang.String listID)
listID
- The ID of the list to apply any calls to.public java.lang.String getListID()
public java.lang.String create(java.lang.String clientID, List list) throws CreateSendException
clientID
- The ID of the client owning the new listlist
- The details of the new list
CreateSendException
- Thrown when the API responds with a HTTP Status >= 400public void update(ListForUpdate list) throws CreateSendException
list
- The new basic details for the list
CreateSendException
- Thrown when the API responds with a HTTP Status >= 400public void delete() throws CreateSendException
CreateSendException
- Thrown when the API responds with a HTTP Status >= 400public List details() throws CreateSendException
CreateSendException
- Raised when the API returns a HTTP Status >= 400public Statistics stats() throws CreateSendException
CreateSendException
- Raised when the API responds with HTTP status >= 400public CustomField[] customFields() throws CreateSendException
CreateSendException
- Raised when the API responds with HTTP Status >= 400public Segment[] segments() throws CreateSendException
CreateSendException
- Raised when the API responds with HTTP Status >= 400public PagedResult<Subscriber> active() throws CreateSendException
CreateSendException
- Thrown when the API responds with a HTTP Status >= 400public PagedResult<Subscriber> active(java.lang.Integer page, java.lang.Integer pageSize, java.lang.String orderField, java.lang.String orderDirection) throws CreateSendException
page
- The page number or results to get. Use null
for the default (page=1)pageSize
- The number of records to get on the current page. Use null
for the default.orderField
- The field used to order the results by. Use null
for the default.orderDirection
- The direction to order the results by. Use null
for the default.
CreateSendException
- Thrown when the API responds with a HTTP Status >= 400public PagedResult<Subscriber> active(java.util.Date subscribedFrom, java.lang.Integer page, java.lang.Integer pageSize, java.lang.String orderField, java.lang.String orderDirection) throws CreateSendException
subscribedFrom
- The API will only return subscribers who became active on or after this date.
This field is requiredpage
- The page number or results to get. Use null
for the default (page=1)pageSize
- The number of records to get on the current page. Use null
for the default.orderField
- The field used to order the results by. Use null
for the default.orderDirection
- The direction to order the results by. Use null
for the default.
CreateSendException
- Thrown when the API responds with a HTTP Status >= 400public PagedResult<Subscriber> unconfirmed() throws CreateSendException
CreateSendException
- Thrown when the API responds with a HTTP Status >= 400public PagedResult<Subscriber> unconfirmed(java.lang.Integer page, java.lang.Integer pageSize, java.lang.String orderField, java.lang.String orderDirection) throws CreateSendException
page
- The page number or results to get. Use null
for the default (page=1)pageSize
- The number of records to get on the current page. Use null
for the default.orderField
- The field used to order the results by. Use null
for the default.orderDirection
- The direction to order the results by. Use null
for the default.
CreateSendException
- Thrown when the API responds with a HTTP Status >= 400public PagedResult<Subscriber> unconfirmed(java.util.Date subscribedFrom, java.lang.Integer page, java.lang.Integer pageSize, java.lang.String orderField, java.lang.String orderDirection) throws CreateSendException
subscribedFrom
- The API will only return subscribers who subscribed on or after this date.
This field is requiredpage
- The page number or results to get. Use null
for the default (page=1)pageSize
- The number of records to get on the current page. Use null
for the default.orderField
- The field used to order the results by. Use null
for the default.orderDirection
- The direction to order the results by. Use null
for the default.
CreateSendException
- Thrown when the API responds with a HTTP Status >= 400public PagedResult<Subscriber> unsubscribed() throws CreateSendException
CreateSendException
- Thrown when the API responds with a HTTP Status >= 400public PagedResult<Subscriber> unsubscribed(java.lang.Integer page, java.lang.Integer pageSize, java.lang.String orderField, java.lang.String orderDirection) throws CreateSendException
page
- The page number or results to get. Use null
for the default (page=1)pageSize
- The number of records to get on the current page. Use null
for the default.orderField
- The field used to order the results by. Use null
for the default.orderDirection
- The direction to order the results by. Use null
for the default.
CreateSendException
- Thrown when the API responds with a HTTP Status >= 400public PagedResult<Subscriber> unsubscribed(java.util.Date subscribedFrom, java.lang.Integer page, java.lang.Integer pageSize, java.lang.String orderField, java.lang.String orderDirection) throws CreateSendException
subscribedFrom
- The API will only return subscribers who unsubscribed on or after this date.page
- The page number or results to get. Use null
for the default (page=1)pageSize
- The number of records to get on the current page. Use null
for the default.orderField
- The field used to order the results by. Use null
for the default.orderDirection
- The direction to order the results by. Use null
for the default.
CreateSendException
- Thrown when the API responds with a HTTP Status >= 400public PagedResult<Subscriber> deleted() throws CreateSendException
CreateSendException
- Thrown when the API responds with a HTTP Status >= 400public PagedResult<Subscriber> deleted(java.lang.Integer page, java.lang.Integer pageSize, java.lang.String orderField, java.lang.String orderDirection) throws CreateSendException
page
- The page number or results to get. Use null
for the default (page=1)pageSize
- The number of records to get on the current page. Use null
for the default.orderField
- The field used to order the results by. Use null
for the default.orderDirection
- The direction to order the results by. Use null
for the default.
CreateSendException
- Thrown when the API responds with a HTTP Status >= 400public PagedResult<Subscriber> deleted(java.util.Date subscribedFrom, java.lang.Integer page, java.lang.Integer pageSize, java.lang.String orderField, java.lang.String orderDirection) throws CreateSendException
subscribedFrom
- The API will only return subscribers who were deleted on or after this date.page
- The page number or results to get. Use null
for the default (page=1)pageSize
- The number of records to get on the current page. Use null
for the default.orderField
- The field used to order the results by. Use null
for the default.orderDirection
- The direction to order the results by. Use null
for the default.
CreateSendException
- Thrown when the API responds with a HTTP Status >= 400public PagedResult<Subscriber> bounced() throws CreateSendException
CreateSendException
- Thrown when the API responds with a HTTP Status >= 400public PagedResult<Subscriber> bounced(java.lang.Integer page, java.lang.Integer pageSize, java.lang.String orderField, java.lang.String orderDirection) throws CreateSendException
page
- The page number or results to get. Use null
for the default (page=1)pageSize
- The number of records to get on the current page. Use null
for the default.orderField
- The field used to order the results by. Use null
for the default.orderDirection
- The direction to order the results by. Use null
for the default.
CreateSendException
- Thrown when the API responds with a HTTP Status >= 400public PagedResult<Subscriber> bounced(java.util.Date subscribedFrom, java.lang.Integer page, java.lang.Integer pageSize, java.lang.String orderField, java.lang.String orderDirection) throws CreateSendException
subscribedFrom
- The API will only return subscribers who bounced out on or after this date.page
- The page number or results to get. Use null
for the default (page=1)pageSize
- The number of records to get on the current page. Use null
for the default.orderField
- The field used to order the results by. Use null
for the default.orderDirection
- The direction to order the results by. Use null
for the default.
CreateSendException
- Thrown when the API responds with a HTTP Status >= 400public java.lang.String createCustomField(CustomFieldForCreate customField) throws CreateSendException
customField
- The custom field options
CreateSendException
- Thrown when the API responds with HTTP Status >= 400public java.lang.String updateCustomField(java.lang.String fieldKey, CustomFieldForUpdate customField) throws CreateSendException
fieldKey
- The Key of the custom field to update. This must be surrounded by [].customField
- The custom field options
CreateSendException
- Thrown when the API responds with HTTP Status >= 400public void updateCustomFieldOptions(java.lang.String fieldKey, UpdateFieldOptions options) throws CreateSendException
fieldKey
- The Key of the custom field to update. This must be surrounded by [].options
- The new options to use for the field.
CreateSendException
- Raised when the API responds with HTTP Status >= 400public void deleteCustomField(java.lang.String fieldKey) throws CreateSendException
fieldKey
- The Key of the custom field to delete. This must be surrounded by [].
CreateSendException
- Thrown when the API responds with HTTP Status >= 400public Webhook[] webhooks() throws CreateSendException
CreateSendException
- Thrown when the API responds with HTTP Status >= 400public java.lang.String createWebhook(Webhook webhook) throws CreateSendException
webhook
- The webhook details
CreateSendException
- Thrown when the API responds with HTTP Status >= 400public void testWebhook(java.lang.String webhookID) throws CreateSendException
webhookID
- The ID of the webhook
CreateSendException
- Thrown when the API responds with HTTP Status >= 400. I.e the test failspublic void deleteWebhook(java.lang.String webhookID) throws CreateSendException
webhookID
- The ID of the webhook to delete
CreateSendException
- Raised when the API responds with HTTP Status >= 400public void activateWebhook(java.lang.String webhookID) throws CreateSendException
webhookID
- The ID of the webhook to activate
CreateSendException
- Thrown when the API responds with HTTP Status >= 400public void deactivateWebhook(java.lang.String webhookID) throws CreateSendException
webhookID
- The ID of the webhook to deactivate
CreateSendException
- Thrown when the API responds with HTTP Status >= 400
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |