Node-Red might be a good option for you if you understand programming concepts but are not up to date with the latest and greatest programming languages.
Otherwise there are Python and Java-Script libraries to investigate
I’m not familiar with the Gallagher API so can’t help there.