Class SurveySendResource
java.lang.Object
esendex.sdk.java.service.resource.base.Resource
esendex.sdk.java.service.resource.surveys.SurveySendResource
-
Constructor Summary
ConstructorsConstructorDescriptionSurveySendResource
(Authenticator auth, String id) Instantiates a new creates the contact resource. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Gets the child portion of the url required to access the resource.protected String
Retrieves the request data if any in raw String form.protected HttpRequestMethod
Gets the HttpRequestMethod that this service stipulates eg GET, POST, PUT, DELETE.void
setRequestObject
(RecipientsDto recipientsDto) Sets the request object.Methods inherited from class esendex.sdk.java.service.resource.base.Resource
execute, getAccount, getEndpoint, getId, getResponse, isHttpOkay
-
Constructor Details
-
SurveySendResource
Instantiates a new creates the contact resource.- Parameters:
auth
- the authenticatorid
- the survey id
-
-
Method Details
-
setRequestObject
Sets the request object.- Parameters:
recipientsDto
- the new request object
-
getRequestData
Retrieves the request data if any in raw String form. By default returns null- Overrides:
getRequestData
in classResource
- Returns:
- the request data in raw form
-
getEndpointChild
Gets the child portion of the url required to access the resource. The child part is appended to the base url and must not start with a '/' The base url is of the form 'http://api.esendex.com/{version}/' where version maybe similar to 'v1.0'- Specified by:
getEndpointChild
in classResource
- Returns:
- the child portion of the url required to access this resource
-
getRequestMethod
Gets the HttpRequestMethod that this service stipulates eg GET, POST, PUT, DELETE.- Specified by:
getRequestMethod
in classResource
- Returns:
- the required HttpRequestMethod
-