{"id":15731783,"url":"https://github.com/teppeis/redash-client","last_synced_at":"2025-04-05T20:08:18.471Z","repository":{"id":25008814,"uuid":"102855454","full_name":"teppeis/redash-client","owner":"teppeis","description":"Redash API Client for JavaScript","archived":false,"fork":false,"pushed_at":"2025-03-27T19:37:14.000Z","size":1790,"stargazers_count":16,"open_issues_count":15,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T19:06:51.888Z","etag":null,"topics":["api","redux"],"latest_commit_sha":null,"homepage":"https://teppeis.github.io/redash-client/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/teppeis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-08T11:42:18.000Z","updated_at":"2021-10-20T15:34:28.000Z","dependencies_parsed_at":"2023-09-26T18:14:03.087Z","dependency_job_id":"3d9ec0d6-02fe-4c40-ad13-b8b1dfe95c9b","html_url":"https://github.com/teppeis/redash-client","commit_stats":{"total_commits":252,"total_committers":5,"mean_commits":50.4,"dds":0.5555555555555556,"last_synced_commit":"256f6e9dd21eb3d5c7f218bb257d3282a4c193ca"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teppeis%2Fredash-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teppeis%2Fredash-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teppeis%2Fredash-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teppeis%2Fredash-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/teppeis","download_url":"https://codeload.github.com/teppeis/redash-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247393570,"owners_count":20931813,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","redux"],"created_at":"2024-10-04T00:05:29.683Z","updated_at":"2025-04-05T20:08:18.445Z","avatar_url":"https://github.com/teppeis.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# redash-client\n\nJavaScript Client for [Redash](https://redash.io/) API\n\n[![npm version][npm-image]][npm-url]\n![Node.js Version Support][node-version]\n[![build status][circleci-image]][circleci-url]\n[![dependency status][deps-image]][deps-url]\n![License][license]\n\n##### Note: This pacakge requires Node v8+ for async/await\n\n## Install\n\n```console\n$ npm install redash-client\n```\n\n## Usage\n\n```javascript\nconst RedashClient = require('redash-client');\nconst redash = new RedashClient({\n  endPoint: 'https://your-redash.com/',\n  apiToken: 'abcde12345',\n});\nredash\n  .queryAndWaitResult({\n    query: 'select * from actor',\n    data_source_id: 1,\n  })\n  .then(resp =\u003e {\n    console.log(resp.query_result);\n  });\n```\n\n## API\n\nSee [API document](https://teppeis.github.io/redash-client/)\n\n### Supported REST API\n\n- `#getDataSources()`\n- `#getDataSource()`\n- `#postQuery()`\n- `#getQueries()`\n- `#getQuery()`\n- `#updateQuery()`\n- `#postQueryResult()`\n- `#getQueryResult()`\n- `#getJob()`\n\nMethods for other REST API are not implemented yet. Help!\n\n### Utility methods\n\n#### `#queryAndWaitResult()`\n\nInternally:\n\n1. `postQueryResult()`\n2. Polling `getJob()`\n3. Return `getQueryResult()`\n\n## License\n\nMIT License: Teppei Sato \u0026lt;teppeis@gmail.com\u0026gt;\n\n[npm-image]: https://img.shields.io/npm/v/redash-client.svg?logo=npm\u0026style=for-the-badge\n[npm-url]: https://npmjs.org/package/redash-client\n[npm-downloads-image]: https://img.shields.io/npm/dm/redash-client.svg\n[travis-image]: https://img.shields.io/travis/teppeis/redash-client/master.svg?logo=travis\u0026style=for-the-badge\n[travis-url]: https://travis-ci.org/teppeis/redash-client\n[deps-image]: https://img.shields.io/david/teppeis/redash-client.svg?style=for-the-badge\n[deps-url]: https://david-dm.org/teppeis/redash-client\n[node-version]: https://img.shields.io/badge/Node.js-v8+-brightgreen.svg?logo=Node.js\u0026style=for-the-badge\n[coverage-image]: https://img.shields.io/coveralls/teppeis/redash-client/master.svg\n[coverage-url]: https://coveralls.io/github/teppeis/redash-client?branch=master\n[license]: https://img.shields.io/npm/l/redash-client.svg?style=for-the-badge\n[appveyor-image]: https://ci.appveyor.com/api/projects/status/22nwyfaf5p0yw54j/branch/master?svg=true\n[appveyor-url]: https://ci.appveyor.com/project/teppeis/redash-client/branch/master\n[circleci-image]: https://img.shields.io/circleci/project/github/teppeis/redash-client/master.svg?logo=circleci\u0026style=for-the-badge\n[circleci-url]: https://circleci.com/gh/teppeis/redash-client\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteppeis%2Fredash-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteppeis%2Fredash-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteppeis%2Fredash-client/lists"}