Could this live in messagebroker-phplib as a method? I like the idea of a one liner to do the userAPI magic. Perhaps:

$mb->postToUserAPI($updateArgs);