Using the Asana API, you can build software that integrates with Asana to help your team track their work. For example, you could build a tool to help your team plan their work for the week, or a reporting tool to help you track progress on a project.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
asana: {
type: "app",
app: "asana",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.asana.com/api/1.0/users/me`,
headers: {
Authorization: `Bearer ${this.asana.$auth.oauth_access_token}`,
},
})
},
})
Emit new event for each new project added to a workspace.
Emits an event for each new task added to a project.
Emit new event for each story added to a project.
Add a task to a specific, existing section. This will remove the task from other sections of the project. See the docs here
Creates a new subtask and adds it to the parent task. See the docs here
Asana uses OAuth authentication. When you connect your Asana account, Pipedream will open a popup window where you can sign into Asana and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Asana API.
Pipedream requests the following authorization scopes when you connect your account:
GET
https://app.asana.com/-/oauth_authorize
?
client_id={{oauth.client_id}}
&
state={{oauth.state}}
&
redirect_uri={{oauth.redirect_uri}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
POST
https://app.asana.com/-/oauth_token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
grant_type=authorization_code
&
code={{oauth.code}}
&
redirect_uri={{oauth.redirect_uri}}
POST
https://app.asana.com/-/oauth_token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}