Uhhh... the documentation is shit; still lost
This commit is contained in:
@@ -3,3 +3,11 @@ import OpenFoodFacts
|
||||
|
||||
let off = OpenFoodFactsClient()
|
||||
off.prod = true
|
||||
|
||||
do {
|
||||
|
||||
let res = try await off.search("Coca-Cola")
|
||||
print(res)
|
||||
} catch {
|
||||
print(error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user