scripts to access spark.io through curl