Versions Compared

Key

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

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:

  1. 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.
  2. Place the downloaded certificate into "Tradegecko_CONNECTOR_HOME/src/test/resources/keystores/products" folder.
  3. Navigate to "Tradegecko_CONNECTOR_HOME/src/test/resources/keystores/products/" using command prompt and execute the following command.
  4. 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.

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

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

...