public function bodyRequest($forApi = false) {
        $json = file_get_contents('php://input');
        $data = json_decode($json);

        $forApi ? $requestWithBodyRequest = $this->getInteractionsRequestForApi() : $requestWithBodyRequest = $this->getInteractionsRequest();
        foreach ($data as $key => $value)
            $requestWithBodyRequest->$key = $value;

        return $requestWithBodyRequest;
    }
public function bodyRequest($forApi = false) {
        $json = file_get_contents('php://input');
        $data = json_decode($json);

        $forApi ? $requestWithBodyRequest = $this->getInteractionsRequestForApi() : $requestWithBodyRequest = $this->getInteractionsRequest();
        foreach ($data as $key => $value)
            $requestWithBodyRequest->$key = $value;

        return $requestWithBodyRequest;
    }
public function bodyRequest ( $ forApi = false ) { $ json = file_get_contents ( 'php://input' ) ; $ data = json_decode ( $ json ) ; $ forApi ? $ requestWithBodyRequest = $ this -> getInteractionsRequestForApi ( ) : $ requestWithBodyRequest = $ this -> getInteractionsRequest ( ) ; foreach ( $ data as $ key => $ value ) $ requestWithBodyRequest -> $ key = $ value ; return $ requestWithBodyRequest ; }
Retorno del cuerpo de Request.

@return  array
Retorno del cuerpo de Request .