This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

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.

init
<yammer.init>
    <apiUrl>{$ctx:apiUrl}</apiUrl>
    <apiToken>{$ctx:apiToken}</apiToken>
	<responseType>{$ctx:responseType}</responseType>
</yammer.init>
Properties 
  • apiUrlThe 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
messageFormatters
<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
messageBuilders
<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.

  • No labels