ZigBee Programmable sample

I would want a sample of code of ZB communication with API mode. Someone have this?

Have you tried the sample application link provided in Xbee-Pro S2B Getting Started Guide?