Call Api Every Minute Javascript