public function getUserParams(Mage_Api2_Model_Request $request)
    {
        $userParamsObj = new stdClass();
        $userParamsObj->type = null;
        $userParamsObj->id = null;

        if ($this->isApplicableToRequest($request)) {
            $userParamsObj->id = $this->getHelper()->getCustomerSession()->getCustomerId();
            $userParamsObj->type = self::USER_TYPE_CUSTOMER;
        }

        return $userParamsObj;
    }
public function getUserParams(Mage_Api2_Model_Request $request)
    {
        $userParamsObj = new stdClass();
        $userParamsObj->type = null;
        $userParamsObj->id = null;

        if ($this->isApplicableToRequest($request)) {
            $userParamsObj->id = $this->getHelper()->getCustomerSession()->getCustomerId();
            $userParamsObj->type = self::USER_TYPE_CUSTOMER;
        }

        return $userParamsObj;
    }
public function getUserParams ( Mage_Api2_Model_Request $ request ) { $ userParamsObj = new stdClass ( ) ; $ userParamsObj -> type = null ; $ userParamsObj -> id = null ; if ( $ this -> isApplicableToRequest ( $ request ) ) { $ userParamsObj -> id = $ this -> getHelper ( ) -> getCustomerSession ( ) -> getCustomerId ( ) ; $ userParamsObj -> type = self :: USER_TYPE_CUSTOMER ; } return $ userParamsObj ; }
Process request and figure out an API user type and its identifier

Returns stdClass object with two properties: type and id

@param Mage_Api2_Model_Request $request

@return stdClass
Process request and figure out an API user type and its identifier