public function getTemplates($page = 1, $page_size = null, $account_id = null)
    {
        $response = $this->rest->get(static::TEMPLATE_LIST_PATH,
          array('account_id' => $account_id,
            'page' => $page,
            'page_size' => $page_size)
        );

        $this->checkResponse($response);

        $list = new TemplateList($response);

        if ($page > $list->getNumPages()) {
            throw new Error('page_not_found', 'Page not found');
        }

        return $list;
    }