sample to call apis in succession