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/.

Configuring Disqus Operations

This page describes how to connect to Disqus, configure message formatters and builders, and then configure the Disqus connector operations.

Connecting to Disqus

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

Disqus uses an access token for authorization. For more information on authentication, see https://disqus.com/api/docs/auth/.

init
<disqus.init>
    <apiUrl>{$ctx:apiUrl}</apiUrl>
	<apiKey>{$ctx:apiKey}</apiKey>
	<apiSecret>{$ctx:apiSecret}</apiSecret>
    <accessToken>{$ctx:accessToken}</accessToken>
</disqus.init>
Properties 
  • apiUrl: The base end point URL of the Disqus API.
  • apiKey: The API key to access the public data of Disqus forums.
  • apiSecretThe API Secret to access the private data of Disqus forums.
  • accessTokenThe access token to access private data of Disqus forums.

Configuring message formatters and builders

Ensure that the following Axis2 configurations are added and enabled in the <ESB_HOME>\repository\conf\axis2\axis2.xml file.

Required message formatter
messageFormatters
<messageFormatter contentType="multipart/form-data" class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
Required message builder
messageBuilders
<messageBuilder contentType="multipart/form-data" class="org.wso2.carbon.relay.BinaryRelayBuilder"/>

Ensure that the following Axis configurations are disabled (if already enabled) in the <ESB_HOME>\repository\conf\axis2\axis2.xml file.

Message formatter to disable
messageFormatters
<messageFormatter contentType="multipart/form-data" class="org.apache.axis2.transport.http.MultipartFormDataFormatter"/>
Message builder to disable
messageBuilders
<messageBuilder contentType="multipart/form-data" class="org.apache.axis2.builder.MultipartFormDataBuilder"/>

Configuring operations

Now that you have connected to Disqus and configured the message formatters and builders, use the information in the following topics to perform various operations with the connector.