The Ticktick API allows developers to create and manage tasks and to dos in a variety of environments. With the API, users can manage their personal tasks, tasks from multiple team members, and combine tasks from diverse sources. Here are some examples of what you can build with the Ticktick API:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ticktick: {
type: "app",
app: "ticktick",
}
},
async run({steps, $}) {
const data = {
"title": `Example task from Pipedream`,
}
const message = "Uncomment the code in order to make authenticated requests to Ticktick"
return message
// return await axios($, {
// method: "post",
// url: `https://api.ticktick.com/open/v1/task`,
// headers: {
// Authorization: `Bearer ${this.ticktick.$auth.oauth_access_token}`,
// },
// data,
// })
},
})
Ticktick uses OAuth authentication. When you connect your Ticktick account, Pipedream will open a popup window where you can sign into Ticktick and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Ticktick API.
Pipedream requests the following authorization scopes when you connect your account:
tasks:write
GET
https://ticktick.com/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://ticktick.com/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}
POST
https://ticktick.com/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code