src/Core/Communicator.php
public function post(string $endPoint, \JsonSerializable $content): string
    {
        $parsedEndPoint = self::parseEndPoint($endPoint);
        return $this->sendRequest($parsedEndPoint, "POST", json_encode($content));
    }
public function post(string $endPoint, \JsonSerializable $content): string
    {
        $parsedEndPoint = self::parseEndPoint($endPoint);
        return $this->sendRequest($parsedEndPoint, "POST", json_encode($content));
    }
public function post ( string $ endPoint , \ JsonSerializable $ content ) : string { $ parsedEndPoint = self :: parseEndPoint ( $ endPoint ) ; return $ this -> sendRequest ( $ parsedEndPoint , "POST" , json_encode ( $ content ) ) ; }
Adds the content object to the endpoint and returns a processed version of given object.
@param string            $endPoint API URI.
@param \JsonSerializable $content  The ProcessableComponentInterface that is to be posted to the API.
@return string JSON API Response.
Adds the content object to the endpoint and returns a processed version of given object .