Swiftpack.co - supabase-community/functions-swift as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by supabase-community.
supabase-community/functions-swift 1.1.1
Swift Client library to interact with Supabase Functions.
⭐️ 10
🕓 19 weeks ago
iOS macOS watchOS tvOS macCatalyst
.package(url: "https://github.com/supabase-community/functions-swift.git", from: "1.1.1")

functions-swift

[!WARNING]
This repository is deprecated and it was moved to the monorepo. Repository will remain live to support old versions of the library, but any new updates MUST be done on the monorepo.

Swift Client library to interact with Supabase Functions.

Usage

let client = FunctionsClient(
  url: URL(string: "https://project-id.supabase.com/functions/v1")!,
  headers: [
    "apikey": "project-api-key"
  ]
)

struct Response: Decodable {
  let message: String
}

let response: Response = try await client.invoke(
  functionName: "hello-world",
  invokeOptions: FunctionInvokeOptions(body: ["name": "Functions"])
)

assert(response.message = "Hello Functions")

GitHub

link
Stars: 10
Last commit: 18 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

1.1.1
19 weeks ago

What's Changed

New Contributors

Full Changelog: https://github.com/supabase-community/functions-swift/compare/1.1.0...1.1.1

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics