-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
如何获取所有用户的看板和用户名,邮箱 #2284
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
Comments
https://github.com/wekan/wekan/wiki/REST-API#example-call---as-form-data Login Admin user:
=> Bearer 12345
|
我是想获取到所有卡片或者看板,每天定时发送给看板或者卡片有关联人员。 以便方便管理,在python API接口中并没有看到相关的API接口。 |
https://wekan.github.io/api/v2.55/?python#new_card
At every hour
And add-cards.py:
=>
|
And:
|
1.通过这个add-card.py能直接获取到用户么? |
import requests pa_user={'user':'admin'} 我已经进行过使用管理账号登陆验证了,这个admin的看板信息还是没有输出出来,statuscode:401 |
UserSecurity怎么使用,怎么调用?需要什么参数? |
import requests r = requests.get('/api/users/{user}/boards', params={ }, headers = headers) print r.json() |
Sorry I'm busy this week. Maybe I could have time to look at it next week. |
Boards, users etc REST API code here: Maybe something there does not work yet. |
好的,谢谢您。所有需要调用api接口的都需要这个方法进行调用,UserSecurity。 这个一直不知道怎么调用他。 如果您有时间,帮我看下这个问题 谢谢 |
@chenghongxi 先通过/users/login拿到token,然后在调用具体需要验证的接口时在Header里面增加Authorization: Bearer {token}就可以了,注意Bearer是固定的,后面有一个空格 |
有什么例子么? 可以看一下
…------------------ 原始邮件 ------------------
发件人: "zhangsn"<notifications@github.com>;
发送时间: 2019年5月5日(星期天) 晚上10:18
收件人: "wekan/wekan"<wekan@noreply.github.com>;
抄送: "小白"<422459409@qq.com>;"Comment"<comment@noreply.github.com>;
主题: Re: [wekan/wekan] 如何获取所有用户的看板和用户名,邮箱 (#2284)
好的,谢谢您。所有需要调用api接口的都需要这个方法进行调用,UserSecurity。 这个一直不知道怎么调用他。 如果您有时间,帮我看下这个问题 谢谢
先通过/users/login拿到token,然后在调用具体需要验证的接口时在Header里面增加Authorization: Bearer {token}就可以了,注意Bearer是固定的,后面有一个空格
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Try to install https://github.com/wekan/wekan-gogs and look at it's code how it works. |
curl -H "Authorization: Bearer a6DM_gOPRwBdynfXaGBaiiEwTiAuigR_Fj_81QmNpnf"
http://localhost:3000/api/users/XQMZgynx9M79qTtQc/boards
使用如上接口,无法获取到看板的信息。
The text was updated successfully, but these errors were encountered: