查找网络上的所有Yammer组,也许可以使用API​​? [英] Find all Yammer groups on the network, perhaps with API?

查看:104
本文介绍了查找网络上的所有Yammer组,也许可以使用API​​?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Yammer网络上进行一些分析,以查看每个组中的成员和帖子的数量,以及该组的创建和最后修改时间.有一种简单的方法吗?

I am trying to do some analytics on our Yammer network to see the number of members and posts in each group, and when the group was created and last modified. Is there an easyish way of doing this?

我已经尝试了以下方法,但几乎可以将我带到那里,但是我认为我首先需要更有效地使用API​​.这是我第一次见过API,如果尝试不合理,我将深感抱歉!

I have tried the following which almost gets me there, but I think I need to use the API more effectively to begin with. This is the first time I have ever seen an API so sorry if my attempt doesn't make sense!

  1. 转到 https://www.yammer.com/api/v1/groups.json?page = 1 并将文本复制到Microsoft word.
  2. https://www.yammer.com/api/v1/groups.json?page = 2
  3. 重复第3页和第4页,直到文件仅包含[]
  4. 进行搜索并替换描述",将其替换为^ p描述"以获取休息时间.
  5. 将其粘贴到Excel中(用一长串文本填充A列)
  6. 使用left(),right()和find()公式获取我需要的信息,例如在"last_message_at"右侧查找文本.
  1. Go to https://www.yammer.com/api/v1/groups.json?page=1 and copy the text to Microsoft word.
  2. Do the same with https://www.yammer.com/api/v1/groups.json?page=2
  3. Repeat for pages 3 and 4, until the file only contains []
  4. Do a search and replace on "description", swapping it for ^p"description" to get breaks.
  5. Paste it into Excel (fills column A with a long string of text)
  6. Use the left(), right() and find() formulas to get the information I need e.g. look for the text to the right of "last_message_at".

使用此方法,我得到了一些数据,但是格式似乎在页面之间发生了变化.如果我两次输入相同的API网址,则会得到2个完全不同的输出,因此我断行的地方会四处移动.这使我有时有时在一行上有两个不同组的数据.

Using this method I get some data, but the format seems to change between pages. If I enter the same API url twice I get 2 completely different outputs so the place where I break the lines moves around. This causes me to sometimes have data for two different groups on a single line.

希望您能给我一些建议,我愿意接受所有想法.

I hope you can give me some advice, I am open to all ideas.

谢谢

Ger

推荐答案

是的,您可以

>   yam.platform.request({
>                 // yam.request({
>                 url: "groups.json?mine=1",
>                 method: "GET",
>                 data: {},
>                 success: function (group) {
>                     //here is your result iterate it or display logic 
> 
>                 },
> 
>                 error: function (group) {
>                     console.error("There was an error with the request.");
>                 }
>             });

这篇关于查找网络上的所有Yammer组,也许可以使用API​​?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