|
1 | | -using System; |
2 | | -using System.Net; |
3 | | -using System.Collections.Generic; |
4 | | -using System.Threading.Tasks; |
5 | | - |
| 1 | +using System; |
| 2 | +using System.Net; |
| 3 | +using System.Collections.Generic; |
| 4 | +using System.Threading.Tasks; |
| 5 | + |
6 | 6 | namespace Telesign |
7 | 7 | { |
8 | | - /// <summary> |
9 | | - /// AppVerify is a secure, lightweight SDK that integrates a frictionless user verification process into existing native mobile applications. |
10 | | - /// </summary> |
11 | | - public class AppVerifyClient : RestClient |
12 | | - { |
13 | | - private const string APPVERIFY_STATUS_RESOURCE = "/v1/mobile/verification/status/{0}"; |
14 | | - |
15 | | - public AppVerifyClient(string customerId, |
16 | | - string apiKey) |
17 | | - : base(customerId, |
18 | | - apiKey) |
19 | | - { } |
20 | | - |
21 | | - public AppVerifyClient(string customerId, |
22 | | - string apiKey, |
23 | | - string restEndPoint) |
24 | | - : base(customerId, |
25 | | - apiKey, |
26 | | - restEndPoint) |
27 | | - { } |
28 | | - |
29 | | - public AppVerifyClient(string customerId, |
30 | | - string apiKey, |
31 | | - string restEndPoint, |
32 | | - int timeout, |
33 | | - WebProxy proxy, |
34 | | - string proxyUsername, |
35 | | - string proxyPassword) |
36 | | - : base(customerId, |
37 | | - apiKey, |
38 | | - restEndPoint, |
39 | | - timeout, |
40 | | - proxy, |
41 | | - proxyUsername, |
42 | | - proxyPassword) |
43 | | - { |
44 | | - } |
45 | | - |
46 | | - /// <summary> |
47 | | - /// Retrieves the verification result for an AppVerify transaction by externalId. To ensure a secure verification |
48 | | - /// flow you must check the status using TeleSign's servers on your backend. Do not rely on the SDK alone to |
49 | | - /// indicate a successful verification. |
50 | | - /// |
51 | | - /// See https://developer.telesign.com/docs/app-verify-android-sdk-self#section-obtaining-verification-status or |
52 | | - /// https://developer.telesign.com/docs/app-verify-ios-sdk-self#section-obtaining-verification-status for detailed |
53 | | - /// API documentation. |
54 | | - /// </summary> |
55 | | - public TelesignResponse Status(string externalId, Dictionary<string, string> parameters = null) |
56 | | - { |
57 | | - return Get(string.Format(APPVERIFY_STATUS_RESOURCE, externalId), parameters); |
58 | | - } |
59 | | - |
60 | | - /// <summary> |
61 | | - /// Retrieves the verification result for an AppVerify transaction by externalId. To ensure a secure verification |
62 | | - /// flow you must check the status using TeleSign's servers on your backend. Do not rely on the SDK alone to |
63 | | - /// indicate a successful verification. |
64 | | - /// |
65 | | - /// See https://developer.telesign.com/docs/app-verify-android-sdk-self#section-obtaining-verification-status or |
66 | | - /// https://developer.telesign.com/docs/app-verify-ios-sdk-self#section-obtaining-verification-status for detailed |
67 | | - /// API documentation. |
68 | | - /// </summary> |
69 | | - public Task<TelesignResponse> StatusAsync(string externalId, Dictionary<string, string> parameters = null) |
70 | | - { |
71 | | - return GetAsync(string.Format(APPVERIFY_STATUS_RESOURCE, externalId), parameters); |
72 | | - } |
| 8 | + /// <summary> |
| 9 | + /// AppVerify is a secure, lightweight SDK that integrates a frictionless user verification process into existing native mobile applications. |
| 10 | + /// </summary> |
| 11 | + public class AppVerifyClient : RestClient |
| 12 | + { |
| 13 | + private const string APPVERIFY_STATUS_RESOURCE = "/v1/mobile/verification/status/{0}"; |
| 14 | + |
| 15 | + public AppVerifyClient(string customerId, |
| 16 | + string apiKey) |
| 17 | + : base(customerId, |
| 18 | + apiKey) |
| 19 | + { } |
| 20 | + |
| 21 | + public AppVerifyClient(string customerId, |
| 22 | + string apiKey, |
| 23 | + string restEndPoint, |
| 24 | + string source, |
| 25 | + string sdkVersionOrigin, |
| 26 | + string sdkVersionDependency) |
| 27 | + : base(customerId, |
| 28 | + apiKey, |
| 29 | + restEndPoint, |
| 30 | + source: source, |
| 31 | + sdkVersionOrigin: sdkVersionOrigin, |
| 32 | + sdkVersionDependency: sdkVersionDependency) |
| 33 | + { } |
| 34 | + |
| 35 | + public AppVerifyClient(string customerId, |
| 36 | + string apiKey, |
| 37 | + string restEndPoint, |
| 38 | + int timeout, |
| 39 | + WebProxy proxy, |
| 40 | + string proxyUsername, |
| 41 | + string proxyPassword, |
| 42 | + string source, |
| 43 | + string sdkVersionOrigin, |
| 44 | + string sdkVersionDependency) |
| 45 | + : base(customerId, |
| 46 | + apiKey, |
| 47 | + restEndPoint, |
| 48 | + timeout, |
| 49 | + proxy, |
| 50 | + proxyUsername, |
| 51 | + proxyPassword, |
| 52 | + source, |
| 53 | + sdkVersionOrigin, |
| 54 | + sdkVersionDependency) |
| 55 | + { |
| 56 | + } |
| 57 | + |
| 58 | + /// <summary> |
| 59 | + /// Retrieves the verification result for an AppVerify transaction by externalId. To ensure a secure verification |
| 60 | + /// flow you must check the status using TeleSign's servers on your backend. Do not rely on the SDK alone to |
| 61 | + /// indicate a successful verification. |
| 62 | + /// |
| 63 | + /// See https://developer.telesign.com/docs/app-verify-android-sdk-self#section-obtaining-verification-status or |
| 64 | + /// https://developer.telesign.com/docs/app-verify-ios-sdk-self#section-obtaining-verification-status for detailed |
| 65 | + /// API documentation. |
| 66 | + /// </summary> |
| 67 | + public TelesignResponse Status(string externalId, Dictionary<string, string> parameters = null) |
| 68 | + { |
| 69 | + return Get(string.Format(APPVERIFY_STATUS_RESOURCE, externalId), parameters); |
| 70 | + } |
| 71 | + |
| 72 | + /// <summary> |
| 73 | + /// Retrieves the verification result for an AppVerify transaction by externalId. To ensure a secure verification |
| 74 | + /// flow you must check the status using TeleSign's servers on your backend. Do not rely on the SDK alone to |
| 75 | + /// indicate a successful verification. |
| 76 | + /// |
| 77 | + /// See https://developer.telesign.com/docs/app-verify-android-sdk-self#section-obtaining-verification-status or |
| 78 | + /// https://developer.telesign.com/docs/app-verify-ios-sdk-self#section-obtaining-verification-status for detailed |
| 79 | + /// API documentation. |
| 80 | + /// </summary> |
| 81 | + public Task<TelesignResponse> StatusAsync(string externalId, Dictionary<string, string> parameters = null) |
| 82 | + { |
| 83 | + return GetAsync(string.Format(APPVERIFY_STATUS_RESOURCE, externalId), parameters); |
| 84 | + } |
73 | 85 | } |
74 | | -} |
| 86 | +} |
0 commit comments