Package com.sparkpost.resources
Class ResourceWebhooks
java.lang.Object
com.sparkpost.resources.ResourceWebhooks
public class ResourceWebhooks extends Object
- Author:
- grava
-
Constructor Summary
Constructors Constructor Description ResourceWebhooks() -
Method Summary
Modifier and Type Method Description static WebhookIdContainerResponsecreate(IRestConnection conn, Webhook webhook)static Responsedelete(IRestConnection conn, String id)static WebhookDescribeResponsedescribe(IRestConnection conn, String id)static WebhookDescribeResponsedescribe(IRestConnection conn, String id, String timezone)static ResponsegetSamplePayloadForEvents(IRestConnection conn, String events)static WebhookListAllResponselistAll(IRestConnection conn)static WebhookListAllResponselistAll(IRestConnection conn, String timezone)static ResponselistSampleValuesAndEvents(IRestConnection conn)static WebhookIdContainerResponseupdate(IRestConnection conn, String id, WebhookDescription webhookDescription)
-
Constructor Details
-
ResourceWebhooks
public ResourceWebhooks()
-
-
Method Details
-
listSampleValuesAndEvents
- Throws:
SparkPostException
-
getSamplePayloadForEvents
public static Response getSamplePayloadForEvents(IRestConnection conn, String events) throws SparkPostException- Throws:
SparkPostException
-
listAll
- Throws:
SparkPostException
-
listAll
public static WebhookListAllResponse listAll(IRestConnection conn, String timezone) throws SparkPostException- Throws:
SparkPostException
-
create
public static WebhookIdContainerResponse create(IRestConnection conn, Webhook webhook) throws SparkPostException- Throws:
SparkPostException
-
describe
public static WebhookDescribeResponse describe(IRestConnection conn, String id) throws SparkPostException- Throws:
SparkPostException
-
describe
public static WebhookDescribeResponse describe(IRestConnection conn, String id, String timezone) throws SparkPostException- Throws:
SparkPostException
-
update
public static WebhookIdContainerResponse update(IRestConnection conn, String id, WebhookDescription webhookDescription) throws SparkPostException- Throws:
SparkPostException
-
delete
- Throws:
SparkPostException
-