문제

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?

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. 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".

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.

Thanks,

Ger

도움이 되었습니까?

해결책

yes, you can

>   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.");
>                 }
>             });

다른 팁

You can use this free service to get your results.

https://www.axceler.io

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top