Optional
init: RequestInitPrivate
Readonly
basePrivate
Readonly
fetchOptional
init: RequestInitReadonly
rawUpdate a product tag (or add it if it does not exist)
Tag to add or update with the following fields:
k
: keyv
: valueproduct
: barcodeversion
: version of the tag (must be equal to previous version + 1)owner
: user_id of the owner of the tag (empty for public tags)Optional
comment?: stringComment
Optional
editor?: stringEditor
K
Optional
last_Last Edit Format: date-time
Optional
owner?: stringOwner
Product
V
Optional
version?: numberVersion
1
if the tag was added or updated
Get the list of keys with statistics
The keys list can be restricted to private tags from some owner.
Get a list of existing tags for a product
Get the list of products that have a key
or key=value
if value
is provided
Optional
value: stringAuthentication: provide user/password and get a bearer token in return
Open Food Facts user_id (not email)
user password
the bearer token, to be used in later requests with usual "Authorization: bearer token" headers
Optional
comment?: stringComment
Optional
editor?: stringEditor
K
Optional
last_Last Edit Format: date-time
Optional
owner?: stringOwner
Product
V
Optional
version?: numberVersion
1
Delete a product tag
if the tag was deleted
Generated using TypeDoc
MDN Reference