This takes a day in YYYY-MM-DD format and can be called using the CustomJS plugin with either the Dataview plugin or the Templater plugin.
In order to get nicer styling, copy the todoist.css file to .obsidian/snippets and enable it under Settings → Appearance.