Phyton script for X2 reading from ZB and posting to IDIGI

Hi, I got a X2-Z11-EC-W that I’m tryng to program to read a string of data coming from serial port of a Arduino board connected to a Xbee-PRO S2 by a Sparkfun Xbee shield.
I want to post the data received by X2 to IDigi possibly in the form of a TCPCSV presentation.
Question: can you address me to a phyton example similar to what I want to do?
regards

Try Binding two zigbee nodes as described at the following link:

http://www.digi.com/wiki/developer/index.php/ZigBee_Extensions_to_the_Python_socket_API

and than go through iDigi Web Service Programming guide to upload data to the iDigi data storage or you can use built in cwm function to upload data to idigi data storage as described in one of the sample project in Digi ESP for python.

For uploading data to iDigi Data storage, you can use http put request along with base64 encoded user name and password. You can also go through following link for your reference.

http://www.digi.com/wiki/developer/index.php/ConnectPort_X3_-_GPRS%2C_232_interface_-_Demo_Application