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 Sirportly Operations

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

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

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

  1. Extract the certificate from browse by navigating to ' https://{subdomain}.sirportly.com ' and click the lock icon on the address bar to view the certificate.
  2. Place the downloaded certificate into "Sirportly_CONNECTOR_HOME/src/test/resources/keystores/products" folder.
  3. Navigate to "Sirportly_CONNECTOR_HOME/src/test/resources/keystores/products/" using command prompt and execute the following command.
  4. This command will import Sirportly 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"

There are two ways to authenticate requests to the Sirportly API. This would depend on the application. The two types of authentication are Account authentication and User authentication.  For more information, see https://sirportly.com/docs/api-specification/authentication.

init
<sirportly.init>
	<apiUrl>{$ctx:apiUrl}</apiUrl>
    <apiToken>{$ctx:apiToken}</apiToken>
	<apiSecret>{$ctx:apiSecret}</apiSecret>
</sirportly.init>
Properties
  • apiUrl:  The URL of the Sirportly API.
  • apiToken:  The API token for the Sirportly account.
  • apiSecret:  The API secret for the Sirportly account.

Now that you have connected to Sirportly, use the information in the following topics to perform various operations with the connector.