- Previous: SiteManager Services
- Up: SiteManager Services
- Next: SiteManager Services - Update Pages
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 |
- Previous: SiteManager Services
- Up: SiteManager Services
- Next: SiteManager Services - Update Pages

Comments
kumara – 1 year 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>
Eugeny – 1 year 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?
Please sign in to post a comment.