How to like posts from a plugin in a secure way

After some more investigation I’ve found lib/post_action_creator which seems ideal. However, I can’t find an equivalent to “un-like” a post. Would that be PR material?