Get bulletin attachment
wilma_get_news_attachmentFetches and reads files linked from school bulletins, such as PDF letters or menus, and optionally saves them to Downloads; returns a URL instead when the link is a web page.
Instructions
Fetch a file linked from a bulletin (e.g. a PDF letter or menu) so you can read it. Returns the file content when it is a file, or 'not_a_file' with the URL when the link is a web page. Set save=true to also save it to the user's Downloads folder.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | Also save the file to ~/Downloads/WilmAI. | |
| news_id | Yes | ||
| student | No | Child's name or student number. Omit to include every child on the account. | |
| resource_id | Yes | Resource id from wilma_read_news, e.g. resource-1 (or just 1). |