lib/API.php
public function get_template($template_id, $version_id = null){
        $endpoint = "templates/" . $template_id;

        if($version_id){
            $endpoint .= "/versions/" . $version_id;
        }

        return $this->api_request($endpoint, self::HTTP_GET);
    }
public function get_template($template_id, $version_id = null){
        $endpoint = "templates/" . $template_id;

        if($version_id){
            $endpoint .= "/versions/" . $version_id;
        }

        return $this->api_request($endpoint, self::HTTP_GET);
    }
public function get_template ( $ template_id , $ version_id = null ) { $ endpoint = "templates/" . $ template_id ; if ( $ version_id ) { $ endpoint .= "/versions/" . $ version_id ; } return $ this -> api_request ( $ endpoint , self :: HTTP_GET ) ; }
Get a specific template

@param string $template_id template id
@param string $version_id optional version id to get template version

@return array API response object
Get a specific template