How to connect to Reltio through domo
Hi Team,
I am trying to connect to Reltio via api connector. Since the connector is not available in repository I am trying to build it manually.
Connecting to reltio consists of calling an API with username and password. The API uses a basic authentication with base64 encoded Authorization header. Also the URL consists of query parameters like username , password and grantType.
I am using the below script, but it is not working. Can you please help me in this:
Script:
//This logging is here for testing! Remove before publishing your connector
DOMO.log('metadata.account.username: ' + metadata.account.username);
DOMO.log('metadata.account.password: ' + metadata.account.password );
var encodedData = DOMO.b64EncodeUnicode(metadata.account.username + ':' + metadata.account.password);
var metadata.account.user = 'requisite username';
var metadata.account.pass = 'requisite password';
httprequest.addHeader('Authorization', 'Basic ' + encodedData);
var res = httprequest.get('https://auth.reltio.com/oauth/token?username=' + metadata.account.user&'password=' + metadata.account.pass&'grant_type=password');
if(res.indexOf('Account.Name') > 0){
auth.authenticationSuccess('Success');
} else {
auth.authenticationFailed('Failed');
}
Comments
-
Hi Team,
Any updates on this?
0
Categories
- All Categories
- 1.4K Product Ideas
- 1.4K Ideas Exchange
- 1.4K Connect
- 1.1K Connectors
- 282 Workbench
- 3 Cloud Amplifier
- 4 Federated
- 2.8K Transform
- 86 SQL DataFlows
- 548 Datasets
- 2.2K Magic ETL
- 3.2K Visualize
- 2.3K Charting
- 544 Beast Mode
- App Studio
- 26 Variables
- 566 Automate
- 134 Apps
- 411 APIs & Domo Developer
- 21 Workflows
- DomoAI
- 28 Predict
- 12 Jupyter Workspaces
- 16 R & Python Tiles
- 345 Distribute
- 87 Domo Everywhere
- 257 Scheduled Reports
- 1 Software Integrations
- 85 Manage
- 84 Governance & Security
- 8 Product Release Questions
- Community Forums
- 41 Getting Started
- 27 Community Member Introductions
- 81 Community Announcements
- 4.8K Archive