Skip to content

Instantly share code, notes, and snippets.

@asharma327
Last active August 9, 2022 08:59
Show Gist options
  • Save asharma327/d0ee0c33e92d6695b9c9ddac39316a26 to your computer and use it in GitHub Desktop.
Save asharma327/d0ee0c33e92d6695b9c9ddac39316a26 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="https://www.apispreadsheets.com/import.js"></script>
<script type="text/javascript">
function importComplete(success, data) {
console.log(success)
if (success){
console.log(data);
// close the importer if you wish
// importer.closeImporter();
}
}
let importer = new APISpreadsheetsImporter("3602d167d52a5d6914e6649a4158f672", importComplete);
</script>
</head>
<body>
<button class="api-spreadsheets-import-button" onclick="importer.importFiles();">Import Excel and CSV Files</button>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment