Class EmailsApiV2Controller

Class EmailsApiV2Controller

This controller provides a gateway to the EmailService of the system. The user is able to get, send, queue and delete email records through his shop. Email forwarding is not directly supported but can be easily implemented by getting an existing email and then sending it with the updated contact addresses.

API consumers can also upload attachments through the AttachmentsApiV2Controller and later use them within their emails. The upload operation must be executed before sending/queuing the email because it is not possible to send the email JSON data and upload a file at the same time. For more info see the AttachmentsV2Controller.

AbstractApiV2Controller
HttpApiV2Controller
EmailsApiV2Controller

Methods summary

protected __initialize( void )

Initialize controller components.

public post( void )
public put( void )
public delete( void )
public get( void )

Methods inherited from HttpApiV2Controller

_linkResponse(), _locateResource(), _mapResponse(), _minimizeResponse(), _paginateResponse(), _searchResponse(), _setJsonValue(), _sortResponse(), _writeResponse()

Methods inherited from AbstractApiV2Controller

__construct(), _prepareResponse(), _setRateLimitHeader(), _validateRequest()

Constants summary

Constants inherited from AbstractApiV2Controller

DEFAULT_CONTROLLER_NAME, DEFAULT_PAGE_ITEMS, DEFAULT_RATE_LIMIT, DEFAULT_RATE_RESET_PERIOD

Properties summary

protected $emailService : EmailService

E-Mail service.


		
protected $emailSerializer : EmailJsonSerializer

E-Mail serializer.


		

Properties inherited from AbstractApiV2Controller

$api, $uri