Version 1.1
/Mobile/projects/tasklists/get
Inputs
Input | Input Definition | Required | Detailed Description |
pid | Retrieve tasklists for project id | No | If not passed, it will return all tasklists for user for all projects. |
status | Return only status of this type (0,1) | No | If not passed, it will return all statuses. |
type | used to determine JSON or XML | No | If parameter is not passed than it will assume JSON. |
sid | The user's session id | Yes | If you do not pass a user session then no action can be taken. See the session debug section for disabling the session for debuging. |
While you can pass sid as GET parameter you are also welcome and recommended to pass it via POST for more security.
Ouputs
Response | Response Definition | Detailed Description |
statusCode | The status code for the returned result. (In this case should always be Success | |
statusMessage | The message that describes the associated status code. | |
tasklistCount | The number of tasklists returned | |
Tasklists | start of the array of tasklists | |
id | The id of the associated tasklist | |
pid | The id of the associated project | |
mid | The id of the associated milestone | |
name | The name of the tasklist | |
desc | The description of the tasklist | |
start | The start date of the project in epoch time | |
status | the status of the tasklist (1) Active/Open, (0) InActive/Closed | |
access | -- | |
Sample Outputs
JSON
{"response":
{"status":
{"statusCode":2,
"statusMessage":"Success!"},
"tasklistCount":1,
"Tasklists":[
{"id":"80",
"pid":"28",
"mid":"66",
"name":"initial Get Test ",
"desc":"",
"start":"1329335369",
"status":"1",
"access":"0"}]
}
}
XML
<?xml version="1.0" encoding="UTF-8"?>
<response>
<status>
<statusCode>2</statusCode>
<statusMessage>Success!</statusMessage>
</status>
<tasklistCount>1</tasklistCount>
<Tasklists>
<id>80</id>
<pid>28</pid>
<mid>66</mid>
<name>initial Get Test </name>
<desc/>
<start>1329335369</start>
<status>1</status>
<access>0</access>
</Tasklists>
</response>