calendly.com
Calendly: download invoices
Input
email optionalGoogle account to pick in the SSO chooser, used only when a fresh sign-in is needed. If the browser already holds a Calendly session the chooser never appears, so this cannot be honoured — the run is then refused rather than silently returning whichever account is signed in. Omit it to read the session that is already active.
Output
total requiredNumber of invoices (charges) found.
invoices requiredattempted requiredHow many of those invoices exposed a downloadUrl and so were actually attempted.
downloaded requiredHow many PDFs were genuinely captured to disk (path non-null). When attempted > 0 and this is 0, the script throws instead of returning, because a download script that captured nothing has not done its job.
