Update replygif script to use the new API