To use the Yammer connector, add the <yammer.init>
element in your configuration before carrying out any other Yammer operations.
Yammer authentication will be carried out by an OAuth 2 flow beginning with the user authenticating with the user's Yammer credentials. The user then authorizes your app to connect to the user's Yammer network. The end result is a token your app will use to write events to Yammer and retrieve Yammer data. For more information on authentication, see https://developer.yammer.com/introduction/#gs-authentication.
<yammer.init> <apiUrl>{$ctx:apiUrl}</apiUrl> <apiToken>{$ctx:apiToken}</apiToken> <responseType>{$ctx:responseType}</responseType> </yammer.init>
Properties
apiUrl:
The URL to access the Yammer API.apiToken:
The API token of the account.responseType:
The response type of the method call.
Additional information
Ensure that the following Axis2 configurations are added and enabled in the <ESB_HOME>\repository\conf\axis2\axis2.xml
file.
Required message formatters
<messageFormatter contentType="text/html" class="org.wso2.carbon.relay.ExpandingMessageFormatter"/> <messageFormatter contentType="application/octet-stream" class="org.apache.axis2.format.BinaryFormatter"/> <messageFormatter contentType="application/xml" class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
Required message builders
<messageBuilder contentType="text/html" class="org.wso2.carbon.relay.BinaryRelayBuilder"/> <messageBuilder contentType="application/octet-stream" class="org.wso2.carbon.relay.BinaryRelayBuilder"/> <messageBuilder contentType="application/xml" class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
Now that you have connected to Yammer, use the information in the following topics to perform various operations with the connector. After you have completed your configurations, see Testing the Yammer Integration.