A Singer tap for Canvas' LMS API
Per Singer specifications, provide configuration via json file:
tap-canvas --config ./config.json [--catalog ./catalog.json]
{
"host": "https://example.instructure.com",
"token": "1234~xzwD4...",
"account": 1
}
By providing at least the data in this catalog.json
, you can activate embedding logins within users:
{
"streams": [
{
"stream": "users",
"metadata": [
{
"breadcrumb": ["properties", "logins"],
"metadata": {
"selected": true
}
}
]
}
]
}
mkdir -p .scratch
# prepare target-csv
python3 -m venv .scratch/venv
source .scratch/venv/bin/activate
pip install target-csv
deactivate
# dump data
node bin/tap-canvas --config .scratch/config.json \
| (cd .scratch/ && ./venv/bin/target-csv)