Initial commit

This commit is contained in:
cdricms
2023-12-14 18:32:48 +01:00
parent c3d7bb8a78
commit 7f6d38f471
6 changed files with 316 additions and 0 deletions

12
Sources/exe/main.swift Normal file
View File

@@ -0,0 +1,12 @@
import Foundation
import swift_openfoodfacts_sdk
let off = OpenFoodFactsClient()
print("Hello world")
do {
let res = try await off.getProductByBarcode("3017620422003")
print(res)
} catch {
print("\(error)")
}