类型 函数 返回值 无 修订版 版本 2024.3703 关键词 广告、宣传、Peanut Labs、显示 另请参阅 peanutlabs.init() peanutlabs.*
显示 Peanut Labs 调查。
peanutlabs.show()
local peanutlabs = require( "plugin.peanutlabs" )
local function adListener( event )
if ( event.phase == "init" ) then -- Successful initialization
-- Show a survey
peanutlabs.show()
end
end
-- Initialize the Peanut Labs plugin
peanutlabs.init( adListener,
{
userId = "x1",
appKey = "YOUR_APP_KEY",
appId = 2222
}
)