Skip to content

Commit

Permalink
AutoVerify rebranded to AppVerify, refactored associated names.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarrad Lee committed Jun 16, 2017
1 parent 36db83e commit ae45f11
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 2.1.0.{build}
version: 2.2.0.{build}
before_build:
- nuget restore Telesign.sln
build:
Expand Down
3 changes: 3 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2.2.0
- AutoVerify rebranded to AppVerify, please update your integration.

2.1.0
- Major refactor and simplification into generic REST client.
- updated and improved README
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace Telesign.Example.AutoVerify
namespace Telesign.Example.AppVerify
{
class GetStatusByExternalId
{
Expand All @@ -13,12 +13,12 @@ static void Main(string[] args)

try
{
AutoVerifyClient autoverifyClient = new AutoVerifyClient(customerId, apiKey);
RestClient.TelesignResponse telesignResponse = autoverifyClient.Status(externalId);
AppVerifyClient appVerifyClient = new AppVerifyClient(customerId, apiKey);
RestClient.TelesignResponse telesignResponse = appVerifyClient.Status(externalId);

if (telesignResponse.OK)
{
Console.WriteLine(string.Format("AutoVerify transaction with external_id {0} has status code {1} and status description {2}.",
Console.WriteLine(string.Format("AppVerify transaction with external_id {0} has status code {1} and status description {2}.",
externalId,
telesignResponse.Json["status"]["code"],
telesignResponse.Json["status"]["description"]));
Expand Down
2 changes: 1 addition & 1 deletion Telesign.Example/Telesign.Example.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="AutoVerify\GetStatusByExternalId.cs" />
<Compile Include="AppVerify\GetStatusByExternalId.cs" />
<Compile Include="Messaging\SendMessage.cs" />
<Compile Include="Messaging\SendMessageWithVerificationCode.cs" />
<Compile Include="PhoneId\CheckPhoneTypeToBlockVoip.cs" />
Expand Down
19 changes: 10 additions & 9 deletions Telesign/AutoVerifyClient.cs → Telesign/AppVerifyClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,27 @@
namespace Telesign
{
/// <summary>
/// AutoVerify is a secure, lightweight SDK that integrates a frictionless user verification process into existing native mobile applications.
/// AppVerify is a secure, lightweight SDK that integrates a frictionless user verification process into existing native mobile applications.
/// </summary>
public class AutoVerifyClient : RestClient
public class AppVerifyClient : RestClient
{
private const string AUTOVERIFY_STATUS_RESOURCE = "/v1/mobile/verification/status/{0}";
private const string APPVERIFY_STATUS_RESOURCE = "/v1/mobile/verification/status/{0}";

public AutoVerifyClient(string customerId,
public AppVerifyClient(string customerId,
string apiKey)
: base(customerId,
apiKey)
{ }

public AutoVerifyClient(string customerId,
public AppVerifyClient(string customerId,
string apiKey,
string restEndPoint)
: base(customerId,
apiKey,
restEndPoint)
{ }

public AutoVerifyClient(string customerId,
public AppVerifyClient(string customerId,
string apiKey,
string restEndPoint,
int timeout,
Expand All @@ -42,16 +42,17 @@ public AutoVerifyClient(string customerId,
}

/// <summary>
/// Retrieves the verification result for an AutoVerify transaction by externalId. To ensure a secure verification
/// Retrieves the verification result for an AppVerify transaction by externalId. To ensure a secure verification
/// flow you must check the status using TeleSign's servers on your backend. Do not rely on the SDK alone to
/// indicate a successful verification.
///
/// See https://developer.telesign.com/docs/auto-verify-sdk-self#section-obtaining-verification-status for detailed
/// See https://developer.telesign.com/docs/app-verify-android-sdk-self#section-obtaining-verification-status or
/// https://developer.telesign.com/docs/app-verify-ios-sdk-self#section-obtaining-verification-status for detailed
/// API documentation.
/// </summary>
public TelesignResponse Status(string externalId, Dictionary<string, string> parameters = null)
{
return this.Get(string.Format(AUTOVERIFY_STATUS_RESOURCE, externalId), parameters);
return this.Get(string.Format(APPVERIFY_STATUS_RESOURCE, externalId), parameters);
}
}
}
2 changes: 1 addition & 1 deletion Telesign/RestClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace Telesign
public class RestClient : IDisposable
{
public static readonly string UserAgent = string.Format("TeleSignSdk/csharp-{0} .Net/{1} HttpClient",
typeof(RestClient).Assembly.GetName().Version,
"2.2.0",
Environment.Version.ToString());

private string customerId;
Expand Down
2 changes: 1 addition & 1 deletion Telesign/Telesign.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="AutoVerifyClient.cs" />
<Compile Include="AppVerifyClient.cs" />
<Compile Include="MessagingClient.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="PhoneIdClient.cs" />
Expand Down
2 changes: 1 addition & 1 deletion Telesign/telesign.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package>
<metadata>
<id>Telesign</id>
<version>2.1.0</version>
<version>2.2.0</version>
<title>Telesign</title>
<authors>Telesign</authors>
<owners>Telesign</owners>
Expand Down

0 comments on commit ae45f11

Please sign in to comment.