Skip to content

senecajs/seneca-trello-provider

Repository files navigation

Seneca Trello-Provider

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.

npm version build Coverage Status Known Vulnerabilities DeepScan grade Maintainability

Voxgig 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()
  // 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)

Install

$ npm install @seneca/trello-provider @seneca/env

Options

None.

Action Patterns

Action Descriptions

« "role":"entity","base":"trello","cmd":"list","name":"board","zone":"provider" »

No description provided.


« "role":"entity","base":"trello","cmd":"load","name":"board","zone":"provider" »

No description provided.


« "role":"entity","base":"trello","cmd":"save","name":"board","zone":"provider" »

No description provided.


« "sys":"provider","get":"info","provider":"trello" »

Get information about the Trello SDK.


More Examples

Motivation

Support

Check out our sponsors and supporters, Voxgig, on their website here.

API

Contributing

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.

Background

Check out the SenecaJS roadmap here!

About

Seneca plugin that provides access to the Trello API.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •