PutPage v2 API - invalid credentials!

8 views
Skip to first unread message

bonny

unread,
Dec 1, 2008, 11:24:28 PM12/1/08
to PBwiki API Hackers
Hi all, I'm new here.

I'm trying to add a page using PutPage - I tried the curl command line
that is shown in the API documentation (containing a session cookie, I
think) that tries to change the FrontPage and get this:

HTTP/1.1 200 OK
Date: Tue, 02 Dec 2008 04:18:30 GMT
Server: Apache
Vary: Accept-Encoding,Use
Set-Cookie: pbj=41b87382223d26701fcf9b9822b3001228191511; expires=Fri,
01-Jan-2038 00:00:00 GMT; path=/; domain=.pbwiki.com
Connection: close
Transfer-Encoding: chunked
Content-Type: text/plain;charset=utf-8

/*-secure-
{"_request_id":"22.0.0","_valid_as_of":1228191511,"error_status":
403,"error_string":"rejected input, invalid credentials []
@1073","reference":"http:\/\/labonny.pbwiki.com\/api_v2\/#PutPage"}
*/

I get the same "invalid credentials" message even if I use my
Administrator key or my Writer key. Same thing if I set
create_if_missing=true.

Developer interface is enabled. Am I missing something? Any help is
appreciated.

Mark Christian

unread,
Dec 10, 2008, 2:27:11 PM12/10/08
to lab...@gmail.com, PBwiki API Hackers
HI there;
Off the top of my head, I'm not sure what your problem could be. Can
you reply directly to me with the exact CURL command you used? Please
include the API key so I can test it — you can reset your API keys
from /settings/api once I've taken a look. :)

Cheers;
— Mark
Reply all
Reply to author
Forward
0 new messages