Mediative PHP API wrapper