[SOLVED] Using Tasker for Android to POST an API Request to Spark Core

I’m no expert, but my guesses are :

  1. exposed_function will get shortened to 8 or 12 characters. See the docs.

  2. you need to use “&” instead of “,” between params? And why are there so many = signs?

1 Like

Extra = sign is because the “param” is just one string, and the exposed_funct breaks down that string into key=val pairs, so you can set multiple variables in your code through POST requests

I think the character limitation may be it. Trying now.

Yes, it worked! I would note, I had to write an entirely new “action” in Tasker with the shortened exposed_function, not just edit the old one, otherwise Tasker gave the same old error message.

1 Like

Below is the Android code snippet to POST to spark core .
http://deepamh-android.blogspot.com/
Please ignore if already known.