Giter Site home page Giter Site logo

asana's Introduction

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

asana's People

Contributors

psdjungpulzze avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.