Skip to content

What param should I pass to get products of US #454

Discussion options

You must be logged in to vote
  ProductSearchQueryConfiguration({
    final OpenFoodFactsLanguage? language,
    final List<OpenFoodFactsLanguage> languages = const [],
    final OpenFoodFactsCountry? country,
    final List<ProductField>? fields,
    required List<Parameter> parametersList,
  })

final OpenFoodFactsCountry? country seems appropriate.
Another solution would be to set OpenFoodAPIConfiguration.globalCountry.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by monsieurtanuki
Comment options

You must be logged in to vote
1 reply
@monsieurtanuki
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #453 on April 21, 2022 09:11.