how to get mobile shaking input in unity c#

I want to run a function, when user shakes it mobile phone.
means on shaking phone i want to run a function in android unity c#

thanks

Check this out:

http://www.immersion.com/developers/index.php?option=com_content&view=category&layout=blog&id=119&Itemid=592