SiteManager Services - List Pages

LIST [user] pages

Endpoint URL http://api.webs.com/v1/sitemanager/[user]/pages
http://api.webs.com/v1/sitemanager/[user]/pages/normal
http://api.webs.com/v1/sitemanager/[user]/pages/albums
http://api.webs.com/v1/sitemanager/[user]/pages/blog
HTTP Method GET
Parameters apikey=[partner key] (String)
token=[session token] (String)
password=[password] (String) required if token not provided

Usage Notes

The page id value in the response is used as the pageID value described in other API requests. The page id value uniquely identifies a page.

Example Good Response

<?xml version="1.0" encoding="utf-8" ?> 
<rsp stat="ok"> 
  <user name=”fred”> 
    <token>8dbb03893f96ab32110957f10ce</token> 
    <page id=”12345678” name=”Home” fname=”index.htm” type=”normal”/> 
    <page id=”43215678” name=”Music” fname=”music.htm” type=”normal” /> 
    <page id=”87654321” name=”Blog” fname=”blog.htm” type=”blog”/> 
    <page id=”56785678” name=”Photos” fname=”photos.htm” type=”album”/> 
  </user> 
</rsp>

Error Codes (see response format in Technical Description)

Code Response
300 Received unknown page type: [page type]
310 Did not receive enough information
320 Cannot find or create session for user with information provided
340 Does not support this HTTP method for this operation
350 Encountered errors retrieving page list
360 Username [name] does not exist
370 Encountered errors during user existence check

5 Comments

  1. kumara4 years ago

    <?xml version="1.0" encoding="utf-8" ?>
    <rsp stat="ok">
    <user name=”fred”>
    <token>8dbb03893f96ab32110957f10ce</token>
    <page id=”12345678” name=”Home” fname=”index.htm” type=”normal”/>
    <page id=”43215678” name=”Music” fname=”music.htm” type=”normal” />
    <page id=”87654321” name=”Blog” fname=”blog.htm” type=”blog”/>
    <page id=”56785678” name=”Photos” fname=”photos.htm” type=”album”/>
    </user>
    </rsp>

  2. Eugeny4 years ago

    I'm trying to get albums list with "http://api.freewebs.com/v1/sitemanager/[user]/pages/albums"
    but all I get is well-formed xml with empty string instead of albums list. Of course I have albums and photos in my account. Any ideas?

  3. meannn2 years ago

    Thanks for tutorial.

  4. CasTex2 years ago

    I like the documentation. Helpful for me.

  5. Priyanshu2 years ago

    it's not coming. Neither photo albums nor blog page is coming in this list of pages. May I know what could be the issue?

Please sign in to post a comment.