Skip to content
SDK Guide
/
Datalink SDK
/
Constructor

Constructor

Before you can use the Datalink SDK, you need to create the datalink instance which should be your primary point of contact for interacting with the Datalink Service.

local DatalinkModule = require(Path.To.Module)
local Datalink = DatalinkModule.new({
	datalinkUserAccountId = 0,
	datalinkUserToken = ""
})

--[[
Datalink.onAuthenticated:Once(function()
	print('Datalink Authenticated!')
end)
--]]
⚠️

Please ensure that the following are NOT exposed to the client:

  • Authentication Key
    • This key would allow an attacker FULL ACCESS to your experiences data