We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96f6f40 commit a59c610Copy full SHA for a59c610
callflow_test.go
@@ -8,6 +8,26 @@ import (
8
"time"
9
)
10
11
+func ExampleCallFlow() {
12
+ callflow := CallFlow{
13
+ Title: "My CallFlow",
14
+ Steps: []CallFlowStep{
15
+ &CallFlowSayStep{
16
+ Payload: "Hello",
17
+ Voice: "male",
18
+ Language: "en-US",
19
+ },
20
+ &CallFlowPauseStep{
21
+ Length: time.Second * 4,
22
23
+ &CallFlowTransferStep{
24
+ Destination: "31600000000",
25
26
27
+ }
28
+ _ = callflow
29
+}
30
+
31
func TestCallFlowJSONMarshal(t *testing.T) {
32
refCreatedAt, _ := time.Parse(time.RFC3339, "2018-01-29T13:46:06Z")
33
refUpdatedAt, _ := time.Parse(time.RFC3339, "2018-01-30T16:00:34Z")
0 commit comments