Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

401 no matter what I do, I can get it to work with curl #38

Open
vecst opened this issue Sep 18, 2024 · 2 comments
Open

401 no matter what I do, I can get it to work with curl #38

vecst opened this issue Sep 18, 2024 · 2 comments

Comments

@vecst
Copy link

vecst commented Sep 18, 2024

I cannot get the API to connect to my kanboard. Everything I've tried leads me to a 401, except using curl.
Curl only works if I use X-API-Auth. I don't know how to use custom headers with python API.
Please help me. I'll provide any info needed

@vecst
Copy link
Author

vecst commented Sep 19, 2024

I was able to get it figured out, well a friend helped me. There's an optional 4th parameter that seems to be missing any documentation that lets you set the header type.

@AloisMahdal
Copy link
Contributor

Note that I've also had trouble making it work just following the doc; what I ended up was something like this:

kc = kanboard.Client(...)
kc.execute(
    method='createTask',
    project_id=1,
    title="hello",
    description="world",
)

and using method names and arguments from the API documentation, eg. this page for createTask: https://docs.kanboard.org/v1/api/task_procedures/#createtask

I suspect the doc could be improved, but knowing that this is a low-maintenance project I don't expect author to fix it; maybe if someone came up with concrete MR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants