Version 1.1
/Mobile/projects/tasklists/get
Inputs
Input | Input Definition | Required | Detailed Description |
pid | Retrieve tasks for project id | No | If not passed, it will return all tasks 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. | |
taskCount | The number of tasklists returned | |
Tasks | start of the array of tasklists | |
id | The id of the associated tasklist | |
pid | The id of the associated project | |
tlid | The id of the associated tasklist | |
name | The name of the tasklist | |
desc | The description of the tasklist | |
status | the status of the tasklist (1) Active/Open, (0) InActive/Closed | |
access | -- | |
Sample Outputs
JSON
{"response":
{"status":
{"statusCode":2,
"statusMessage":"Success!"},
"tasksCount":1,
"Tasks":[
{"id":"322",
"pid":"28",
"tlid":"80",
"name":"New Task ",
"desc":"Super Awesome Task",
"status":"1"}]
}
}
XML
<?xml version="1.0" encoding="UTF-8"?>
<response>
<status>
<statusCode>2</statusCode>
<statusMessage>Success!</statusMessage>
</status>
<tasksCount>1</tasksCount>
<Tasks>
<id>322</id>
<pid>28</pid>
<tlid>80</tlid>
<name>New Task </name>
<desc>Super Awesome Task</desc>
<status>1</status>
</Tasks>
</response>