An old rewards integration I wrote for Livetapp