Skip to content

Latest commit

 

History

History
105 lines (68 loc) · 3.22 KB

File metadata and controls

105 lines (68 loc) · 3.22 KB

KinowJavascriptSdk.BlogPagesApi

All URIs are relative to https://api.kinow.com/api

Method HTTP request Description
getBlogPage GET /blog-pages/{blog_page_id}
getBlogPages GET /blog-pages

getBlogPage

BlogPage getBlogPage(blogPageId)

Get blog page

Example

var KinowJavascriptSdk = require('kinow-javascript-sdk');

var apiInstance = new KinowJavascriptSdk.BlogPagesApi();

var blogPageId = 789; // Integer | 

apiInstance.getBlogPage(blogPageId).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

Parameters

Name Type Description Notes
blogPageId Integer

Return type

BlogPage

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

getBlogPages

BlogPageLists getBlogPages(opts)

Get blog pages

Example

var KinowJavascriptSdk = require('kinow-javascript-sdk');

var apiInstance = new KinowJavascriptSdk.BlogPagesApi();

var opts = { 
  'page': 789, // Integer | 
  'perPage': 789, // Integer | 
  'filters': "filters_example", // String |   ```  name[value]=string&name[operator]=contains&date_add[value]=string&date_add[operator]=lt  _______________    {  \"name\": {  \"value\": \"string\",  \"operator\": \"contains\"  },  \"date_add\": {  \"value\": \"string\",  \"operator\": \"lt\"  }  } ```  Operator can be strict, contains, gt or lt.
  'sortBy': "sortBy_example", // String | Sort by this attribute (id by default)
  'sortDirection': "sortDirection_example" // String | Sorting direction (asc by default)
};
apiInstance.getBlogPages(opts).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

Parameters

Name Type Description Notes
page Integer [optional]
perPage Integer [optional]
filters String ``` name[value]=string&name[operator]=contains&date_add[value]=string&date_add[operator]=lt _______________ { "name": { "value": "string", "operator": "contains" }, "date_add": { "value": "string", "operator": "lt" } } ``` Operator can be strict, contains, gt or lt. [optional]
sortBy String Sort by this attribute (id by default) [optional]
sortDirection String Sorting direction (asc by default) [optional]

Return type

BlogPageLists

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined