With the Trello API, you can:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
trello: {
type: "app",
app: "trello",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.trello.com/1/members/me`,
}, {
token: {
key: this.trello.$auth.oauth_access_token,
secret: this.trello.$auth.oauth_refresh_token,
},
oauthSignerUri: this.trello.$auth.oauth_signer_uri,
})
},
})
Adds a file attachment on a card by referencing a public URL. See the docs here
Create a file attachment on a card by referencing a public URL
Adds an existing label to the specified card. See the docs here
Trello uses OAuth authentication. When you connect your Trello account, Pipedream will open a popup window where you can sign into Trello and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Trello API.
Pipedream requests the following authorization scopes when you connect your account:
read
write
POST
https://trello.com/1/OAuthGetRequestToken
GET
https://trello.com/1/OAuthAuthorizeToken
?
expiration=never
&
scope={{oauth.comma_separated_scopes}}
&
name=Pipedream
&
oauth_token={{oauth.token}}
POST
https://trello.com/1/OAuthGetAccessToken
content-type: application/x-www-form-urlencoded