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 |
---|
|
<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 |
---|
|
Code Block |
---|
language | xml |
---|
title | getAccessTokenFromAuthorizationCode |
---|
| <producteev.getAccessTokenFromAuthorizationCode>
<apiUrl>{$ctx:apiUrl}</apiUrl>
<authorizationCode>{$ctx:authorizationCode}</authorizationCode>
<redirectUrl>{$ctx:redirectUrl}</redirectUrl>
</producteev.getAccessTokenFromAuthorizationCode> |
PropertiesapiUrl: 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 |
---|
language | xml |
---|
title | Sample Request for getAccessTokenFromAuthorizationCode |
---|
| {
"apiUrl": "https://www.producteev.com",
"authorizationCode": "MDBjZTFjNDJlZjQwZDFiNmYwMTlkMjU2NmEyMzc3MzY1MzY1N2RhYWMwYjk4OTM1M2M2YjE3ZmQ1OTQxYzMxNQ",
"redirectUrl": "https://krishantha.net/notes/"
} |
https://www.producteev.com/api/doc/#AuthenticationOAuth20Flows Code Block |
---|
language | xml |
---|
title | getAccessTokenFromRefreshToken |
---|
| <producteev.getAccessTokenFromRefreshToken>
<apiUrl>{$ctx:apiUrl}</apiUrl>
</producteev.getAccessTokenFromRefreshToken> |
PropertiesapiUrl: 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 |
---|
language | xml |
---|
title | Sample Request for getAccessTokenFromRefreshToken |
---|
| {
"apiUrl": "https://www.producteev.com"
} |
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.
...