converting code from Postman to Domo
I have managed to write a connector for Akamai however now need to convert it into Domo i.e. change variable names eg. is there any guide or tool for this as ther eare some parts Im not sure about i.e. where its making requests withi Postman that are obviously not relevant wihin Domo.
Comments
-
@Simon_King i assume you're trying to create a custom connector?
https://developer.domo.com/docs/custom-connectors/connector-dev-studio
takes a hot minute to get into the tutorial section, but i wrote an article to build a spotify connector from scratch:
https://www.linkedin.com/pulse/enrich-your-domo-projects-custom-connectors-includes-20-wilson/
Jae Wilson
Check out my 🎥 Domo Training YouTube Channel 👨💻
**Say "Thanks" by clicking the ❤️ in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"0 -
Thanks this is a handy guide however I have already built multiple connectors but always built them directly in Domo. In this situation I have got this working in Postman but now needto convert the code, its this convertion I am after help with. I know that Domo recommend using Postman so was wondering if they have any convertion guides/Tools.
0 -
I think that part of this, I need to include the 'signing algorithm moniker' being used i.e. if this was using EdgeGrid V1, hash message authentication code, SHA–256 as the hash standard it would be "EG1-HMAC-SHA256".
Do we kniow what the DOMO Library uses?
0 -
I think the crux is around my interpretation of the encoding steps:
Postman function:
// Generate Hash - Using sandbox CryptoJS library
function generateHash(key,data) {
var signature = CryptoJS.HmacSHA256(data, key);
signature = signature.toString(CryptoJS.enc.Base64);
return signature;
}I have translated to Domo:
// Generate Hash - Using DOMO library
function generateHash(key,data) {
var signed = DOMO.hmacSHA256(data, key);
signature = DOMO.b64EncodeUnicode(signed);
return signature;
}Anyone spot anything wrong?
0 -
@Simon_King I get that it looks like you're battling with authentication. It's unclear to me where you want to apply this code.
We have an IDE to facilitate connector development that simplifies authentication. And similarly, if you're passing data to APIs inside a custom app, there's tooling in Domo java CLI that supports / simplifies authentication.
I don't understand connector development well enough to troubleshoot code from scratch. Support might be able / willing to help; however, if you're developing outside of the context of tools designed for the task, I can imagine support might be reluctant to engage and instead push you toward pro services.a
Jae Wilson
Check out my 🎥 Domo Training YouTube Channel 👨💻
**Say "Thanks" by clicking the ❤️ in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"0 -
Hi,
Still batling to create this connector.
The 3rd party require the Authorization header to start with the signing algorithm moniker (name of the algorithm) used to sign the request.
I am using 'DOMO.hmacSHA256(data, key);' and declaring that this moniker is EdgeGrid by starting the header with EG1-HMAC-SHA256.
Do we know what the moniker actually is for Domo?
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.9K Visualize
- 2.5K Charting
- 738 Beast Mode
- 56 App Studio
- 40 Variables
- 685 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 124 Manage
- 121 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive