Trello.jl
Trello.TrelloCredTrello.create_boardTrello.create_cardTrello.create_listTrello.delete_boardTrello.get_boardsTrello.get_cardsTrello.get_labelsTrello.get_listsTrello.request
Trello.TrelloCred — Type.TrelloCred(;api_key, api_token)A credentials and identity object for Trello. If the apikey or apitoken are not provided, they will be read from the TRELLO_API_KEY and TRELLO_API_TOKEN environment variables respectively.
Follow the instructions in the Trello Documentation to aquire your credentials.
Trello.create_board — Method.create_board(cred::TrelloCred, name; desc="", id_organization="")Create a new board on the cred account. Board is created completely empty (no lists, nor labels). If id_organization is provided then it will be created within that organization.
Trello.create_card — Method.create_card(cred::TrelloCred, list_id, name; desc="", label_ids::Vector=[])Create a card, on the given list with the name, description and labels as specified.
See Trello docs:
- https://developers.trello.com/reference#cards-2
- https://api.trello.com/1/cards?idList=idList&keepFromSource=all
Trello.create_list — Function.create_list(credit::TrelloCred, board_id, name, pos="bottom")Create a list within the given board, with the given name, at position given by pos
Trello.delete_board — Method.delete_board(cred::TrelloCred, id)Deletes the board.
Trello.get_boards — Method.get_boards(cred::TrelloCred)List all Trello boards on your account. (On the account assoicated with the credentials.)
Trello.get_cards — Method.get_cards(cred::TrelloCred, list_id)Returns all the cards on a given list.
Trello.get_labels — Method.get_labels(cred::TrelloCred, board_id)Get all the labels within a given Trello board.
Trello.get_lists — Method.get_lists(cred::TrelloCred, board_id)Get all the lists within a given Trello board.
Trello.request — Method.request(method, cred, path; query_kwargs...)Send a request to Trello and get back the reponse.
methodis the HTTP method to use, e.g"GET","POST","PUT"or"DELETE"theget_request,post_request,put_requestanddelete_requestare convenience wrapppers ofrequestwith the relevant method.cred: aTrelloCredobject for the account making the request.paththe endpoint being targetted, e.g."/1/boards/5d721712fa52696736da60cf/lists". Often you will need to interpolate a board or list id or similar into this. (like5d721712fa52696736da60cf)query_kwargs: the query to be used with the request, e.gidList="5d72175351f2b73b0f872e03", name="My new Card", desc="The card description", ...
When invoking request it is important to look at the Trello API docs to workout what arguements are allowed, and how they are spelled etc. https://developers.trello.com/reference
Returns the parsed response. Generally as a NamedTuple, or a Vector of NamedTuples
Throws errors if there are HTTP errors.