Monitor my email and when I get one that matches the regex it’ll make an API call?
It's this first one with a slight twist. It generates a random email for you rather than asking you to give your username & password (I don't want to handle securing people's usernames and emails at this stage). It makes an API call when the From Email matches the regex.
Example from demo:
URL: https://api.github.com/repos/idrissbellil/cryptomonitor/issues
Method: POST (The HTTP Method: POST, GET, PUT, ..)
From Regex: .* (only trigger the call given certain `From` emails so you it doesn't create a thousand tickets if somebody floods you with emails)
Payload: {"title":"{{ .Subject }}","body":"{{ .Body }}","assignees":["idrissbellil"]} (the data part of the POST/PUT/even GET query - here you can re-use parts of the email you received like Subject, Body, To, From
Headers: {"Accept":"application/vnd.github+json","Authorization":"Bearer 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","X-GitHub-Api-Version":"2022-11-28"}
Thanks for having a look!
It's this first one with a slight twist. It generates a random email for you rather than asking you to give your username & password (I don't want to handle securing people's usernames and emails at this stage). It makes an API call when the
From Email
matches the regex.Example from demo: