clock script using snsapi