Versions Compared

Key

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

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.

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

 

Info
titleNote
Code Block
languagexml
titlegetAccessTokenFromAuthorizationCode
<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.

Code Block
languagexml
titleSample 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

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

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

...