API V2 Release Date

Occasional Contributor

When will v2 of the API be release to developers?

15 Replies
Is there a place where the V2 updates/changes are posted?

Ben - What are you looking for? (from a V2)

Victor - any Yammer Platform updates are shared on the dev blog: https://developer.yammer.com/blog

A phone support rep indicated to me that a "design decision" as he called it, I call it a bug around downloading messages has been resolved in v2 of the API.  The same support rep indicated that yammer.com is already running on v2 of the API.  I asked when v2 would be made available to developers, and the support rep didn't know.  I also asked him where I might signup for updates so I could be one of the first to know when v2 would be released, the support rep didn't know.

What would I like in v2?
1. Download all messages with 1 request.
2.  If not #1, then make the GET messages endpoint work.  Right now it randomly ommits 40% of the data.  This is the bug I report on Stackoverflow and by phone and was told this was a "design decision".
3. A higher messages per request and higher rate limit would be nice!
4. In the export API it'd be nice if the messages.csv included likes data.

Thank you for the details. For #1 and #2 - the answer given by a Yammer Support Engineer on StackOverflow is correct:

"There are technical limits on the number of items that will be returned from the REST API for messages. These were designed for client applications that need recent data. The best option would be to use individual calls to the message endpoint from the REST API (api_url field) to fill in any gaps in your archive. Make sure everything is stored in a persistent fashion."

 

I don't expect #3 to happen.  I will add #4 as a feature request. 

 

RE:  #1 and #3
It was worth a shot.

 

RE: #2
We're trying to download data for all of our messages.  Best I can tell the API is randomly ommitting 40% of the messages.  How is one supposed to programatically know which 40% is missing and thereby what requests of the API will retrieve that missing 40%?  I don't believe it is technically possible.

 

New question...the phone support rep indicated that v2 of the API resolved this missing message data issue.  Sounds like you might be indicating that that isn't accurate.  Would you confirm?

I have been trying nearly the same thing i.e. to GET all messages from Yammer REST API using endpoint messages/sent.json, and I cannot tell you how bumpy this journey has been ! First of all there is no mention of batch size being 20 apart from a casual reference "For example, if you’re currently viewing 20 messages ". Then I found out that "limit" doesn't work as expected - It'll give you anything less than 20 but nothing larger than 20. I somehow fixed it by making sequential AJAX calls and switching to Yampy (Python SDK) from JS SDK so that I can GET message array having length more than 20 by finding oldest message ID and then making sequential calls until GET API returns message array of length zero !

Currently, I am also stuck with random missing data from the GET API - is there any work-around for this ? I haven't yet tried this, but I thought of a way to store all the thread_id in a hash-set and then making GET request to messages/in_thread/threadID.json by iterating over that hash-set. However, with this way I presume that rate limits will bind my hands down.

Please let me know if you can think of a better solution for this.
Hi Ben, just in case it might be helpful to you - I have a little lead in figuring out what 40% data omission means - and how it can somehow be a "design decision".
Yammer API "collapses" the threads so that we only get to see the latest entry on a specific thread and only that latest entry is retrieved from the messages GET API. If we look at the meta-data of the message object, we'll find that the "replied_to_id" has thread_id of the original post (original post has thread_id = message id and replied_to_id = null). So my solution is to store all the thread_id in a hash-set and then find all messages in a specific thread by making calls to messages/in_thread/threadID.json. By iterating over entire hash-set of thread_id, we can GET all messages. However, there is a catch to this - RATE LIMITS.

Would appreciate any help/advice on this.

Vimanyu on my current path I'm using the export API to get all of the messages, then I'm looping through each message using the https://www.yammer.com/api/v1/users/liked_message/:Message_id.json to get the like data.  The rate limit is painful as you'd expect.  Also, the CSV formatting from the export API is poorly formed, which has complicated this effort, but it does appear to be doable.

It's great to see this discussion, and the shared advice from the devs in our Yammer community.

It would help me to go up a level, to understand the use case(s) you're building for.  Please post your use cases/user scenarios. Thanks!

- Sabra, Yammer Platform Team

Gotcha !
Please correct me if I'm wrong, but I presume that you are running the export API in some cron job to update the database periodically. I am actually building an app which crunches data in real time from yammer, so the export API path might not be useful for me :(

Is the /export API also omitting the data ? (I am currently using Yammer OAuth which is omitting the data)

In my case I'm on a team within my company who's goal is to improve internal communication.  Yammer is a big part of our plan.  As such I am exporting all of the message data out of Yammer into our Business Inteligence platform (DOMO) to be able to dig into the data and measure KPI over time.  We can't get meaningful BI out of the Yammer data with 40% of the data missing.  So, that's what I've been working to solve for.

I am using the Yammer Export API to download message data on a nightly basis.  The Yammer Export API does not ommitt any messages, and you can pull all messages in one request.  But, the Yammer Export API does not include Likes data for each message.  So, if you want Likes data, you'll have to work with the Yammer API.

Seems there's no info on release dates there - unless I'm using search wrong. Also, V2 should include views, likes per message, and likes with a datestamp! Why? When you measure "user activity" it would be nice to know the relation between views, likes, and replies. We want to measure the activity of likes and views over a given timeframe as well. Yes, I've seen the aggregate data in the O365 admin console, but it doesn't give us data you can actually use.

I want to be able to answer:

"Hey, how many people visited our group this month?"
"How many people viewed this message posted by our CEO vs if the same message posted by ME"
"Are people more prone to like a message when a hashtag is included?"
"How many likes does it take to get the the center..." - well maybe not this one.

Any update on V2 release and documentation ? I only can find v1 documentation