Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.

    Code Block
    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.

Code Block
languagexml
titleinit
<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.

...