GithubHelp home page GithubHelp logo

powertrello's Introduction

PowerTrello

Build status

PowerTrello is a PowerShell module for interacting with the Trello web service.

How to Use

  1. Sign up for an API key and secret for your Trello subscription here.

  2. Open up your PowerShell console as administrator.

  3. Download the PowerTrello module from the PowerShell Gallery.

    Install-Module PowerTrello

  4. Retrieve and save a token from Trello.

    1. Run Set-TrelloAccessToken -ApiKey MYAPIKEY
    2. Follow the on-screen instructions.
  5. Run any of the functions in the module to interact with your Trello boards. For example, just to ensure you can communicate with Trello, run the Get-TrelloBoard function. This function should return all of your Trello boards.

powertrello's People

Contributors

adbertram avatar bmorrisondev avatar camusicjunkie avatar lboening avatar marcusit avatar ryan2065 avatar silverl avatar thomassvensen avatar tjseit avatar windos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

powertrello's Issues

Issues with TLS, and README

The version of your Trello module I've been using for a while stopped working this month.

Creating board
New-TrelloBoard : The request was aborted: Could not create SSL/TLS secure channel.

Trying to get things working again.

Saw you'd made updates, so I'm updating my dependencies.

Looks like perhaps you renamed the module from Trello to PowerTrello? Since the renaming, the readme is no longer valid.

Instances of Trello in your readme should be changed to PowerTrello.

FYI: PsGet doesn't look like a viable project anymore. I cannot install it. Their server is returning 500 errors. If that continues, you might consider removing it from your instructions.

I ended up cloning the repo and installing manually. Changed my script references from Trello to PowerTrello. Script wouldn't run, assumed it's the token.

I remade my token and saved to the registry.

I'm now blocked on creating a new board with the following:

Creating board
New-TrelloBoard : The request was aborted: Could not create SSL/TLS secure channel.
At C:\code\devops-general\ServerScripts\Operational\Create-Trello-MonthlyPatchingBoard.ps1:40 char:10
+ $board = New-TrelloBoard -Name "$YearDashMonth Monthly Patching"
+          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,New-TrelloBoard

This is the same issue that I encountered when I first tried to run my script this morning.

It's related to this SO post:
https://stackoverflow.com/questions/41618766/powershell-invoke-webrequest-fails-with-ssl-tls-secure-channel

I placed the following at the top of the module, and it fixed it.

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

Move-TrelloCard to another board giving error 404

Everything has worked so far such as Get-Trelloboard, Get-TrelloList, Get-TrelloCard, New-TrelloCard, and Move-TrelloCard on the same board. When adding the ToBoardName parameter I get the error below. When debugged all variables are populated:

Get-TrelloList : The remote server returned an error: (404) Not Found.
At T:\trello\trello.ps1:48 char:21

  • if (-not ($list = (Get-TrelloList -BoardId $boardId).where({ $_.n ...
    
  •                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
    • FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-TrelloList

Correct way to add PDF attachments by file in New-TrelloCard

Hi Adam,

I have tried -fileSource "C:Path\Path\File.pdf"

and

$File = Get-Item -Path "C:Path\Path\File.pdf"
-fileSource $File

and

$File = [IO.File]::ReadAllBytes("C:Path\Path\File.pdf")
-fileSource $File

and

added 'ContentType' = 'multipart/form-data' to the $RestParams for the Invoke-RestMethod API call.

None work. Removing -fileSource allows the new card to be created. What is the correct way or syntax to add an attachment via New-TrelloCard?
My guess is this has something to do with the encoding as Add-TrelloCardAttachment works fine with .txt but fails with PDF

Update:
I figured it out doing the API call direct. The file needs to be in a form using system.io.fileinfo. I'm on PowerShell 7 and I believe you might have to get into some .NET to make it work on PS5.1.

$FORM = @{
    idList     = "xxxxxx"
    pos        = "top"
    name       = "TestTest"
    fileSource = [system.io.fileinfo]"C:\Path\Path\File.pdf"
}

Invoke-RestMethod -Method Post -Uri "https://api.trello.com/1/cards?$APIKEY" -Form $FORM

Add-TrelloBoardMember by email

Whenever I try to add a trello board member by email it won't set the type the type is always normal instead of what I define

Update-TrelloCard

$paramToTrelloFieldMap = @{
'Name' = 'name'
'Description' = 'description'
'Due' = 'due'
'ListId' = 'idList' }

Description map should be as follows
'Description' = 'desc'

How to use Get-TrelloCard?

I am unable to get a card using the Get-TrelloCard function. What am I missing?

My request
Get-TrelloCard -Board 56aa4b272de6bf290aa1c36f

I get this error
Get-TrelloCard : The property 'Id' cannot be found on this object. Verify that the property exists.At line:1 char:1

  • Get-TrelloCard -Board 56aa4b272de6bf290aa1c36f
  • - CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    - FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-TrelloCard
    

A little help to get started?

I found some help, an article, or a tutorial, I think you wrote. Of course, I lost it. Do you have a link to something that explains how to use this module?

How to get the last comment

Hello,

Already, it's a great job. Thanks for these scripts

I'm trying to retrieve the last comment from a trello card.
How can I do it?

Thanks in advance,
Best regards

IE can no longer be used during setup

During the initial key/token setup, an IE browser is launched to fetch the token.

Trello throws up an announcement that IE will no longer be supported going forward.

It's not possible to complete the setup process as documented.

Get-TrelloBoard can't be piped properly

I have three Trello boards, and currently if I run this command, I get the following output

PS c:\> Get-TrelloBoard | % { "Foo" }
Foo

But the following works and properly breaks up the output:

PS c:\> (Get-TrelloBoard) | % { "Foo" }
Foo
Foo
Foo

I'm not entirely sure WHY it's doing this, I'm not sure if something needs to be done to make the pipelining work properly, but it makes it challenging to do stuff like Get-TrelloBoard | Select Name because I need to keep remembering to wrap in braces.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.