Linear helps streamline software projects, sprints, tasks, and bug tracking. It's built for high-performance teams.
Go to siteWith the Linear API, you can build a variety of applications that allow users to track their work and progress over time. For example, you could build a task manager that allows users to track their to-do lists and progress on each task, or a project manager that allows users to track their progress on different projects.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
linear: {
type: "app",
app: "linear",
}
},
async run({steps, $}) {
const data = {
"query": `{
user(id: "me") {
id
name
email
}
}`,
}
return await axios($, {
method: "post",
url: `https://api.linear.app/graphql`,
headers: {
Authorization: `Bearer ${this.linear.$auth.oauth_access_token}`,
"Content-Type": `application/json`,
},
data,
})
},
})
Linear (OAuth) uses OAuth authentication. When you connect your Linear (OAuth) account, Pipedream will open a popup window where you can sign into Linear (OAuth) and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Linear (OAuth) API.
Pipedream requests the following authorization scopes when you connect your account:
read
write
issues:create
comments:create
GET
https://linear.app/oauth/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
POST
https://api.linear.app/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}