Independentsoft
- any library, any programming language
Home
Purchase
Support
Company
Contact
JWebDAV for Exchange
>
Tutorial
> Get notes
The following example shows you how to retrieve single note or all notes from specified folder.
import com.independentsoft.webdav.exchange.Note; 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 note Note note = client.getNote("noteUrl"); //get all notes from default Notes folder Note[] notes = client.getNotes(); //get all notes from the specified folder Note[] notes2 = client.getNotes("folderUrl"); } catch (WebdavException e) { e.printStackTrace(); } } }