Skip to content

fiatjaf/trello-webhooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

All webhooks come with the following structure:

{
    "model": {
        "id": "597f3c854baa6e43db4f07d7",
        "name": "testing",
        "desc": "",
        "descData": null,
        "closed": false,
        "idOrganization": "597f2c1a80a903bf442c826e",
        "pinned": false,
        "url": "https://trello.com/b/CGKHU6vL/testing",
        "shortUrl": "https://trello.com/b/CGKHU6vL",
        "prefs": {
            "permissionLevel": "org",
            "voting": "disabled",
            "comments": "org",
            "invitations": "members",
            "selfJoin": true,
            "cardCovers": true,
            "cardAging": "regular",
            "calendarFeedEnabled": false,
            "background": "green",
            "backgroundImage": null,
            "backgroundImageScaled": null,
            "backgroundTile": false,
            "backgroundBrightness": "dark",
            "backgroundBottomColor": "#519839",
            "backgroundTopColor": "#519839",
            "backgroundColor": "#519839",
            "canBePublic": true,
            "canBeOrg": true,
            "canBePrivate": true,
            "canInvite": true
        },
        "labelNames": {
            "green": "",
            "yellow": "",
            "orange": "",
            "red": "",
            "purple": "",
            "blue": "",
            "sky": "",
            "lime": "",
            "pink": "",
            "black": ""
        }
    },
    "action": {
        "id": "59bc8e2ddbd7af0e1474fb0e",
        "idMemberCreator": "50e853a3a98492ed05002257",
        "data": {
            "checklistSource": {
                "name": "7777777777777",
                "id": "59bc8e1b5135cbe9718deb2d"
            },
            "board": {
                "shortLink": "CGKHU6vL",
                "name": "testing",
                "id": "597f3c854baa6e43db4f07d7"
            },
            "checklist": {
                "name": "7777777777777",
                "id": "59bc8e2ddbd7af0e1474fb08"
            }
        },
        "type": "copyChecklist",
        "date": "2017-09-16T02:36:29.244Z",
        "memberCreator": {
            "id": "50e853a3a98492ed05002257",
            "avatarHash": "d2f9f8c8995019e2d3fda00f45d939b8",
            "fullName": "Alfred M",
            "initials": "FJ",
            "username": "alfmx"
        },
        "display": {
            "translationKey": "unknown",
            "entities": {
                "memberCreator": {
                    "type": "member",
                    "id": "50e853a3a98492ed05002257",
                    "username": "alfmx",
                    "text": "Alfred M"
                }
            }
        }
    }
}

model is the model being observed. action is different depending on the event type. Each type of event has its structure in one file in this repository.

Current types of Trello's events

Sorted by alphabetic name

  • addAttachmentToCard
  • addChecklistToCard
  • addLabelToCard
  • addLabelToCard
  • addMemberToBoard
  • addMemberToCard
  • commentCard
  • convertToCardFromCheckItem
  • copyCard
  • copyChecklist
  • createCard
  • createCheckItem
  • createLabel
  • createList
  • deleteAttachmentFromCard
  • deleteCard
  • deleteCheckItem
  • deleteComment
  • deleteLabel
  • emailCard
  • moveCardFromBoard
  • moveCardToBoard
  • moveListFromBoard
  • moveListToBoard
  • removeChecklistFromCard
  • removeLabelFromCard
  • removeMemberFromBoard
  • removeMemberFromCard
  • updateBoard
  • updateCard
  • updateCheckItem
  • updateCheckItemStateOnCard
  • updateChecklist
  • updateComment
  • updateCustomFieldItem
  • updateLabel
  • updateList

About

What data comes in when you get a Trello webhook.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published