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.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.8K Visualize
- 2.5K Charting
- 731 Beast Mode
- 55 App Studio
- 40 Variables
- 683 Automate
- 175 Apps
- 452 APIs & Domo Developer
- 46 Workflows
- 10 DomoAI
- 35 Predict
- 14 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 122 Manage
- 119 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 107 Community Announcements
- 4.8K Archive