Spark: Twitter api functions set the header and options for curl