public function getOutlineCode($outlineCodeId)
    {

        if ($outlineCodeId == '')
            throw new Exception('Outline Code ID not specified');

        //build URI
        $strURI = Product::$baseProductUri . '/tasks/' . $this->getFileName() . '/outlineCodes/' . $outlineCodeId;

        //sign URI
        $signedURI = Utils::sign($strURI);

        $responseStream = Utils::processCommand($signedURI, 'GET', '', '');

        $json = json_decode($responseStream);

        if ($json->Code == 200)
            return $json->OutlineCode;
        else
            return false;
    }
public function getOutlineCode($outlineCodeId)
    {

        if ($outlineCodeId == '')
            throw new Exception('Outline Code ID not specified');

        //build URI
        $strURI = Product::$baseProductUri . '/tasks/' . $this->getFileName() . '/outlineCodes/' . $outlineCodeId;

        //sign URI
        $signedURI = Utils::sign($strURI);

        $responseStream = Utils::processCommand($signedURI, 'GET', '', '');

        $json = json_decode($responseStream);

        if ($json->Code == 200)
            return $json->OutlineCode;
        else
            return false;
    }
public function getOutlineCode ( $ outlineCodeId ) { if ( $ outlineCodeId == '' ) throw new Exception ( 'Outline Code ID not specified' ) ; //build URI $ strURI = Product :: $ baseProductUri . '/tasks/' . $ this -> getFileName ( ) . '/outlineCodes/' . $ outlineCodeId ; //sign URI $ signedURI = Utils :: sign ( $ strURI ) ; $ responseStream = Utils :: processCommand ( $ signedURI , 'GET' , '' , '' ) ; $ json = json_decode ( $ responseStream ) ; if ( $ json -> Code == 200 ) return $ json -> OutlineCode ; else return false ; }
Get Outline Code

@param integer $outlineCodeId The id of the outline code.

@return array Returns the outline code.
@throws Exception
Get Outline Code