[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
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
- search inside gmail
and it will generate a list of emails (see attached image)[DigitalOcean] Your 2024-07 invoice is available - i want to iterate through each email
- and then download each attachment (which is pdf)
- 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
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.



