Hey folks, I'm having pretty good success with much of the API, but
have come across what must be a bug:
the documentation for CreatePage states that an optional parameter is
a template Name.
I have a page "Activity1" tagged as template, but when I execute
CreateTemplate it throws back an error that the template is not found.
(Activity1 is available in the template drop-down menu when creating a
new page using the pages and files interface)
The command work if I omit the template parameter
Here's my sample call:
http://gordongraber.pbworks.com/api_v2/op/CreatePage/page/testhome/template/Activity1/_type/text/admin_key/xxxxxxxxx
(I've x'd out my admin key above, lest you think I am actually passing
x's! )
returns:
array (
'_auth_role' => 'admin',
'_auth_via' => 'api_key',
'_perm_cache_times' =>
array (
'pagetime' => 1313968130,
),
'_request_id' => '56093',
'_valid_as_of' => 1313969415,
'error_status' => 404,
'error_string' => 'Template not found',
'reference' => '
http://gordongraber.pbworks.com/api_v2/op/DescribeOp/
desc/CreatePage',
'success' => false,
)
Thanks for any ideas!