...
Code Block | ||
---|---|---|
| ||
const importer = new Extend.import(boardId, listId, companyId, embedToken); |
BoardIdboardId* (string) | ListIdlistId* (string) | companyId* (string) | embedToken* (string) |
---|---|---|---|
The Board ID on which you want the cards to be imported to. | The List ID on which you want the cards to be imported to. | Your Company ID | The embed token you obtained from the ‘API Settings’ in your admin dashboard |
...
Basic example
Code Block | ||
---|---|---|
| ||
<script
type="text/javascript"
src="https://attachments.viaboards.io/embed/embeds-prod.js"
></script>
<script type="text/javascript">
const boardId = "YOUR_BOARD_ID";
const listId = "YOUR_LIST_ID";
const companyId = "YOUR_COMPANYID";
const embedToken = "YOUR_EMBED_TOKEN";
const importer = new Extend.import(boardId, listId, companyId, embedToken);
importer.onSuccess((message) => {
// Do something with the data here
return "Done!";
});
</script>
<div id="root">
<button onclick="importer.open()">Open Importer</button>
</div> |
...