Calendar Server includes four simple sample programs to help you get started. The code for these samples resides in the following directory:
cal-server-base/cal/csapi/samples/ens
Messaging Server 5.1 and higher contains sample programs to help you learn how to receive notifications. These sample programs are located in the following directory:
msg-server-base/examples