Any Asana API endpoints can be accessed with the Paragon SDK as shown in this example.
1
// You can find your project ID in the Overview tab of any Integration
2
3
// Authenticate the user
4
paragon.authenticate(<ProjectId>,<UserToken>);
5
6
// List files
7
await paragon.request("asana","tasks",{
8
method:"POST",
9
body:{
10
"name":"Water the plants",
11
"due_on":"2019-09-15"
12
}
13
});
Copied!
Building Asana workflows
Once your Asana account is connected, you can add steps to perform the following actions:
Create Comment
Create Project
Get Projects
Get Project by ID
Create Task
Update Task
Get Tasks
Get Task by ID
Get Teams
Get Workspaces
When creating or updating tasks in Asana, you can reference data from previous steps by typing {{ to invoke the variable menu.
Using Webhook Triggers
Webhook triggers can be used to run workflows based on events in your users' Asana account. For example, you might want to trigger a workflow whenever tasks are updated to sync your users' Asana Tasks to your application in real-time.
You can find the full list of Webhook Triggers for Asana below: