[Solved] How to have a script to search for emails inside Gmail using the resource?
Let me describe what i want to do manually and tell me roughly how to do this inside windmill.dev
1. search inside gmail
2. i want to iterate through each email
3. and then download each attachment (which is pdf)
4. and then do something to the pdf
given that i have the gmail resource installed (see attached), how do i use the resource in my script?
I have read this https://www.windmill.dev/docs/core_concepts/resources_and_types#fetching-them-from-within-a-script-by-using-the-wmill-client-in-the-respective-language but i am still unsure how to use this.
DO I use a script, flow, or app?
all i know is i do
then i am lost what to do next
Manual Steps
1. search inside gmail
[DigitalOcean] Your 2024-07 invoice is available and it will generate a list of emails (see attached image)2. i want to iterate through each email
3. and then download each attachment (which is pdf)
4. and then do something to the pdf
how to do this inside windmill
given that i have the gmail resource installed (see attached), how do i use the resource in my script?
I have read this https://www.windmill.dev/docs/core_concepts/resources_and_types#fetching-them-from-within-a-script-by-using-the-wmill-client-in-the-respective-language but i am still unsure how to use this.
DO I use a script, flow, or app?
all i know is i do
gmail_resource = wmill.get_resource("u/kimsia/picturesque_gmail")then i am lost what to do next


Resources are rich objects in JSON that allow to store configuration and credentials.