-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathAddons.cs
More file actions
39 lines (33 loc) · 1.15 KB
/
Addons.cs
File metadata and controls
39 lines (33 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using System;
using System.Collections.Generic;
namespace Telesign.Example.PhoneId
{
class Addons
{
static void Main(string[] args)
{
string customerId = "FFFFFFFF-EEEE-DDDD-1234-AB1234567890";
string apiKey = "EXAMPLETE8sTgg45yusumoN6BYsBVkh+yRJ5czgsnCehZaOYldPJdmFh6NeX8kunZ2zU1YWaUw/0wV6xfw==";
string phoneNumber = "phone_number";
Dictionary<string, object> parameters = new Dictionary<string, object>()
{
{ "addons", new List<string>() { "contact" } },
};
try
{
PhoneIdClient phoneIdClient = new PhoneIdClient(customerId, apiKey);
RestClient.TelesignResponse telesignResponse = phoneIdClient.PhoneId(phoneNumber, parameters);
if (telesignResponse.OK)
{
Console.WriteLine(telesignResponse.Json);
}
}
catch (Exception e)
{
Console.WriteLine(e);
}
Console.WriteLine("Press any key to quit.");
Console.ReadKey();
}
}
}