domonodo - WIP node.js library for using new Domo APIs
I'm throwing together a basic node.js library based on your API documentation, as many of our WorkBench jobs are running node scripts to pull data in from our third-party services. I just started on it today so it's very much a work in progress.
You can find it on github: https://github.com/eibbors/domonodo
Issues as of this post:
- I'm currently running all the tests against a live production instance so I haven't been able to test the delete/create user functionality and I get an HTTP 500 error when trying to update a user's information. If anyone can help with these, that would be much appreciated!
- Still need to setup the dataset APIs. I will try to get something simple out this week.
Thanks for your time!
Best Answer
-
Just got off the phone with Domo Support and everything is working now. There are some required fields for each request not necessarily specified in the documentation. For example, to update users you need at least the email, name, and role fields.
I was told they'd be updating the docs or modifying the API when they get a chance.
1
Answers
-
This is awesome. Thanks for sharing. I am in close contact with the API owners so if you have issues let me know.
2 -
I've actually been having issues with all of the requests that use PUT (and maybe POST). I keep getting a JSON object with an HTTP 500 error:
{ status: 500,
statusReason: 'Internal Server Error',
message: 'Internal Server Error',
toe: '2MRF9S7TIE-POTN6-VO14T' }I've triple checked that I'm sending everything according to the API documentation. Is there any way you could get me more information based on the toe?
0 -
Here is the code I use (that works) to update a user with a "put" command in .net
try {
accessToken = Session["oauthtoken"].ToString();
client = new WebClient();
client.Headers.Add("Content-Type: application/json");
client.Headers.Add("Accept: application/json");
client.Headers.Add("Authorization: bearer "+accessToken);
myparameters = "{\"title\":\""+UserTitle+"\",\"email\":\""+UserEmail+"\",\"role\":\""+UserRole+"\",\"name\":\""+UserName+"\"}";
downloadStringUser= client.UploadString(urlinput+"/v1/users/"+userid,"PUT",myparameters);0 -
I thought I'd update that the issue I was having has been resolved. You need to setup the clientId/clientSecret as a user assigned the Administrator role. The error reporting was improved this week and now notes this as the issue.
If the API docs haven't been updated as well, that should definitely be noted somewhere on there.
0 -
Actually still having problems now that I have admin credentials. Will try and update the thread if we're able to iron out what's actually going on.
0 -
Just got off the phone with Domo Support and everything is working now. There are some required fields for each request not necessarily specified in the documentation. For example, to update users you need at least the email, name, and role fields.
I was told they'd be updating the docs or modifying the API when they get a chance.
1
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 753 Beast Mode
- 61 App Studio
- 41 Variables
- 692 Automate
- 177 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive