Automatic data transfer to custom application

Hi, 

I am looking for a way to link my application with mi Garmin Connect account.

I would like to handle new data of specific type (in my case: bike) event and download this activity as GPX file.