mirror of
https://github.com/plankanban/planka.git
synced 2025-12-11 09:13:12 +03:00
API question #751
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Sourgin on GitHub.
Hi, I'm trying to find a way to retrieve a card and start the timer of foretold.
Any one have an idea of where to start? I had tried several times with "Google F12" as to speak, and didn't saw a clear path to it.
Reading trought the code is a little confusing for me right now.
Thx in advancement.
What I want to do is to hook a python script to cicle trought the retrieved data of the cards and display it on an external display, and use a button to start-stop the timmer, I know its doable for me but dont seem to find where to hook to planka.
@meltyshev commented on GitHub:
Hi! You can find the routes here.
GETrequest to/api/cards/:idwill give you a card.PATCHrequest to/api/cards/:idwith timer field will set a timer.Timer field structure:
{"startedAt": "2021-03-22T12:34:56.789Z", "total": 60}ornullto clear it.@johnchristopher commented on GitHub:
While we are on the subject: how do you make API call from curl or httpie ? My credentials don't work, I see in the web UI that there's a token being used though.
@johnchristopher commented on GitHub:
Thanks !
@Sourgin commented on GitHub:
As I have seen u have to "Login" on /api/access-tokens to retrieve a token that is returned as a json
curl -d 'emailOrUsername=USER&password=PASSWORD' http://localhost:3000/api/access-tokensReturns
{"item":"<TOKEN>"}To retrieve a Json with boards
@Sourgin commented on GitHub:
Update on the work in progress, as stated before working on python 3.9
With this u retrieve the Token used for the communication and use it to retrieve the project list.
I will start working on retrieving the timer of a card and start/stop it. Hope this help other people :3