getEveryChange: Get All Changes

Description Usage Arguments Value

Description

Gets a listing of all changes to all attributes that have happened in the last 30 days. Results will be paginated with 50 results per page.

Usage

1
getEveryChange(p, attributeName, attributeId, since)

Arguments

p

Page Number

attributeName

Name of an attribute in BreweryDB. Multiple attributeNames can be separated by a comma. beer brewery location guild event

attributeId

ID of an attribute in BreweryDB. Will only be recognized if a single attributeName parameter is also passed.

since

UNIX timestamp of a date in which to get changes since. This can be a max of 30 days in the past.

Value

attributeName Attribute name of the affected attribute. Either "beer", "brewery", "location", "guild" or "event".

action Action taken on that attribute. Either "edit", "insert", or "delete".

attribute Data structure related to the type of attribute that changes. If a beer was changed, you would get the basic beer structure. If a brewery was changed, you would get the basic brewery structure.

subAttributeName Name of the sub attribute that was changed. Only set in the case of relationships.

subAction Action taken on the sub attribute. Either "edit", "insert", or "delete".

subAttribute Data structure related to the type of attribute that changed.


samterfa/brewerydb documentation built on June 24, 2019, 12:44 a.m.