Update api.php

Include functions_posting if required <https://www.phpbb.com/community/viewtopic.php?p=13258504#p13258504>