page-content ( title -- content )
MediaWiki API

Prev:query ( params -- seq )
Next:token-call ( params -- assoc )


Vocabulary
mediawiki.api

Inputs
titlea page title


Outputs
contenta page content


Word description
Gets the page content of the most current revision.

Definition


:: page-content ( title -- content )
{
{ "action" "query" }
{ "prop" "revisions" }
{ "rvprop" { "content" "timestamp" } }
{ "rvlimit" 1 }
{ "rvslots" "main" }
{ "titles" title }
{ "curtimestamp" t }
} api-call
[ "curtimestamp" of curtimestamp set-global ] [
"query" of "pages" "revisions" [ of first ] bi@
[ "timestamp" of basetimestamp set-global ]
[ { "slots" "main" "content" } deep-of ] bi
] bi ;