Getting started
I6Sdk
Web SDK constructor and access to services.
1 min read
The bundle exposes the window.I6Sdk class. Each instance gives access to the
SDK services.
new I6Sdk(config?)
new window.I6Sdk(config?)| Name | Type | Required | Description |
|---|---|---|---|
config |
object |
No | Instance configuration. |
config.baseUrl |
string |
No | Platform address used for calls. The default is the sandbox environment. |
Returns: an I6Sdk instance.
Minimal example
<script src="https://cdn.infinity6.ai/releases/sdkweb/latest/bundle/i6sdk-web.js"></script>
<script type="module">
async function main() {
const sdk = new window.I6Sdk();
const user = await sdk.auth().requireUser();
if (!user) return;
}
main();
</script>Notes
- Values passed in
configoverride the default values.
sdk.auth()
sdk.auth()Returns: the authentication service. See auth().
sdk.ingest()
sdk.ingest()Returns: the file upload service. See ingest().
Next
auth()
Querying and requiring the session.
Support
Implementation support
Official channels for questions during integration.
Technical support email
Response within 1 business day
Send implementation questions with the context of your current step.
Send emailResponse according to the support queue
Direct assistance for quick integration questions.
Support assistant
Immediate response
i6 documentation and implementation assistant.
