Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does the gem enable retrieval of previous revisions of a page? #29

Open
aaronmase opened this issue Feb 6, 2012 · 4 comments
Open

Does the gem enable retrieval of previous revisions of a page? #29

aaronmase opened this issue Feb 6, 2012 · 4 comments

Comments

@aaronmase
Copy link

I think that MediaWiki supports retrieval of previous versions. I am interested in retrieving a history of edits for pages. Is this possible?

@jpatokal
Copy link
Owner

jpatokal commented Feb 6, 2012

The MediaWiki API does, but the gem currently does not.

http://www.mediawiki.org/wiki/API:Properties#revisions_.2F_rv

blackwinter added a commit to blackwinter/mediawiki-gateway that referenced this issue Jul 23, 2014
@blackwinter
Copy link
Collaborator

This should be possible now by specifying the rvstartid to retrieve (see #61):

MediaWiki::Gateway.new('https://en.wikipedia.org/w/api.php').get('Banana', 'rvstartid' => 123456789)

@jpatokal
Copy link
Owner

That enables pulling a historical version, which is indeed handy, but I believe @aaronmase was asking about fetching the history of revisions itself.

@blackwinter
Copy link
Collaborator

Ah, right, I misread his comment. That's indeed not covered yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants