Skip to content

Latest commit

 

History

History
102 lines (66 loc) · 2.16 KB

SqlQueryApi.md

File metadata and controls

102 lines (66 loc) · 2.16 KB

LookerApi30Reference.SqlQueryApi

All URIs are relative to https://madisonreed.looker.com:19999/api/3.0

Method HTTP request Description
createSqlQuery POST /sql_queries Create SQL Runner Query
sqlQuery GET /sql_queries/{slug} Get SQL Runner Query

createSqlQuery

SqlQuery createSqlQuery(body)

Create SQL Runner Query

Create a SQL Runner query.

Example

var LookerApi30Reference = require('looker-api-3');

var apiInstance = new LookerApi30Reference.SqlQueryApi()

var body = new LookerApi30Reference.SqlQueryCreate(); // {SqlQueryCreate} SQL Runner Query


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createSqlQuery(body, callback);

Parameters

Name Type Description Notes
body SqlQueryCreate SQL Runner Query

Return type

SqlQuery

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

sqlQuery

SqlQuery sqlQuery(slug)

Get SQL Runner Query

Get a SQL Runner query.

Example

var LookerApi30Reference = require('looker-api-3');

var apiInstance = new LookerApi30Reference.SqlQueryApi()

var slug = "slug_example"; // {String} slug of query


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.sqlQuery(slug, callback);

Parameters

Name Type Description Notes
slug String slug of query

Return type

SqlQuery

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json