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 TradeGecko Operations
To use the TradeGecko connector, add the <tradegecko.init>
element in your configuration before carrying out any other TradeGecko operations.
Before you start performing various operations with the connector, make sure to import the Tradegecko certificate to your ESB client keystore.
Follow the below mentioned steps to add valid certificate to access Tradegecko API over https into the ESB client keystore:
- Extract the certificate from browse by navigating to ' https://api.tradegecko.com ' and click the lock icon on the address bar to view the certificate.
- Place the downloaded certificate into "Tradegecko_CONNECTOR_HOME/src/test/resources/keystores/products" folder.
- Navigate to "Tradegecko_CONNECTOR_HOME/src/test/resources/keystores/products/" using command prompt and execute the following command.
This command will import Tradegecko 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"
TradeGecko uses an authorization code, which is a key that is used to retrieve the access token. To acquire an authorization code, you must send your user to the authorization endpoint. For more information on authentication, see http://developer.tradegecko.com/developer/getting-an-authorization-code/.
<tradegecko.init> <apiUrl>{$ctx:apiUrl}</apiUrl> <accessToken>{$ctx:accessToken}</accessToken> </tradegecko.init>
Properties
-
apiUrl:
The base URL of the TradeGecko API. -
accessToken:
The access token to access back-end services.
Now that you have connected to TradeGecko, use the information in the following topics to perform various operations with the connector.