.Dataset().ScriptTagAsync()Task<string> api
.Dataset(...)
.ScriptTagAsync(string style = "d")
Get a <script> tag for a specific dataset to be displayed as a table. Insert this script tag where you want the table to appear in your HTML. This is the same as ScriptTag, but it will retrieve the secure access token for you - thus requiring it to be async.
d - Defaultauto - Auto detectbm - Bulmabs - Bootstrap 3bs4 - Bootstrap 4bs5 - Bootstrap 5dt - CloudTables / DataTables default stylingzf - Zurb Foundationju - jQuery UIse - Semantic UIno - No stylingThis async method returns a Task which will resolve to a string that contains the HTML <script> tag to use to embed your CloudTable.
var api = new CloudTables.Api("sub-domain", ":apiKey");
var result = await api.Dataset(":id").ScriptTagAsync();
Will result in a string such as:
<script
src="https://sub-domain.{domain}/loader/:id/table/d"
data-token="ANnbgUJoKO8qh5fYObpffdNqqgANtVVL"
></script>