Skip to content

Latest commit

 

History

History
102 lines (66 loc) · 2.66 KB

DataActionApi.md

File metadata and controls

102 lines (66 loc) · 2.66 KB

LookerApi30Reference.DataActionApi

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

Method HTTP request Description
fetchRemoteDataActionForm POST /data_actions/form Fetch Remote Data Action Form
performDataAction POST /data_actions Send a Data Action

fetchRemoteDataActionForm

DataActionForm fetchRemoteDataActionForm(body)

Fetch Remote Data Action Form

For some data actions, the remote server may supply a form requesting further user input. This endpoint takes a data action, asks the remote server to generate a form for it, and returns that form to you for presentation to the user.

Example

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

var apiInstance = new LookerApi30Reference.DataActionApi()

var body = null; // {Object} Data Action Request


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

Parameters

Name Type Description Notes
body Object Data Action Request

Return type

DataActionForm

Authorization

No authorization required

HTTP request headers

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

performDataAction

DataActionResponse performDataAction(body)

Send a Data Action

Perform a data action. The data action object can be obtained from query results, and used to perform an arbitrary action.

Example

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

var apiInstance = new LookerApi30Reference.DataActionApi()

var body = new LookerApi30Reference.DataActionRequest(); // {DataActionRequest} Data Action Request


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

Parameters

Name Type Description Notes
body DataActionRequest Data Action Request

Return type

DataActionResponse

Authorization

No authorization required

HTTP request headers

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