Upgrade to Pro — share decks privately, control downloads, hide ads and more …

退屈なことは RedashAPI にやらせよう/utilize-redash

araiman
September 03, 2019

退屈なことは RedashAPI にやらせよう/utilize-redash

RedashAPIの紹介 @Redash Meetup 6.0.0

araiman

September 03, 2019
Tweet

More Decks by araiman

Other Decks in Programming

Transcript

  1. +40/ܗࣜͷϦΫΤετσʔλ࡞੒ body = { "id": None, "type": "CHART", "name": "άϥϑ໊",

    "description": "", "options": { "globalSeriesType": "bubble", "columnMapping": { “column_for_x”: "x", “column_for_y”: "y", “column_for_series”: "series", “column_for_bubble_size”: "size" }, ... }, "query_id": 1234 } νϟʔτͷछྨ ΧϥϜࢦఆ
  2. "1*΁ͷϦΫΤετ body = { "id": None, ... "query_id": 1234 }

    header = { "content-type": "application/json", "Authorization": "Key your_api_key" } requests.post( "http://localhost/api/visualizations/1234", data=json.dumps(body), headers=header )