Notification if door state is open for X minutes?


it seems to be possible to pool on the state.doorState and evaluate the json response if the door is currently open (using the WebAPi with OAuth??). Or would I have to use the bridge api?

My goal is to write an IFTTT script that polls the door state, and if open for X minutes, sends a notification.
BUT: is it possible at all to write a script like this with ifttt? If yes, how? If not could you suggest a different cloud service?
Would an Alexa Skill also fit? Is it possible to even poll the local bridge in my local wifi network with alexa, without having to go into the web?