Skip to content

Latest commit

 

History

History
executable file
·
834 lines (578 loc) · 22.3 KB

HomepageApi.md

File metadata and controls

executable file
·
834 lines (578 loc) · 22.3 KB

LookerApi31Reference.HomepageApi

All URIs are relative to /api/3.1

Method HTTP request Description
allHomepageItems GET /homepage_items Get All Homepage Items
allHomepageSections GET /homepage_sections Get All Homepage sections
allHomepages GET /homepages Get All Homepages
createHomepage POST /homepages Create Homepage
createHomepageItem POST /homepage_items Create Homepage Item
createHomepageSection POST /homepage_sections Create Homepage section
deleteHomepage DELETE /homepages/{homepage_id} Delete Homepage
deleteHomepageItem DELETE /homepage_items/{homepage_item_id} Delete Homepage Item
deleteHomepageSection DELETE /homepage_sections/{homepage_section_id} Delete Homepage section
homepage GET /homepages/{homepage_id} Get Homepage
homepageItem GET /homepage_items/{homepage_item_id} Get Homepage Item
homepageSection GET /homepage_sections/{homepage_section_id} Get Homepage section
searchHomepages GET /homepages/search Search Homepages
updateHomepage PATCH /homepages/{homepage_id} Update Homepage
updateHomepageItem PATCH /homepage_items/{homepage_item_id} Update Homepage Item
updateHomepageSection PATCH /homepage_sections/{homepage_section_id} Update Homepage section

allHomepageItems

[HomepageItem] allHomepageItems(opts)

Get All Homepage Items

Get information about all homepage items.

Example

var LookerApi31Reference = require('looker-node-api');

var apiInstance = new LookerApi31Reference.HomepageApi();

var opts = {
  'fields': "fields_example", // String | Requested fields.
  'sorts': "sorts_example", // String | Fields to sort by.
  'homepageSectionId': "homepageSectionId_example" // String | Filter to a specific homepage section
};

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

Parameters

Name Type Description Notes
fields String Requested fields. [optional]
sorts String Fields to sort by. [optional]
homepageSectionId String Filter to a specific homepage section [optional]

Return type

[HomepageItem]

Authorization

No authorization required

HTTP request headers

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

allHomepageSections

[HomepageSection] allHomepageSections(opts)

Get All Homepage sections

Get information about all homepage sections.

Example

var LookerApi31Reference = require('looker-node-api');

var apiInstance = new LookerApi31Reference.HomepageApi();

var opts = {
  'fields': "fields_example", // String | Requested fields.
  'sorts': "sorts_example" // String | Fields to sort by.
};

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

Parameters

Name Type Description Notes
fields String Requested fields. [optional]
sorts String Fields to sort by. [optional]

Return type

[HomepageSection]

Authorization

No authorization required

HTTP request headers

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

allHomepages

[Homepage] allHomepages(opts)

Get All Homepages

Get information about all homepages.

Example

var LookerApi31Reference = require('looker-node-api');

var apiInstance = new LookerApi31Reference.HomepageApi();

var opts = {
  'fields': "fields_example" // String | Requested fields.
};

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

Parameters

Name Type Description Notes
fields String Requested fields. [optional]

Return type

[Homepage]

Authorization

No authorization required

HTTP request headers

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

createHomepage

Homepage createHomepage(opts)

Create Homepage

Create a new homepage.

Example

var LookerApi31Reference = require('looker-node-api');

var apiInstance = new LookerApi31Reference.HomepageApi();

var opts = {
  'body': new LookerApi31Reference.Homepage(), // Homepage | Homepage
  'fields': "fields_example" // String | Requested fields.
};

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

Parameters

Name Type Description Notes
body Homepage Homepage [optional]
fields String Requested fields. [optional]

Return type

Homepage

Authorization

No authorization required

HTTP request headers

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

createHomepageItem

HomepageItem createHomepageItem(opts)

Create Homepage Item

Create a new homepage item.

Example

var LookerApi31Reference = require('looker-node-api');

var apiInstance = new LookerApi31Reference.HomepageApi();

var opts = {
  'body': new LookerApi31Reference.HomepageItem(), // HomepageItem | Homepage Item
  'fields': "fields_example" // String | Requested fields.
};

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

Parameters

Name Type Description Notes
body HomepageItem Homepage Item [optional]
fields String Requested fields. [optional]

Return type

HomepageItem

Authorization

No authorization required

HTTP request headers

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

createHomepageSection

HomepageSection createHomepageSection(opts)

Create Homepage section

Create a new homepage section.

Example

var LookerApi31Reference = require('looker-node-api');

var apiInstance = new LookerApi31Reference.HomepageApi();

var opts = {
  'body': new LookerApi31Reference.HomepageSection(), // HomepageSection | Homepage section
  'fields': "fields_example" // String | Requested fields.
};

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

Parameters

Name Type Description Notes
body HomepageSection Homepage section [optional]
fields String Requested fields. [optional]

Return type

HomepageSection

Authorization

No authorization required

HTTP request headers

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

deleteHomepage

'String' deleteHomepage(homepageId)

Delete Homepage

Delete a homepage.

Example

var LookerApi31Reference = require('looker-node-api');

var apiInstance = new LookerApi31Reference.HomepageApi();

var homepageId = 789; // Number | Id of homepage


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

Parameters

Name Type Description Notes
homepageId Number Id of homepage

Return type

'String'

Authorization

No authorization required

HTTP request headers

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

deleteHomepageItem

'String' deleteHomepageItem(homepageItemId)

Delete Homepage Item

Delete a homepage item.

Example

var LookerApi31Reference = require('looker-node-api');

var apiInstance = new LookerApi31Reference.HomepageApi();

var homepageItemId = 789; // Number | Id of homepage_item


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

Parameters

Name Type Description Notes
homepageItemId Number Id of homepage_item

Return type

'String'

Authorization

No authorization required

HTTP request headers

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

deleteHomepageSection

'String' deleteHomepageSection(homepageSectionId)

Delete Homepage section

Delete a homepage section.

Example

var LookerApi31Reference = require('looker-node-api');

var apiInstance = new LookerApi31Reference.HomepageApi();

var homepageSectionId = 789; // Number | Id of homepage_section


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

Parameters

Name Type Description Notes
homepageSectionId Number Id of homepage_section

Return type

'String'

Authorization

No authorization required

HTTP request headers

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

homepage

Homepage homepage(homepageId, opts)

Get Homepage

Get information about a homepage.

Example

var LookerApi31Reference = require('looker-node-api');

var apiInstance = new LookerApi31Reference.HomepageApi();

var homepageId = 789; // Number | Id of homepage

