All docs This doc
Skip to end of metadata
Go to start of metadata

To use the Yammer connector, add the  <yammer.init>  element in your configuration before carrying out any other Yammer operations. 

Before you start performing various operations with the connector, make sure to import the Yammer certificate to your ESB client keystore.

Follow the below mentioned steps to add valid certificate to access Yammer API over https into the ESB client keystore:

  1. Extract the certificate from browse by navigating to ' https://www.yammer.com/ ' and click the lock icon on the address bar to view the certificate.
  2. Place the downloaded certificate into "Yammer_CONNECTOR_HOME/src/test/resources/keystores/products" folder.
  3. Navigate to "Yammer_CONNECTOR_HOME/src/test/resources/keystores/products/" using command prompt and execute the following command.
  4. This command will import Yammer certificate in to keystore. Give "wso2carbon" as password.To import the certificate give "wso2carbon" as password. Press "Y" to complete certificate import process.

    keytool -importcert -file CERT_FILE_NAME -keystore wso2carbon.jks -alias -alias "CERT_NAME"

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. F or 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  
  • 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
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