These are chat archives for getredash/redash

30th
Jun 2015
Arik Fraimovich
@arikfr
Jun 30 2015 05:17
@BrunoSalerno :D this is great!! looking forward for the pull request
martin sarsale
@runa
Jun 30 2015 14:02
@arikfr aloha. what are my options to integrate redash results in other dashboards / systems. I would like to access the (cached) query results, or embed the visualizations
Arik Fraimovich
@arikfr
Jun 30 2015 16:26
@runa there is no embedding option (yet), but there is an API. there is an API for everything (because it's a single page app), but only queries/query results have "api key" based authentication
@runa so for example, this query: http://demo.redash.io/queries/4#table
but these URLs require you to be authenticated, to access them without login, you need the API key (available when clicking on the "key" button in the UI), for this query it's http://demo.redash.io/api/queries/4/results.json?api_key=60f0c7364ce547a49b0a297aa549c29bcfcf9db2
@runa note that there are two ways of using the api key - one like in the example above, just by appending to the URL, the other is by using it to sign the URL.
@runa for older installs, signing is the default. if you want to switch to simple api key, add to your .env file: REDASH_AUTH_TYPE=api_key
@runa if you still prefer the signing option, see this gist: https://gist.github.com/arikfr/c01fdb6f1b979854ba48 for example of how to use it
Arik Fraimovich
@arikfr
Jun 30 2015 16:31
@runa lmk if this addresses your need
martin sarsale
@runa
Jun 30 2015 18:36
@arikfr this is perfect. thanks
@arikfr and what will happen if the query is not cached?
@arikfr and it has to be executed there
Bruno Salerno
@BrunoSalerno
Jun 30 2015 19:11
@arikfr thanks ;) . I think I'm doing the PR tomorrow
Bruno Salerno
@BrunoSalerno
Jun 30 2015 21:30
@arikfr Hi! I have a doubt: how do I include the new files in rd_ui/app/index.html (js, css) ? Manually (what I've done so far)? I saw that there is a Makefile, a Gruntfile... Thanks in advance