Arduino communication with APM

Hello there.
I am new to APM.I have just built a quadcopter using APM.
I want to give data from an arduino for changing the operation of the quad.
Can someone help me in giving the control data from arduino to apm.
And also how to configure apm to read the data and change its operation accordingly.