Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
88 lines (63 sloc) 1.17 KB

Lists

List

  • POST /ws/page/#{page_id}/lists/list gets the lists on a page.

Request:

<request>
  <token>202cb962ac59075b964b07152d234b70</token>
</request>

Response:

<response success='true'>
  <lists>
    <list id='1' name='greetings' />
    <list id='2' name='goodbyes' />
  </lists>
</response>

Create

  • POST /ws/page/#{page_id}/lists/add adds a new list to the page.

Request:

<request>
  <token>202cb962ac59075b964b07152d234b70</token>
  <name>parts</name>
</request>

Response:

<response success='true'>
  <list id='3' name='parts'/>
</response>

Update

  • POST /ws/page/#{page_id}/lists/update/#{id} changes a list's name.

Request:

<request>
  <token>202cb962ac59075b964b07152d234b70</token>
  <list><name>ingredients</name></list>
</request>

Response:

<response success='true' />

Destroy

  • POST /ws/page/#{page_id}/lists/destroy/#{id} removes a list and its items from the page.

Request:

<request>
  <token>202cb962ac59075b964b07152d234b70</token>
</request>

Response:

<response success='true' />