Invokes a Supabase Function. See the guide for details on writing Functions.
var options = new InvokeFunctionOptions
{
Headers = new Dictionary<string, string> {{ "Authorization", "Bearer 1234" }},
Body = new Dictionary<string, object> { { "foo", "bar" } }
};
await supabase.Functions.Invoke("hello", options: options);
class HelloResponse
{
[JsonProperty("name")]
public string Name { get; set; }
}
await supabase.Functions.Invoke<HelloResponse>("hello");