var opts = {
  'fields': "fields_example" // String | Requested fields.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.homepage(homepageId, opts, callback);

Parameters

Name Type Description Notes
homepageId Number Id of homepage
fields String Requested fields. [optional]

Return type

Homepage

Authorization

No authorization required

HTTP request headers

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

homepageItem

HomepageItem homepageItem(homepageItemId, opts)

Get Homepage Item

Get information about a homepage item.

Example

var LookerApi31Reference = require('looker-node-api');

var apiInstance = new LookerApi31Reference.HomepageApi();

var homepageItemId = 789; // Number | Id of homepage item

var opts = {
  'fields': "fields_example" // String | Requested fields.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.homepageItem(homepageItemId, opts, callback);

Parameters

Name Type Description Notes
homepageItemId Number Id of homepage item
fields String Requested fields. [optional]

Return type

HomepageItem

Authorization

No authorization required

HTTP request headers

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

homepageSection

HomepageSection homepageSection(homepageSectionId, opts)

Get Homepage section

Get information about a homepage section.

Example

var LookerApi31Reference = require('looker-node-api');

var apiInstance = new LookerApi31Reference.HomepageApi();

var homepageSectionId = 789; // Number | Id of homepage section

var opts = {
  'fields': "fields_example" // String | Requested fields.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.homepageSection(homepageSectionId, opts, callback);

Parameters

Name Type Description Notes
homepageSectionId Number Id of homepage section
fields String Requested fields. [optional]

Return type

HomepageSection

Authorization

No authorization required

HTTP request headers

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

searchHomepages

[Homepage] searchHomepages(opts)

Search Homepages

Search Homepages If multiple search params are given and `filter_or` is FALSE or not specified, search params are combined in a logical AND operation. Only rows that match all search param criteria will be returned. If `filter_or` is TRUE, multiple search params are combined in a logical OR operation. Results will include rows that match any of the search criteria. String search params use case-insensitive matching. String search params can contain `%` and '_' as SQL LIKE pattern match wildcard expressions. example="dan%" will match "danger" and "Danzig" but not "David" example="D_m%" will match "Damage" and "dump" Integer search params can accept a single value or a comma separated list of values. The multiple values will be combined under a logical OR operation - results will match at least one of the given values. Most search params can accept "IS NULL" and "NOT NULL" as special expressions to match or exclude (respectively) rows where the column is null. Boolean search params accept only "true" and "false" as values.

Example

var LookerApi31Reference = require('looker-node-api');

var apiInstance = new LookerApi31Reference.HomepageApi();

var opts = {
  'title': "title_example", // String | Matches homepage title.
  'createdAt': "createdAt_example", // String | Matches the timestamp for when the homepage was created.
  'firstName': "firstName_example", // String | The first name of the user who created this homepage.
  'lastName': "lastName_example", // String | The last name of the user who created this homepage.
  'fields': "fields_example", // String | Requested fields.
  'favorited': true, // Boolean | Return favorited homepages when true.
  'sorts': "sorts_example", // String | The fields to sort the results by
  'page': 789, // Number | The page to return.
  'perPage': 789, // Number | The number of items in the returned page.
  'offset': 789, // Number | The number of items to skip before returning any. (used with limit and takes priority over page and per_page)
  'limit': 789, // Number | The maximum number of items to return. (used with offset and takes priority over page and per_page)
  'filterOr': true // Boolean | Combine given search criteria in a boolean OR expression
};

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

Parameters

Name Type Description Notes
title String Matches homepage title. [optional]
createdAt String Matches the timestamp for when the homepage was created. [optional]
firstName String The first name of the user who created this homepage. [optional]
lastName String The last name of the user who created this homepage. [optional]
fields String Requested fields. [optional]
favorited Boolean Return favorited homepages when true. [optional]
sorts String The fields to sort the results by [optional]
page Number The page to return. [optional]
perPage Number The number of items in the returned page. [optional]
offset Number The number of items to skip before returning any. (used with limit and takes priority over page and per_page) [optional]
limit Number The maximum number of items to return. (used with offset and takes priority over page and per_page) [optional]
filterOr Boolean Combine given search criteria in a boolean OR expression [optional]

Return type

[Homepage]

Authorization

No authorization required

HTTP request headers

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

updateHomepage

Homepage updateHomepage(homepageId, body, opts)

Update Homepage

Update a homepage definition.

Example

var LookerApi31Reference = require('looker-node-api');

var apiInstance = new LookerApi31Reference.HomepageApi();

var homepageId = 789; // Number | Id of homepage

var body = new LookerApi31Reference.Homepage(); // Homepage | Homepage

var opts = {
  'fields': "fields_example" // String | Requested fields.
};

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

Parameters

Name Type Description Notes
homepageId Number Id of homepage
body Homepage Homepage
fields String Requested fields. [optional]

Return type

Homepage

Authorization

No authorization required

HTTP request headers

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

updateHomepageItem

HomepageItem updateHomepageItem(homepageItemId, body, opts)

Update Homepage Item

Update a homepage item definition.

Example

var LookerApi31Reference = require('looker-node-api');

var apiInstance = new LookerApi31Reference.HomepageApi();

var homepageItemId = 789; // Number | Id of homepage item

var body = new LookerApi31Reference.HomepageItem(); // HomepageItem | Homepage Item

var opts = {
  'fields': "fields_example" // String | Requested fields.
};

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

Parameters

Name Type Description Notes
homepageItemId Number Id of homepage item
body HomepageItem Homepage Item
fields String Requested fields. [optional]

Return type

HomepageItem

Authorization

No authorization required

HTTP request headers

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

updateHomepageSection

HomepageSection updateHomepageSection(homepageSectionId, body, opts)

Update Homepage section

Update a homepage section definition.

Example

var LookerApi31Reference = require('looker-node-api');

var apiInstance = new LookerApi31Reference.HomepageApi();

var homepageSectionId = 789; // Number | Id of homepage section

var body = new LookerApi31Reference.HomepageSection(); // HomepageSection | Homepage section

var opts = {
  'fields': "fields_example" // String | Requested fields.
};

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

Parameters

Name Type Description Notes
homepageSectionId Number Id of homepage section
body HomepageSection Homepage section
fields String Requested fields. [optional]

Return type

HomepageSection

Authorization

No authorization required

HTTP request headers

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