获取徽章授予的日期/时间? [英] Get the date/time a badge was awarded?
问题描述
使用此方法,可以从Stack Overflow的特定用户那里获取徽章:
Using this, it is possible to take the badges from a specific user of Stack Overflow:
library(stackr)
badges <- stack_users(9371451, "badges", num_pages=100000, pagesize=100)
如何添加参数以同时获得授予用户徽章的时间戳?如果可能的话,哪个答案呢?
How can I add a parameter to take also the timestamp that the badge was awarded to the user? And if possible, for which answer?
推荐答案
,您可以使用users/{ids}/timeline
.请参见说明页面:
you can use users/{ids}/timeline
. See description page:
返回{ids}中的用户在网站上执行的操作的子集.
Returns a subset of the actions the users in {ids} have taken on the site.
此方法以用户完成的顺序返回用户的帖子,编辑和获得的徽章.
This method returns users' posts, edits, and earned badges in the order they were accomplished.
library(stackr)
df_timeline <- stackr:::stack_GET("users/9371451/timeline", num_pages = 10000)
:::
是必需的,因为函数stack_GET
是内部命令
The :::
is necessary because the function stack_GET
is an internal command
这篇关于获取徽章授予的日期/时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!