DomoR vs DomoSDK?
I have been handed an r script that has is using an accessToken to connect to domo and extract a dataset using a dataset ID. My end goal is to translate this to Python, as I have an existing pipeline in python that needs this dataset.
Initially using the naive approach I tried to connect to Domo using pyDomo but was shunted with a tlshandshakeerror, after some digging I revisited the existing r script which was fairly simple, so it did not make sense that the pydomo version of it would need more than a few lines.
the r script initialised the connection as follows:
DomoR::init(customer, domoAccessToken)
but when i try the same using pydomo:
from pydomo import Domo
domo = Domo(customer,domo_access_token)
HTTPSConnectionPool(host='api.domo.com', port=443): Max retries exceeded with url: /oauth/token?grant_type=client_credentials (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])")))
I get hit with this.
On further digging I see that the DomoR package and the rDomo-SDK are vastly different.
SDK - https://github.com/domoinc/rdomo
DomoR - https://github.com/domoinc-r/DomoR
Is there a simple way to connect to an existing pipeline using an access token in python using pydomo or even the requests library for that matter? since I see that we can hit the API using appropriate headers. Please check out the init and the fetch methods of the DomoR package.
I dont want to overengineer this as it seems like an unnecessary amount of overhead to just fetch a dataset.
Answers
-
Perhaps this thread will help.
https://dojo.domo.com/main/discussion/43640/automatically-export-dataset-from-domo
** Was this post helpful? Click Agree or Like below. **
** Did this solve your problem? Accept it as a solution! **0 -
You can also try the new Jupyter integration. There is a library called domojupyter. It's fairly easy to import the data into the workspace and from their you can use python to perform any other tasks you need.
**Say “Thanks" by clicking the thumbs up in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 622 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 744 Beast Mode
- 58 App Studio
- 41 Variables
- 686 Automate
- 176 Apps
- 453 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 395 Distribute
- 113 Domo Everywhere
- 276 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