Seneca Trello-Provider is a plugin for Seneca
Provides access to the Trello API using the Seneca provider convention. Trello API entities are represented as Seneca entities so that they can be accessed using the Seneca entity API and messages.
See seneca-entity and the Seneca Data Entities Tutorial for more details on the Seneca entity API.
NOTE: underlying third party SDK needs to be replaced as out of date and has a security issue.
This open source module is sponsored and supported by Voxgig. |
---|
// Setup - get the key value (<SECRET>) separately from a vault or
// environment variable.
Seneca()
// Get API keys using the seneca-env plugin
.use('env', {
var: {
$TRELLO_APIKEY: String,
$TRELLO_USERTOKEN: String,
}
})
.use('provider', {
provider: {
trello: {
keys: {
apikey: { value: '$TRELLO_APIKEY' },
usertoken: { value: '$TRELLO_USERTOKEN' },
}
}
}
})
.use('trello-provider')
let board = await seneca.entity('provider/trello/board')
.load$('<trello-board-id>')
Console.log('BOARD', board)
board.desc = 'New description'
board = await board.save$()
Console.log('UPDATED BOARD', board)
$ npm install @seneca/trello-provider @seneca/env
None.
- "role":"entity","base":"trello","cmd":"list","name":"board","zone":"provider"
- "role":"entity","base":"trello","cmd":"load","name":"board","zone":"provider"
- "role":"entity","base":"trello","cmd":"save","name":"board","zone":"provider"
- "sys":"provider","get":"info","provider":"trello"
No description provided.
No description provided.
No description provided.
Get information about the Trello SDK.
Check out our sponsors and supporters, Voxgig, on their website here.
The SenecaJS org encourages participation. If you feel you can help in any way, be it with bug reporting, documentation, examples, extra testing, or new features, feel free to create an issue, or better yet - submit a Pull Request. For more information on contribution, please see our Contributing Guide.
Check out the SenecaJS roadmap here!