Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Swift Client library to interact with Supabase Functions.

Notifications You must be signed in to change notification settings

iamjamesim/functions-swift

 
 

Repository files navigation

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

About

Swift Client library to interact with Supabase Functions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%