javascript - how to get json of task list from asana -


i trying .json of list of tasks using javascript. sadly, have had sore time trying find javascript specific documentation, don't know start. answering 1 basic question great, if point me in direction of javascript api docs, love forever! prefferably both though.

you need on server rather in javascript on browser latter exposes api key world (and violates asana's terms of service)

look @ api docs (https://asana.com/developers/api-reference/tasks) under heading "querying tasks" details. command line type following (assuming have curl):

curl -u <api_key>: "https://app.asana.com/api/1.0/tasks?workspace=14916&assignee=me" 

most server side languages have mechanism doing equivalent within script.

if need json delivered browser, would:

  1. fire off ajax request server, providing appropriate details
  2. in script convert request call asana api (adding api key)
  3. receive result on server asana , echo client.
  4. process json in javascript.

bear in mind potentially expensive operation in terms of performance of server. depending on setup/language using, may need plan ensure asana api requests not blocking other requests (they need happen asynchronously).


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -