All URIs are relative to https://demo.looker.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 |
SqlQuery create_sql_query(body)
Create SQL Runner Query
Create a SQL Runner query.
from __future__ import print_statement
import time
import lookerapi
from lookerapi.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerapi.SqlQueryApi()
body = lookerapi.SqlQueryCreate() # SqlQueryCreate | SQL Runner Query
try:
# Create SQL Runner Query
api_response = api_instance.create_sql_query(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling SqlQueryApi->create_sql_query: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| body | SqlQueryCreate | SQL Runner Query |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SqlQuery sql_query(slug)
Get SQL Runner Query
Get a SQL Runner query.
from __future__ import print_statement
import time
import lookerapi
from lookerapi.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerapi.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)| Name | Type | Description | Notes |
|---|---|---|---|
| slug | str | slug of query |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]