getFromTagGroup static method
Future<PcoCollection<PcoGroupsTag> >
getFromTagGroup(
- String tagGroupId, {
- String? id,
- PcoGroupsTagQuery? query,
- bool getAll = false,
Will get a PcoCollection
of PcoGroupsTag objects (expecting many)
using a path like this: /groups/v2/tag_groups/$tagGroupId/tags
Getting a PcoCollection
is useful even when retrieving a single object
because it contains error data and helper functions.
Additional options may be specified by using the query
argument, but some
query options are also available as boolean flags in this function call too.
Implementation
static Future<PcoCollection<PcoGroupsTag>> getFromTagGroup(
String tagGroupId, {
String? id,
PcoGroupsTagQuery? query,
bool getAll = false,
}) async {
query ??= PcoGroupsTagQuery();
if (getAll) query.getAll = true;
var url = '/groups/v2/tag_groups/$tagGroupId/tags';
if (id != null) url += '/$id';
return PcoCollection.fromApiCall<PcoGroupsTag>(url,
query: query, apiVersion: kApiVersion);
}