2014-10-03 67 views
1

Yammer的活动流,请访问:如何使用Yammer API获取过滤的活动流?

https://www.yammer.com/api/v1/streams/activities.json?access_token= 

这成功地导致所有近期的活动,如:

{ 
"items": [ 
    { 
     "id": "https://stackoverflow.com/users/www.yammer.com-341514-1508953644/rollups/45191477209921-45191477209921", 
     "unseen": true, 
     "icon": "/images/notifications/page_add.png", 
     "icon_name": null, 
     "category": "file-create", 
     "message": "[[user:1508783078]] uploaded [[uploaded_file:24511980]].", 
     "heading": "", 
     "created_at": "2014/10/02 07:07:42 +0000", 
     "objects": [], 
     "actions": [], 
     "subject": { 
      "type": "uploaded_file", 
      "id": 24511980 
     }, 
     "meta": null, 
     "client_type": "unknown", 
     "client_url": "https://www.yammer.com", 
     "client_icon": "https://mug0.assets-yammer.com/mugshot/images/16x16/3rd_party.png", 
     "client_large_icon": "https://mug0.assets-yammer.com/mugshot/images/75x75/3rd_party.png", 
     "image": "https://mug0.assets-yammer.com/mugshot/images/48x48/no_photo.png", 
     "third_party": false 
    }, 
    { 
     "id": "https://stackoverflow.com/users/www.yammer.com-341514-1508953644/rollups/45191475863746-45191475863746", 
     "unseen": true, 
     "icon": "/images/notifications/page_add.png", 
     "icon_name": "page", 
     "category": "file-download", 
     "message": "[[user:1508783078]] downloaded [[uploaded_file:24373320]] from the [[group:3455089]] group.", 
     "heading": "", 
     "created_at": "2014/10/02 07:07:00 +0000", 
     "objects": [ 
      { 
       "id": 24373320, 
       "type": "uploaded_file" 
      } 
     ], 
     "actions": [], 
     "subject": { 
      "type": "uploaded_file", 
      "id": 24373320 
     }, 
     "meta": null, 
     "client_type": "unknown", 
     "client_url": "https://www.yammer.com", 
     "client_icon": "https://mug0.assets-yammer.com/mugshot/images/16x16/3rd_party.png", 
     "client_large_icon": "https://mug0.assets-yammer.com/mugshot/images/75x75/3rd_party.png", 
     "image": "https://mug0.assets-yammer.com/mugshot/images/48x48/no_photo.png", 
     "third_party": false 
    }, 
]} 

问题: 我想以后一定把所有的近期活动时间戳或某个偏移量之后。有没有任何查询参数?

+1

这是不支持的API,它是随时,恕不另行通知更改要将这最后一个活动较老的活动。在其上构建解决方案是有风险的。 – 2016-01-23 02:08:29

+0

我们认为我们可以在我们的应用程序中使用这个API,让用户能够浏览最近发生的事情。我们使用工作区(组)的概念,人们在同一个项目上工作。用户可以是多个工作空间的成员。当某人在工作区中做某些事情时,我们可以发布到'activity.json'端点,然后在我们的应用程序的某处从'streams/activities.json'获取最近的活动并将其显示给用户。这是一个好主意吗?是否有任何替代品使用Yammer API? V2如何?我们也想定制最近的活动的用户界面。 – Salivan 2017-08-21 14:18:20

回答

0

这是

older_than="https://stackoverflow.com/users/www.yammer.com-341514-1508953644/rollups/45191475863746-45191475863746" 

,将返回所有与您在采样返回值

相关问题