Browse files

Docs reflect change from oath 1 to oath 2

  • Loading branch information...
magott committed May 21, 2012
1 parent 28c08c2 commit 1ae6278744854473fb66d71fbef9c0546a6fb1fb
Showing with 10 additions and 12 deletions.
  1. +10 −12 src/reference/docbook/api.xml
@@ -5,18 +5,16 @@
Spring Social Yammer offers integration with Yammer's REST API with the <interfacename>Yammer</interfacename> interface and its implementation, <classname>YammerTemplate</classname>.
- <para>
- To create an instance of <classname>YammerTemplate</classname>, you may pass in your application's OAuth 1 credentials, along with an access token/secret pair to the constructor:
- </para>
- <programlisting language="java"><![CDATA[
-String consumerKey = "..."; // The application's consumer key
-String consumerSecret = "..."; // The application's consumer secret
-String accessToken = "..."; // The access token granted after OAuth authorization
-String accessTokenSecret = "..."; // The access token secret granted after OAuth authorization
-Yammer yammer = new YammerTemplate(consumerKey, consumerSecret, accessToken, accessTokenSecret);]]>
- </programlisting>
+ <para>
+ Spring Social Yammer's <interfacename>Yammer</interfacename> interface and its implementation, <classname>YammerTemplate</classname> provide the operations needed to interact with Yammer on behalf of a user.
+ Creating an instance of <classname>YammerTemplate</classname> is as simple as constructing it by passing in an authorized access token to the constructor:
+ </para>
+ <programlisting language="java"><![CDATA[
+String accessToken = "f8FX29g..."; // access token received from Yammer after OAuth authorization
+Yammer yammer = new YammerTemplate(accessToken);]]>
+ </programlisting>
If you are using Spring Social's <ulink url="">service provider framework</ulink>, you can get an instance of <interfacename>Yammer</interfacename> from a <interfacename>Connection</interfacename>.

0 comments on commit 1ae6278

Please sign in to comment.