Live from SPC12-Developing Yammer Solutions for Office and SharePoint

Written by Yves

November 15, 2012

Speakers : Mike Ammerlaan, Neil McCarthy

To integrate Yammer in an App, “Yammer Embed??? is what to use. It provides support for profile information and also communicates with the Yammer platform. When conversation is started in your application, the embed will also post it on the Yammer network. Conversation can be at the site level or at the item or document level, which then uses the Open Graph protocol.

Yammer is exposed as a set of protocols and APIs that allow to build any kind of application (example of an ASP.NET application). Documentation can be found at http://developer.yammer.com .

An App needs a key (ClientID) and can be proposed in the company’s App Store. From the Yammer web application, your application has to be registered, then keys and tokens are delivered. Some other information have to be filled, such as the website and URIs.

No server-side code is needed. Using server-side code is more difficult than using JavaScript. It can be done using Javascript (example shown). A single reference to the yam.js is needed in the HTML. In that reference, that is where the ClientID is specified. OAuth is used to authorize the application.

REST APIs supports Messages (be careful of not flooding the feeds of users), Groups, Users, Suggestions, Autocomplete, Search and Networks.

Activity story is composed by an actor, an object and an activity (Robert Red has Updated this File). Activity stories appear in the Activity feed (“Recent Activity). It contains a URL (i.e. to a document), a Type, an Image, a Title, the Name and the e-mail address of the Actor, an Action (i.e. Update. It also supports custom actions), and a Message.

From SharePoint, the Remote Event Receivers can be used to publish activities happening on SharePoint to Yammer. But, in order to work, the OAuth token must be cached before to be reused when calling the Yammer REST APIs. For example, for each update on a document or list item, the Yammer APIs can be called.

User-enabled and Admin-enabled Apps need the non-free version of Yammer. Admin-enabled Apps are useful for posting information on behalf of users (impersonation).

Global Yammer Apps Development steps : Register the app, development, list the App in the network’s directory, describe the App, submit the app to Yammer, list in every network’s directory. The last 3 steps are only required for Global Apps.

To export Yammer data, there is a Data Export API which generates a zipped file containing the data.

You May Also Like…

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *