Uhhh... the documentation is shit; still lost

This commit is contained in:
cdricms
2023-12-26 17:28:41 +01:00
parent 5e3b9e703f
commit 40e796c8a8
2 changed files with 42 additions and 0 deletions

View File

@@ -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)
}