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

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

A client ID and secret are required for authentication purposes. For more information, see https://www.producteev.com/api/doc/#AuthenticationOAuth20Flows.

init
<producteev.init>
	<accessToken>{$ctx:accessToken}</accessToken>
 	<apiUrl>{$ctx:apiUrl}</apiUrl>
</producteev.init>
Properties
  • accessToken: OAuth Token to read and manipulate data of the Producteev account.
  • apiUrl: The base end point URL of the Producteev API.

 

Note

getAccessTokenFromAuthorizationCode
<producteev.getAccessTokenFromAuthorizationCode>
    <apiUrl>{$ctx:apiUrl}</apiUrl>
    <authorizationCode>{$ctx:authorizationCode}</authorizationCode>
	<redirectUrl>{$ctx:redirectUrl}</redirectUrl>
</producteev.getAccessTokenFromAuthorizationCode>
Properties
  • apiUrl: The base end point URL of the Producteev API.
  • authorizationCode: Authorization code to be used to obtain the access token.
  • redirectUrl: Redirect URL to be used in the OAuth 2.0 authorization flow.

Following is a sample REST/JSON request that can be handled by the getAccessTokenFromAuthorizationCode operation.

Sample Request for getAccessTokenFromAuthorizationCode
{
    "apiUrl": "https://www.producteev.com",
    "authorizationCode": "MDBjZTFjNDJlZjQwZDFiNmYwMTlkMjU2NmEyMzc3MzY1MzY1N2RhYWMwYjk4OTM1M2M2YjE3ZmQ1OTQxYzMxNQ",
    "redirectUrl": "https://krishantha.net/notes/"
}
Related Producteev documentation

https://www.producteev.com/api/doc/#AuthenticationOAuth20Flows

getAccessTokenFromRefreshToken
<producteev.getAccessTokenFromRefreshToken>
	<apiUrl>{$ctx:apiUrl}</apiUrl>
</producteev.getAccessTokenFromRefreshToken>
Properties
  • apiUrl: The base end point URL of the Producteev API.

Following is a sample REST/JSON request that can be handled by the getAccessTokenFromRefreshToken operation.

Sample Request for getAccessTokenFromRefreshToken
{
    "apiUrl": "https://www.producteev.com"
}
Related Producteev documentation

https://www.producteev.com/api/doc/#AuthenticationOAuth20Flows


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