Accelerometer and gyroscope raw data

Does anyone knows how to record accelerometer and gyroscope data when writting a garmin app? I have tried code on garmin's website and it is not working, I wasn't able to access accelerometer or gyroscope. Does anyone have any links or resources helpful for this? I have already went through the MonkeyC developer website and Garmin's API docs.