From 3ae5fc47c90ef8ca8008982d527acea969587c21 Mon Sep 17 00:00:00 2001 From: Gabriel Odero Date: Sun, 13 Oct 2024 15:45:15 +0300 Subject: [PATCH] Added graph api version optional parameter --- WhatsappBusiness.CloudApi/WhatsAppBusinessRequestEndpoint.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/WhatsappBusiness.CloudApi/WhatsAppBusinessRequestEndpoint.cs b/WhatsappBusiness.CloudApi/WhatsAppBusinessRequestEndpoint.cs index 9a02b93..619bf64 100644 --- a/WhatsappBusiness.CloudApi/WhatsAppBusinessRequestEndpoint.cs +++ b/WhatsappBusiness.CloudApi/WhatsAppBusinessRequestEndpoint.cs @@ -5,10 +5,13 @@ namespace WhatsappBusiness.CloudApi public static class WhatsAppBusinessRequestEndpoint { /// - /// WhatsApp Business Cloud API V19 BaseAddress + /// WhatsApp Business Cloud API V21 BaseAddress /// public static Uri BaseAddress { get; private set; } = new Uri("https://graph.facebook.com/v21.0/"); + /// + /// Specified WhatsApp Business Cloud API Version BaseAddress + /// public static Uri GraphApiVersionBaseAddress { get; private set; } = new Uri("https://graph.facebook.com/{{api-version}}/"); ///