Added complementary API call example for Spark.publish()