RESTask for Tasker

4.4
271 reviews
10K+
Downloads
Content rating
Everyone
Screenshot image
Screenshot image

About this app

Opt in for beta testing: https://play.google.com/apps/testing/com.freehaha.restask

This is a Tasker plugin providing alternative interface to access RESTful APIs (targeting GET, POST, PUT, DELETE).

This app is intended to work as a plugin to Tasker and does not provide a launcher icon so one must have Tasker installed in order to utilize this application.

*README*
Variables can be set synchronously or asynchronously.

With the default sync setting, the task will wait until the request is finished or is timed-out before executing the next task and you will be able to set the return code/response to local variables. Note that in synced mode you can only set local variables, i.e., variables with all lower-cased letters, this is a limitation of tasker API.

However, in async mode, the task will finish immediately and work in the background so you will not be able to set local variables in it (you can still use local variables for the parameters and stuff). With this mode, you can only set global variables as local variables will not be accessible to other tasks. Following is how to enable setting global variables in async mode:

1. To enable global variable set, you have to enable 'Allow External Access' in Tasker ( menu -> preference -> misc -> Allow External Access')

2. Return variables name should be global (with at least one capital letter) because it is set asynchronously in a different task and will not be accessible if it is set as a local variable.

3. Since the request is performed asynchronously, returned code/response might not be available immediately. If you want to capture the returned code/response, you can set an action to 'Wait Until' the variable 'is set'. But remember to clear the variable beforehand because these variables are global and will remain after tasks finished..
---
Cookies

The cookies will be found in the %hdr_set_cookie variable if your response header variable prefix is set to %hdr. If there are multiple Set-Cookie headers they will stored in the same variable separated by newlines.
---
Feel free to leave comments or send email to me if you have any suggestions to improve this application.

Special thanks to Arno Puder for helping me test the app.
Updated on
Dec 5, 2015

Data safety

Developers can show information here about how their app collects and uses your data. Learn more about data safety
No information available

Ratings and reviews

4.4
255 reviews
A Google user
January 7, 2019
Great little plugin, much nicer and more featureful than Tasker's built-in http Post/Get actions, and a bit easier to configure and use than Joao's AutoWeb. One thing to note is that sometimes a request will time out even though you have connectivity - this seems to be related to Doze/battery optimization, because switching battery optimization off for RESTask seems to fix the problem!
15 people found this review helpful
Did you find this helpful?
A Google user
December 30, 2018
life saver! I needed to be able to trigger some complex actions as part of our home automation setup, and being able to do it via the plug in saved me having to run a web server to proxy the requests and because I didn't need the proxy cut a significant amount of time off the signal getting where I needed it. Fantastic add-on (works with MacroDroid as well)
12 people found this review helpful
Did you find this helpful?
A Google user
April 8, 2019
Unbelievably powerful; Tasker's built-in actions can't even compare! Specify custom headers (user-agent, refer[r]er, keep-alive, etc) and payloads to access even the most obtuse APIs. Use Chrome (desktop) to inspect form submissions, then use this plug-in to mimic the precise actions, for example, (de)activating motion or sound detection on home or work IP cameras based on phone location, or changing recipient email address based on time of day. Could even auto-post wordpress if so desired.
13 people found this review helpful
Did you find this helpful?