Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Extract DB files
function parseDbFileSomehow()
{
//Is it a CSV? Tab delimited?
//Use Google Drive API to getBlob() and parse into lines
return file_lines;
}
function createCards()
{
var lines = parseDbFileSomehow();
var target_list = new Trellinator().board("My Board").list("Inbox");
for(var i = 0;i < lines.length;i++)
{
Card.create(target_list,{name: lines[0],desc: lines[1]});//replace with your actual format
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment