Feature Request "GetRevision" Op

5 views
Skip to first unread message

Eric G.

unread,
May 26, 2011, 3:53:45 PM5/26/11
to PBworks API
Hi,

I am trying to make an API call to get a specific revision of a page.

For example, I can use the GetPage operation to get the latest version
of a page, like so:
http://englishdca.pbworks.com/api_v2/op/GetPage/page/SideBar/verbose/false/_type/text

How could I use the API to get the revision '1210989902 ' of the page
'Sidebar'?

There doesn't seem to be a way to call the API to do this, yet I know
that you can view history through the PBwiki user interface like so:
http://englishdca.pbworks.com/w/page/19058795/SideBar?rev=1210989902

Might there be a GetRevision operation in the future?

Thanks,

Eric

Eileen Xie

unread,
May 26, 2011, 4:27:19 PM5/26/11
to PBworks API
After today's deploy (between 2 and 5 pm Pacific Time), the GetPage
operation will accept an optional 'revision' parameter.

The API documentation will also be updated as part of the deploy:
http://secure.pbworks.com/api_v2?q=GetPage

- Eileen Xie, Head of Quality at PBworks

On May 26, 12:53 pm, "Eric G." <gustavson.e...@gmail.com> wrote:
> Hi,
>
> I am trying to make an API call to get a specific revision of a page.
>
> For example, I can use the GetPage operation to get the latest version
> of a page, like so:http://englishdca.pbworks.com/api_v2/op/GetPage/page/SideBar/verbose/...

Eric G.

unread,
May 27, 2011, 10:26:25 AM5/27/11
to PBworks API
Would it also be possible to have the GetPage op output the user id of
the user that committed the revision?

Thanks Again,

Eric

Eric G.

unread,
May 27, 2011, 9:36:59 AM5/27/11
to PBworks API
That was quick! It works for me (http://englishdca.pbworks.com/api_v2/
op/GetPage/page/SideBar/revision/1213823300/verbose/false/_type/text).

Thank you!

On May 26, 4:27 pm, Eileen Xie <eileen....@pbwiki.com> wrote:

Walker at GotInc

unread,
May 27, 2011, 8:02:04 AM5/27/11
to gustavs...@gmail.com, PBworks API

Hi Eric,

Did you try calling the page number instead of the page name?

GetPage/page/1210989902

Please post back if it works for you this way.

Cheers,
WW

On May 26, 2011 3:54 PM, "Eric G." <gustavs...@gmail.com> wrote:
>
> Hi,
>
> I am trying to make an API call to get a specific revision of a page.
>
> For example, I can use the GetPage operation to get the latest version
> of a page, like so:

> http://englishdca.pbworks.com/api_v2/op/GetPage/page/SideBar/verbose/false/_type/text


>
> How could I use the API to get the revision '1210989902 ' of the page
> 'Sidebar'?
>
> There doesn't seem to be a way to call the API to do this, yet I know
> that you can view history through the PBwiki user interface like so:
> http://englishdca.pbworks.com/w/page/19058795/SideBar?rev=1210989902
>
> Might there be a GetRevision operation in the future?
>
> Thanks,
>
> Eric
>

> --
> You received this message because you are subscribed to the Google Groups "PBworks API" group.
> To post to this group, send email to pbwik...@googlegroups.com.
> To unsubscribe from this group, send email to pbwiki-api+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/pbwiki-api?hl=en.
>

Eileen Xie

unread,
May 27, 2011, 11:52:19 AM5/27/11
to PBworks API
If you specify 'verbose' = 'true' as an optional parameter for
GetPageRevisions, it includes a bunch of additional information about
each revision.

See the documentation here: http://secure.pbworks.com/api_v2?q=GetPageRevisions

- Eileen Xie
Reply all
Reply to author
Forward
0 new messages