a set of stockMob REST function using Php