Take data from xbee network and send to my server

I have one connect port x2, I want take data from xbee network and then I would send this to a my remote server, do you have example of this or do you have documentation ?
Thank

I believe there is an example in the Python ESP software, where an Idigi Dia example shows how to do this.