API Call | Success Response |
SDP.getVariables().then(function(response) { console.log(response); }).catch(function(response) { console.log(response); }); | [ { "id": "100000000000032357", "type": "string", "secure": false, "value": "admin", "key": "Username" } ] |
Name | Type | Description |
key* | String | Indicates the key of variable whose details are to be fetched. |
API Call | Success Response | Failure Response |
SDP.getVariable(“admin”).then(function(response) { console.log(response); }).catch(function(response) { console.log(response); }); | { "id": "100000000000032357", "type": "string", "secure": false, "value": "john-doe", "key": "admin" } | { "message": "There's no variable available with the provided key" } |
Name | Type | Description |
key* | String | Indicates the key of variable to be updated. |
value | - | Indicated the value to be updated to the variable. If not passed, the variable value will be reset in application. |
API Call | Success Response | Failure Response |
SDP.setVariable(“admin”, “john-doe”).then(function(response) { console.log(response); }).catch(function(response) { console.log(response); }); | { "id": "100000000000032357", "type": "string", "secure": false, "value": "john-doe", "key": "admin" } | { "response_status": { "status_code": 4000, "messages": [ { "status_code": 4001, "field": "value", "error_xpath": "variable.value", "type": "failed", "message": "Value given for value is not valid" } ], "status": "failed" } } |
API Call | Success Response |
SDP.getTempVariables().then(function(response) { console.log(response); }).catch(function(response) { console.log(response); }); | { "passphrase": "*****" } |
Name | Type | Description |
key* | String | Indicates the temporary variable key that specifies which variable details are to be fetched. |
API Call | Success Response |
SDP.getTempVariable(“passphrase).then(function(response) { console.log(response); }).catch(function(response) { console.log(response); }); | { "key": "passphrase", "value": "*****" } |
Name | Type | Description |
key* | String | The key of the temporary variable to be updated. |
value | - | The new value to be configured with the temporary variable. |
API Call | Success Response |
SDP.setTempVariable(“passphrase, “*****”).then(function(response) { console.log(response); }).catch(function(response) { console.log(response); }); | { "message": "Variable saved in application window successfully" } |
API Call | Success Response |
SDP.getConnections().then(function(response) { console.log(response); }).catch(function(response) { console.log(response); }); | { "connections": [ { "authorize_url": "/delugeauth/authenticateConnections/Public__15459854__15421476__1000000000897261", "scopeDisplayString": "read, write, account", "serviceNumber": 104, "dbName": "Public", "groupScopeId": "1000000000118063", "admin": true, "linkName": "2c3d9619-bcea-459d-a1c8-b3b76c393fb9-15459854-trello", "revoke_url": "/delugeauth/revokeConnectionApi?sharedBy=15459854&connectionLinkName=2c3d9619-bcea-459d-a1c8-b3b76c393fb9-15459854-trello&isUserDefined=false&zohoServiceName=SDPOnDemand", "scope_details": [ { "Scope Name": "read", "Scope Value": "read" } ], "scope": [ "read" ], "logo": "trello.png", "connectedServiceId": "1000000000897261", "absolute_logo_url": "https://js.zohostatic.com/dre/images/connections/logos/trello.png", "displayLinkName": "2c3d9619-bcea-459d-a1c8-b3b76c393fb9-15459854-trello", "serviceName": "Trello", "connected": false, "versionId": "1000000000118047", "scoped": true, "adminZuId": 15421476, "sharedBy": 15459854, "userAccess": false, "connectionName": "Automation Widget-trello", "isUserDefinedService": false, "status": 2, "serviceLinkName": "trello" } ], "status": true } |
Name | Type | Description |
connectionLinkName* | String | Specifies which connection details are to be fetched. |
API Call | Success Response | Failure Response |
SDP.getConnection(“trello).then(function(response) { console.log(response); }).catch(function(response) { console.log(response); }); | { "connections": { "authorize_url": "/delugeauth/authenticateConnections/Public__15459854__15421476__1000000000897261", "scopeDisplayString": "read, write, account", "serviceNumber": 104, "dbName": "Public", "groupScopeId": "1000000000118063", "admin": true, "linkName": "2c3d9619-bcea-459d-a1c8-b3b76c393fb9-15459854-trello", "revoke_url": "/delugeauth/revokeConnectionApi?sharedBy=15459854&connectionLinkName=2c3d9619-bcea-459d-a1c8-b3b76c393fb9-15459854-trello&isUserDefined=false&zohoServiceName=SDPOnDemand", "scope_details": [ { "Scope Name": "read", "Scope Value": "read" } ], "scope": [ "read" ], "logo": "trello.png", "connectedServiceId": "1000000000897261", "absolute_logo_url": "https://js.zohostatic.com/dre/images/connections/logos/trello.png", "displayLinkName": "2c3d9619-bcea-459d-a1c8-b3b76c393fb9-15459854-trello", "serviceName": "Trello", "connected": false, "versionId": "1000000000118047", "scoped": true, "adminZuId": 15421476, "sharedBy": 15459854, "userAccess": false, "connectionName": "Automation Widget-trello", "isUserDefinedService": false, "status": 2, "serviceLinkName": "trello" }, "status": true } | { "response_status": { "status_code": 4000, "messages": [ { "status_code": 4001, "type": "failed", "message": "No Connection available in the given link name" } ], "status": "failed" } } |
Name | Type | Description |
connectionLinkName* | String | Specifies the connection to be authorized. |
API Call | Success Response | Failure Response |
SDP.authorizeConnection(“trello”).then(function(response) { console.log(response); }).catch(function(response) { console.log(response); }); | { "connections": { "authorize_url": "/delugeauth/authenticateConnections/Public__15459854__15421476__1000000000897261", "scopeDisplayString": "read, write, account", "serviceNumber": 104, "dbName": "Public", "groupScopeId": "1000000000118063", "admin": true, "linkName": "2c3d9619-bcea-459d-a1c8-b3b76c393fb9-15459854-trello", "revoke_url": "/delugeauth/revokeConnectionApi?sharedBy=15459854&connectionLinkName=2c3d9619-bcea-459d-a1c8-b3b76c393fb9-15459854-trello&isUserDefined=false&zohoServiceName=SDPOnDemand", "scope_details": [ { "Scope Name": "read", "Scope Value": "read" } ], "scope": [ "read" ], "logo": "trello.png", "connectedServiceId": "1000000000897261", "absolute_logo_url": "https://js.zohostatic.com/dre/images/connections/logos/trello.png", "displayLinkName": "2c3d9619-bcea-459d-a1c8-b3b76c393fb9-15459854-trello", "serviceName": "Trello", "connected": false, "versionId": "1000000000118047", "scoped": true, "adminZuId": 15421476, "sharedBy": 15459854, "userAccess": false, "connectionName": "Automation Widget-trello", "isUserDefinedService": false, "status": 2, "serviceLinkName": "trello" }, "status": true } | { "response_status": { "status_code": 4000, "messages": [ { "status_code": 4001, "type": "failed", "message": "No Connection available in the given link name" } ], "status": "failed" } } |
Name | Type | Description |
connectionLinkName* | String | Specifies the connection to be revoked. |
API Call | Success Response | Failure Response |
SDP.revokeConnection(“trello).then(function(response) { console.log(response); }).catch(function(response) { console.log(response); }); | { "response": "Connection revoked successfully" } | { "response_status": { "status_code": 4000, "messages": [ { "status_code": 4004, "type": "failed", "message": "Connection revoked already" } ], "status": "failed" } } |