Was this page helpful?

Retrieve Archived Page Info

    Description of the code sample

    The following command retrieves information of an archived page with page.archive ID = 1:

    Sample Code

    curl -u admin:password -i http://mindtouch.address/@api/deki/archive/pages/1

    Sample Response

    page.archiveID = 588

    <page.archive id="588" href="http://192.168.59.128/@api/deki/archive/pages/588/info">
      <title>Test</title>
      <path>Test</path>
      <contents type="application/x.deki0805+xml" href="http://192.168.59.128/@api/deki/archive/pages/588/contents"/>
      <user.deleted id="88" href="http://192.168.59.128/@api/deki/users/88">
        <nick>test6</nick>
        <username>test6</username>
        <email hidden="true"/>
        <hash.email>989d7c3b24422e0f2ab2da41e3a91434</hash.email>
        <uri.gravatar>http://www.gravatar.com/avatar/989d7c3b24422e0f2ab2da41e3a91434</uri.gravatar>
      </user.deleted>
      <date.deleted>2010-01-26T22:40:57Z</date.deleted>
    </page.archive>

    Implementation notes 

    curl flags

    -u
    Provides external user authentication.
    -i
    Outputs the HTTP response headers. Useful for debugging.

    Permissions

    ADMIN permission is required to execute above command.

    Archived Pages

    To view a list of archived pages, follow the instructions here.
    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by