Update plugin to use the platform-api.