Create Communication between Zigmo router and Particle Photon

Hello, I am totally new in this serial communication between particle photon and Xbees or ZigBee, I was learning about Xbee S2C connection from here,

Can you please suggest me the sample code in which I can learn about receiving the data from the Zigmo routers which designed especially for the sensor working with Wireless mesh sensors using Xbee modules.