Filters
Extends:
* → Filters
Filters Class - Provides access to the Mux Data Filters API
Example:
const muxClient = new Mux(accessToken, secret);
const { Data } = muxClient;
// Lists all the filters broken out into basic and advanced
Data.Filters.list();
Method Summary
Public Methods | ||
public |
Lists the values for a filter along with a total count of related views |
|
public |
Lists all the filters broken out into basic and advanced |
Public Methods
public get(filterId: string, queryParams: Object): Promise source
Lists the values for a filter along with a total count of related views
Params:
Name | Type | Attribute | Description |
filterId | string | The filter name/id for see https://api-docs.mux.com/#filter-get-1 for a list of all filter ids |
|
queryParams | Object |
|
example { timeframe: ['7:days'], filters: ['operating_system:windows'] } |
Example:
const muxClient = new Mux(accessToken, secret);
const { Data } = muxClient;
// Lists the values for a filter along with a total count of related views
Data.Filters.get('browser', { timeframe: ['7:days'] });