functions-swift

1.1.1

Swift Client library to interact with Supabase Functions.
supabase-community/functions-swift

What's New

1.1.1

2023-11-15T08:18:02Z

What's Changed

New Contributors

Full Changelog: 1.1.0...1.1.1

functions-swift

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")

Description

  • Swift Tools 5.7.0
View More Packages from this Author

Dependencies

Last updated: Sun Mar 17 2024 06:02:58 GMT-0900 (Hawaii-Aleutian Daylight Time)