getServices api method