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)
--]]
import DatalinkModule from "@datalinkhq/rbx-datalink"
const Datalink = new DatalinkModule({
datalinkUserAccountId: 0,
datalinkUserToken: ""
})
// Datalink.onAuthenticated.Once(() => {
// print('Datalink Authenticated!')
// })
⚠️
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