Example code for interacting with the Zmags Publication API