ElementsSDK has been renamed to FramesSDK
over 2 years ago by Ryan Chapman
We've changed the name of our ElementsSDK to FramesSDK in our current Frames SDK package.
This will require a minor code change to align to the new naming.
Change 1:
When initialising the SDK parameters are no longer passed individually they are now passed in using an object. e.g.
The following code:
let sdk = new ELEMENTS.ElementsSDK(
'API_KEY',
'AUTH_TOKEN',
'BASE_URL',
ELEMENTS.LogLevel.ERROR
);
Becomes:
let sdk = new FRAMES.FramesSDK({
apiKey: 'API_KEY',
authToken: 'AUTH_TOKEN',
apiBase: 'BASE_URL',
logLevel: FRAMES.LogLevel.ERROR
});
Change 2:
The createElement
method has been renamed createFramesControl