FolksonomyAPIClient class
Client calls of the Folksonomy API (Open Food Facts)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getKeys(
{QueryType? queryType}) → Future< Map< String, KeyStats> > - Returns the list of tag keys with statistics.
-
getProducts(
{required String key, String? value, QueryType? queryType}) → Future< Map< String, String> > -
Returns all the products with that
key
. -
getProductStats(
{String? key, String? value, QueryType? queryType}) → Future< List< ProductStats> > - Returns all the ProductStats, with an optional filter.
-
getProductTag(
{required String barcode, required String key, QueryType? queryType}) → Future< ProductTag?> - Returns the ProductTag for this product and this tag key
-
getProductTags(
{required String barcode, QueryType? queryType}) → Future< Map< String, ProductTag> > - Returns all the ProductTags for this product
-
getProductTagVersions(
{required String barcode, required String key, QueryType? queryType}) → Future< List< ProductTag> > -
Returns the versions of ProductTag for this
barcode
andkey
. -
getProductTagWithSubKeys(
{required String barcode, required String key, QueryType? queryType}) → Future< Map< String, ProductTag> > - Returns all the ProductTags for this product, with their subkeys.
-
hello(
{QueryType? queryType}) → Future< void> - "hello world"
-
ping(
{QueryType? queryType}) → Future< void>