Alexander Logan

I last went to Greggs 47 hours ago.

What is this?

Exactly what it looks like - this page tells you how long ago I last bought something from Greggs.


Using the Monzo API, I'm able to receive webhooks whenever I make a purchase using my Monzo card. Upon receiving these, my server decides if a transaction took place at a Greggs and updates the time accordingly.

But... Why??

Because who wouldn't want to know when I last went to Greggs?

More seriously though, this was done for two reasons: to build something with the Monzo webhooks, and also to learn how to use some of the web-based functions of Go.

comments powered by Disqus