Namespace: posts

posts

Source:

Methods

(static) all(optionsopt, done)

Get all the newest posts

Parameters:
Name Type Attributes Description
options Object <optional>
options
Properties
Name Type Attributes Description
params.search.url String <optional>
Filter parameter: can filter posts by url
params.search.category Number <optional>
Filter parameter: can filter posts by category. Default = unspecified (All categories)
params.older String <optional>
Filter parameter: get only records older than the provided id
params.newer String <optional>
Filter parameter: get only records newer than the provided id
params.per_page String <optional>
Filter parameter: define the amount of records sent per call (max 50)
done done Callback
Source:
See:

(static) collect(options, done)

Create a post

Parameters:
Name Type Description
options Object options
Properties
Name Type Description
collection_id String The numeric ID of the collection
type String Type of action. Valid options are 'add' or 'remove'.
done done Callback
Source:
See:

(static) create(options, done)

Create a post

Parameters:
Name Type Description
options Object options
Properties
Name Type Description
url String The url of the product
name String The name of the product
tagline String Your short description of the product
done done Callback
Source:
See:

(static) index(optionsopt, done)

Get the tech posts of today

Parameters:
Name Type Attributes Description
options Object <optional>
options
Properties
Name Type Attributes Description
category_name String <optional>
Name of the category
params.days_ago Number <optional>
Parameter for pagination
params.day String <optional>
Alternate parameter for requesting specific days (Format: day=YYYY-MM-DD)
done done Callback
Source:
See:

(static) show(options, done)

Get details of a post

Parameters:
Name Type Description
options Object options
Properties
Name Type Description
id Number The numeric ID of the Post you want to fetch
done done Callback
Source:
See: