Skip to content

🌐 Asana related connectors and automation logics

License

Notifications You must be signed in to change notification settings

InteractorOSS/Asana

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Summary

  • Integrate with Asana API
  • Extract data from Asana
  • Iterate over the data and filter only the relevant

API AutoFlow Version:

Configuration config.json was created using AutoFlow version 0.2.5

Need help?

Is you have questions about this example, feel free to post your question on the community "Ask Questions" website.

Asana integration + Data extraction

Flow overview

  1. HTTP Server
  2. Endpoint (Method: GET)
  3. Action communication/http-request to make the HTTP API call to Asana
  4. Action json/decode to make the JSON easier to use
  5. Action data/set to create an empty array for storing the extracted database
  6. Action iteration/for-each to iterate over the Asana data which is in array
  7. Action array/insert-at to insert the extracted data into the array
  8. Action data/set to set the result in the response body Image

Simulated Mock data

When build API solution, it is easier to mock the data, which makes it easier to build and test the solution.

Image

Step 1. Make HTTP API Call to Asana

The query comes from the user which consists of ID and Key. In our solution, you can simulate that. The returned data is stored in a new variable called "result"

Image

Step 2. Decode JSON data

Asana returns the data in JSON format. We can use the json/decode action to put the data in a more accessible format.

Image

Step 3. Extract just the list

Extract the list from the data returned from Asana API

Image

Step 4. Create (declare) empty array

Array is commonly used to structure extracted data. Before we iterate over the Asana data, we use data set to delcare/create an empty array.

Image

Step 5. Iterate over Asana data

Notice that decoded Asana data was saved in a variable called "result_decoded". Each element's index and value are stored in index and value variables respectively.

Image

Step 6. Insert only the relevant data

As the Asana data is iterated, array/insert-at action inserts the selected data into the "sorted" array that was created earlier

Image

Step 7. Set data to response body

To make the data available, data/set action is used to set data in the response body.

Image

Configuring Asana API

For Additional help on Asana API: https://asana.com/guide/help/api/api

Get Asana Key (you must be signed in) https://app.asana.com/0/developer-console

About

🌐 Asana related connectors and automation logics

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published