How to like wire post

Please help me? I am new in elgg framework? how to like post in elgg? I have to create api code for this? If any functions avaialble in elgg for this? Its very urgent. Thanks in advance