File tree 6 files changed +80
-3
lines changed
6 files changed +80
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Change Log
2
+
3
+ ## [ 5.49.4] ( https://github.com/plivo/plivo-dotnet/tree/v5.49.4 ) (2025-02-25)
4
+ ** Enhancement - Supporting parameter_name in WhatsApp Template .**
5
+ - Supporting parameter_name in WhatsApp Template .
6
+
2
7
## [ 5.49.3] ( https://github.com/plivo/plivo-dotnet/tree/v5.49.3 ) (2025-02-18)
3
8
** Feature - Throw PlivoGeoPermissionException on synchronous geopermissions error**
4
9
Original file line number Diff line number Diff line change @@ -591,6 +591,72 @@ namespace PlivoExamples
591
591
}
592
592
```
593
593
594
+ #### Templated WhatsApp Messages With Named Parameter
595
+ This guide shows how to send templated WhatsApp messages with named parameters.
596
+
597
+ Example:
598
+ ``` csharp
599
+ using System ;
600
+ using System .Collections .Generic ;
601
+ using Plivo ;
602
+ using Plivo .Resource .Message ;
603
+
604
+ namespace PlivoExamples
605
+ {
606
+ internal class Program
607
+ {
608
+ public static void Main (string [] args )
609
+ {
610
+ var api = new PlivoApi (" <auth_id>" ," <auth_token>" );
611
+
612
+ var template = new Template
613
+ {
614
+ Name = " template_name" ,
615
+ Language = " en_US" ,
616
+ Components = new List <Component >
617
+ {
618
+ new Component
619
+ {
620
+ Type = " header" ,
621
+ Parameters = new List <Parameter >
622
+ {
623
+ new Parameter
624
+ {
625
+ Type = " text" ,
626
+ ParameterName = " header_title" ,
627
+ Text = " WA-header"
628
+
629
+ }
630
+ }
631
+ },
632
+ new Component
633
+ {
634
+ Type = " body" ,
635
+ Parameters = new List <Parameter >
636
+ {
637
+ new Parameter
638
+ {
639
+ Type = " text" ,
640
+ Text = " Saurabh" ,
641
+ ParameterName = " user_name"
642
+ }
643
+ }
644
+ }
645
+ }
646
+ };
647
+
648
+ var response = api .Message .Create (
649
+ src : " +14151112221" ,
650
+ dst : " +14151112222" ,
651
+ type : " whatsapp" ,
652
+ template : template );
653
+ Console .WriteLine (response );
654
+ }
655
+ }
656
+ }
657
+
658
+
659
+ ```
594
660
### More examples
595
661
Refer to the [ Plivo API Reference] ( https://api-reference.plivo.com/latest/net/introduction/overview ) for more examples.
596
662
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
<PropertyGroup >
3
3
<TargetFrameworks >netstandard2.0;netstandard1.3</TargetFrameworks >
4
- <ReleaseVersion >5.49.3 </ReleaseVersion >
4
+ <ReleaseVersion >5.49.4 </ReleaseVersion >
5
5
<Version />
6
6
<Authors >Plivo SDKs Team</Authors >
7
7
<Owners >Plivo Inc.</Owners >
Original file line number Diff line number Diff line change @@ -987,6 +987,12 @@ public class Parameter
987
987
[ JsonProperty ( "type" ) ]
988
988
public string Type { get ; set ; }
989
989
990
+ /// <summary>
991
+ /// Gets or sets the name of the parameter.
992
+ /// </summary>
993
+ [ JsonProperty ( "parameter_name" ) ]
994
+ public string ParameterName { get ; set ; }
995
+
990
996
/// <summary>
991
997
/// Gets or sets the text value of the parameter.
992
998
/// </summary>
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ public class Version
10
10
/// <summary>
11
11
/// DotNet SDK version
12
12
/// </summary>
13
- public const string SdkVersion = "5.49.3 " ;
13
+ public const string SdkVersion = "5.49.4 " ;
14
14
/// <summary>
15
15
/// Plivo API version
16
16
/// </summary>
Original file line number Diff line number Diff line change 1
1
{
2
- "version" : " 5.49.3 " ,
2
+ "version" : " 5.49.4 " ,
3
3
"publicReleaseRefSpec" : [
4
4
" ^refs/heads/master$" ,
5
5
" ^refs/heads/v\\ d+(?:\\ .\\ d+)?$"
You can’t perform that action at this time.
0 commit comments