Independentsoft
- any library, any programming language
Home
Purchase
Support
Company
Contact
JWebDAV for Exchange
>
Tutorial
> Get tasks
The following example shows you how to retrieve single task or all tasks from specified folder.
C# example
import com.independentsoft.webdav.exchange.Task; import com.independentsoft.webdav.exchange.WebdavClient; import com.independentsoft.webdav.exchange.WebdavException; public class Example { public static void main(final String[] args) { try { WebdavClient client = new WebdavClient("https://myserver/exchange/emailaddress", "username", "password"); //get single task Task task = client.getTask("taskUrl"); //get all tasks from default Tasks folder Task[] tasks = client.getTasks(); //get all tasks from the specified folder Task[] tasks2 = client.getTasks("folderUrl"); } catch (WebdavException e) { e.printStackTrace(); } } }