Skip to content

Commit f51ea03

Browse files
VishnuVishnu
Vishnu
authored and
Vishnu
committed
fix readme
1 parent f903451 commit f51ea03

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

README.md

+8-12
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,7 @@ Example:
599599
using System;
600600
using System.Collections.Generic;
601601
using Plivo;
602+
using Plivo.Resource.Message;
602603

603604
namespace PlivoExamples
604605
{
@@ -610,7 +611,7 @@ namespace PlivoExamples
610611

611612
var template = new Template
612613
{
613-
Name = "plivo_order_pickup_named_param",
614+
Name = "template_name",
614615
Language = "en_US",
615616
Components = new List<Component>
616617
{
@@ -621,15 +622,10 @@ namespace PlivoExamples
621622
{
622623
new Parameter
623624
{
624-
Type = "location",
625-
ParameterName = "named_param_in_header",
626-
Location = new Location
627-
{
628-
Longitude = "122.148981",
629-
Latitude = "37.483307",
630-
Name = "Pablo Morales",
631-
Address = "1 Hacker Way, Menlo Park, CA 94025"
632-
}
625+
Type = "text",
626+
ParameterName = "header_title",
627+
Text = "WA-header"
628+
633629
}
634630
}
635631
},
@@ -641,8 +637,8 @@ namespace PlivoExamples
641637
new Parameter
642638
{
643639
Type = "text",
644-
Text = "Harry",
645-
ParameterName = "named_param_in_body"
640+
Text = "Saurabh",
641+
ParameterName = "user_name"
646642
}
647643
}
648644
}

0 commit comments

Comments
 (0)