Skip to content

Latest commit

 

History

History
104 lines (70 loc) · 2.53 KB

SqlQueryApi.md

File metadata and controls

104 lines (70 loc) · 2.53 KB

lookerpy.SqlQueryApi

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

Method HTTP request Description
create_sql_query POST /sql_queries create SQL Runner query
sql_query GET /sql_queries/{slug} get SQL Runner query

create_sql_query

SqlQuery create_sql_query(body=body)

create SQL Runner query

create a sql runner query

Example

import time
import lookerpy
from lookerpy.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = lookerpy.SqlQueryApi()
body = lookerpy.SqlQuery() # SqlQuery | SQL Runner query (optional)

try: 
    # create SQL Runner query
    api_response = api_instance.create_sql_query(body=body)
    pprint(api_response)
except ApiException as e:
    print "Exception when calling SqlQueryApi->create_sql_query: %s\n" % e

Parameters

Name Type Description Notes
body SqlQuery SQL Runner query [optional]

Return type

SqlQuery

Authorization

No authorization required

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

sql_query

SqlQuery sql_query(slug)

get SQL Runner query

get a sql runner query

Example

import time
import lookerpy
from lookerpy.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = lookerpy.SqlQueryApi()
slug = 'slug_example' # str | slug of query

try: 
    # get SQL Runner query
    api_response = api_instance.sql_query(slug)
    pprint(api_response)
except ApiException as e:
    print "Exception when calling SqlQueryApi->sql_query: %s\n" % e

Parameters

Name Type Description Notes
slug str slug of query

Return type

SqlQuery

Authorization

No authorization required

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]