Thread:Project:Support desk/badtoken problem calling the API with action=edit/reply (6)

According to the example in the link you provided I changed my code to the following(I couldnt get FauxRequest to work so I used DerivativeRequest): $api = new ApiMain(    new DerivativeRequest( $wgRequest, array(            'action'     => 'edit',             'title'      => $title,             'appendtext' => $text,             'format'     => 'php',             'notminor'   => true,             'token'      => $token         ), false // was posted? ),    true // enable write? ); $api->execute;

There is no need to "urlencode" $token anymore... This works for logged-in users now. Thank you very much!