protected function getRequestBody($params, $data, $options)
    {
        $params['scope'] = 'crmapi';
        $params['authtoken'] = $this->authtoken;
        $params += ['newFormat' => 1]; //'version' => 2,
        if (!empty($data)) {
            $params['xmlData'] = (isset($options['map']) && $options['map']) ? $this->toXML($data) : $data;
        }

        if (!isset($params['content'])) {
            return http_build_query($params, '', '&');
        }

        return $params;
    }
protected function getRequestBody($params, $data, $options)
    {
        $params['scope'] = 'crmapi';
        $params['authtoken'] = $this->authtoken;
        $params += ['newFormat' => 1]; //'version' => 2,
        if (!empty($data)) {
            $params['xmlData'] = (isset($options['map']) && $options['map']) ? $this->toXML($data) : $data;
        }

        if (!isset($params['content'])) {
            return http_build_query($params, '', '&');
        }

        return $params;
    }
protected function getRequestBody ( $ params , $ data , $ options ) { $ params [ 'scope' ] = 'crmapi' ; $ params [ 'authtoken' ] = $ this -> authtoken ; $ params += [ 'newFormat' => 1 ] ; //'version' => 2, if ( ! empty ( $ data ) ) { $ params [ 'xmlData' ] = ( isset ( $ options [ 'map' ] ) && $ options [ 'map' ] ) ? $ this -> toXML ( $ data ) : $ data ; } if ( ! isset ( $ params [ 'content' ] ) ) { return http_build_query ( $ params , '' , '&' ) ; } return $ params ; }
Get the body of the request

@param array $params Params
@param object $data Data
@param mixed $options

@return string
Get the body of the request