This commit was merged in pull request #2.
This commit is contained in:
@@ -72,10 +72,11 @@ func (c *Client) GetPage(title string) (*ParsedPage, error) {
|
||||
// GetPageSection fetches the wikitext for a specific section of a page.
|
||||
func (c *Client) GetPageSection(title string, sectionIndex int) (*ParsedPage, error) {
|
||||
params := url.Values{
|
||||
"action": {"parse"},
|
||||
"page": {title},
|
||||
"prop": {"wikitext"},
|
||||
"section": {strconv.Itoa(sectionIndex)},
|
||||
"action": {"parse"},
|
||||
"page": {title},
|
||||
"prop": {"wikitext"},
|
||||
"section": {strconv.Itoa(sectionIndex)},
|
||||
"redirects": {"1"},
|
||||
}
|
||||
|
||||
var resp parseResponse
|
||||
|
||||
Reference in New Issue
Block a user