@seneca/trello-provider
v0.2.0
Published
Seneca entity provider for the Trello API.
Downloads
2
Readme
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.
| | This open source module is sponsored and supported by Voxgig. | |---|---|
Quick Example
// Setup - get the key value (<SECRET>) separately from a vault or
// environment variable.
Seneca()
.use('provider', {
provider: {
trello: {
keys: {
api: {
value: '<SECRET>'
},
}
}
}
})
.use('trello-provider')
let repo = await seneca.entity('provider/trello/repo')
.load$('senecajs/trello-api-test')
Console.log('REPO DATA', repo)
repo.description = 'New description'
repo = await repo.save$()
Console.log('UPDATED DATA', repo)
Install
$ npm install @seneca/trello-provider
Options
debug
: boolean false
Set plugin options when loading with:
seneca.use('TrelloProvider', { name: value, ... })
Note: foo.bar in the list above means { foo: { bar: ... } }
Action Patterns
- role:entity,base:trello,cmd:load,name:repo,zone:provider
- role:entity,base:trello,cmd:save,name:repo,zone:provider
- sys:provider,get:info,provider:trello
Action Descriptions
« role:entity,base:trello,cmd:load,name:repo,zone:provider
»
Load Trello repository data into an entity.
« role:entity,base:trello,cmd:save,name:repo,zone:provider
»
Update Trello repository data from an entity.
« sys:provider,get:info,provider:trello
»
Get information about the provider.