public function post($resourcePath, $payload = "", $queryParameters = array(),
                        $mimeType = 'application/vnd.maileon.api+xml',
                        $deserializationType = null,
                        $contentType = null,
                        $contentLength = null)
    {
        $curlSession = $this->prepareSession($resourcePath, $queryParameters, $mimeType, $contentType, $contentLength);
        curl_setopt($curlSession, CURLOPT_POST, true);
        curl_setopt($curlSession, CURLOPT_POSTFIELDS, $payload);
        return $this->performRequest($curlSession, $deserializationType);
    }
public function post($resourcePath, $payload = "", $queryParameters = array(),
                        $mimeType = 'application/vnd.maileon.api+xml',
                        $deserializationType = null,
                        $contentType = null,
                        $contentLength = null)
    {
        $curlSession = $this->prepareSession($resourcePath, $queryParameters, $mimeType, $contentType, $contentLength);
        curl_setopt($curlSession, CURLOPT_POST, true);
        curl_setopt($curlSession, CURLOPT_POSTFIELDS, $payload);
        return $this->performRequest($curlSession, $deserializationType);
    }
Performs a POST operation (i.e. creates a new instance) on a resource.

@param string $resourcePath
the path of the resource to POST. This is typically the parent (or owner) resource
of the resource instance to create.
@param string $payload
the data to POST, i.e. the contents of the new resource instance
@param array $queryParameters
any additional query parameters
@param string $mimeType
the acceptable response MIME type
@param mixed $deserializationType
The name of the class this result should be deserialized as. Use
array( 'array', 'typename' ) to deserialize arrays of a type.
@return \em MaileonAPIResult
the result object of the API call
@throws MaileonAPIException
if there was a connection problem or a server error occurred