AutoWeb can get output from the response body and headers.
When you configure an output field you need to specify how AutoWeb can access it.
For example, if an API would output something like
{ "account_id": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc", "name": { "given_name": "Franz", "surname": "Ferdinand", "familiar_name": "Franz", "display_name": "Franz Ferdinand (Personal)" }, "emails": [ { "address":"franz@dropbox.com" }, { "address":"franz.ferdinand@dropbox.com" }, ] }
then if you wanted to get
- account id: set Json Path to “account_id”
- user’s name: set Json Path to “name.given_name” because that’s the json “path” you need to take to get to the wanted field
- all user’s email addresses: set Json Path to “emails.address” and set “Is Array” to checked. This will create a Tasker array with all the values that follow the given “path”