[pmwiki-users] Subject: Using pmwikiedit in PmWiki V2

Ben Wilson dausha at gmail.com
Wed Feb 1 11:56:23 CST 2006


> Message: 7
> Date: Wed, 01 Feb 2006 10:14:58 +0000
> From: Ian Barton <lists at manor-farm.org>
> Subject: [pmwiki-users] Using pmwikiedit in PmWiki V2
> To: pmwiki-users at pmichaud.com
> Message-ID: <43E08A22.5050902 at manor-farm.org>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> I want to be able to use the code from pmwikiedit by Scott Duff to
> develop something that lets me append posts to a page via email.
>
> I can retrieve the text from the page OK. However, when I try posting
> data back to PmWiki nothing happens:
>
> my $req = POST $wikiurl, [
>     action      => 'post',
>     pagename    => $wikipage,
>     text                => $text,
> ];
>
> I think this was originally developed for V1 and I assume the post
> action doesn't work with V2. What's the preferred way of posting text to
> a page via a url in V2.

Umm, I think there is a "'post' => 1," needed to post as well. You
also need "action => 'edit'" instead of action => post..

When you finish this, I would love to give it a whirl!

Regards,
Ben




More information about the pmwiki-users mailing list