Stackoverflow声誉(Stackoverflow reputation)

编程入门 行业动态 更新时间:2024-10-27 14:20:55
Stackoverflow声誉(Stackoverflow reputation)

我正试图在我的项目中显示用户的Stack Overflow声誉。 我有用户的电子邮件。 所以用户电子邮件作为输入,我可以得到用户的堆栈溢出声誉?

现在我尝试使用Javascript SDK。 使用堆栈溢出的身份验证方法。 在这种情况下,用户必须登录到堆栈溢出,然后我得到用户的堆栈溢出ID和信誉。

我可以获得没有身份验证的用户传递他的emailid的堆栈溢出声誉? 每当他的声望在堆栈溢出中发生变化时,是否有任何选项可以让我在自己的站点中自动更新堆栈溢出声誉值?

I am trying to display the Stack Overflow reputation of an user in my project. I have the user email. So with user email as input can i get the user's Stack Overflow reputation?

Now i tried using Javascript SDK. Used authenticate method of Stack Overflow. In this case , user must login into Stack Overflow, then i got user's Stack Overflow id and reputation.

Can i get the Stack Overflow reputation of the user passing his emailid without authentication? Everytime when his reputation is changed in Stack Overflow, is there any option for me to auto update his Stack Overflow reputation value in my site also?

最满意答案

出于隐私原因,电子邮件地址在堆栈exchange-api中不可用。 它们在数据资源管理器或数据 缓冲区中都不可用。 据我所知,您将无法根据电子邮件地址查询数据库。

通过身份验证,您可以基于它的id或使用/ me功能找到用户。

关于声誉的更新,我相信你可以使用每天更新声誉的cron作业。

根据您想要表示信誉的方式,您也可以考虑使用Stack Exchange自身提供的Flair选项。 Flairs是描述用户摘要并显示其声誉的小图像。 这些flairs每隔24-36小时由SE更新一次,可以通过以下URL访问: https ://stackoverflow.com/users/flair/user_id_here.png

For privacy reasons email addresses are not available in the stack exchange-api. They are neither available in the data explorer or the datadumps. As far as I know you won't be able to query the database based on the email address.

By authentication you can find the user based on it's id or using the /me functionality.

Regarding the updates of the reputation, I believe you could use a cron job that updates the reputation on a daily basis.

Depending on how you want to represent the reputation, you could also consider using the Flair option which is provided by Stack Exchange itself. Flairs are small images that depict a summary of the user and shows his/her reputation. These flairs are updated every 24-36 hours by SE and can be accessed by the url: https://stackoverflow.com/users/flair/user_id_here.png

更多推荐

本文发布于:2023-08-05 15:44:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1434757.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:声誉   Stackoverflow   reputation

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!