telesign 2.1.2 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7f42bce74e79c5ddc0d4790cb29f7a8c4d354c40
4
- data.tar.gz: 95409415927c296fe78c53ec360e90a1f3739276
3
+ metadata.gz: 671cb0c341029e000d0f044258feae187c404c96
4
+ data.tar.gz: b0775ec9773690bfebaa7305fcbae024d9c7b44c
5
5
  SHA512:
6
- metadata.gz: 26f2db00403993130e9c6bcb88a261783e5aa43206770c7fe8a2dfed1384b47c6cff4b10b16e734156b8cb9cf4fb92375f40606244476927b37ca5ffc82b72b1
7
- data.tar.gz: 38c01f9f06cde03a88caecbe58f7f601ecd92a939157edb09137e660dffafd2c401eb5d5f1eb93698bee14ae2550ac5022aa40916467c26296087cc955bf15dd
6
+ metadata.gz: 6120cd99c9365fed13091a82ead98010288526808e83405a1cb8f5fabbce0a4477b3c2f34b748d89360693e0681489ac3543c339519f775c8d7173e3ccbc5569
7
+ data.tar.gz: 991559dcf89c7d7f2a9876fd5675daf8f283f9e3b8d4245867fe90d027e71ef542582699241beaaa9099c840e474ee85c7eb299c2888ef1c6232ea6ee1b07448
@@ -1,4 +1,4 @@
1
- require 'telesign/autoverify'
1
+ require 'telesign/appverify'
2
2
  require 'telesign/messaging'
3
3
  require 'telesign/phoneid'
4
4
  require 'telesign/rest'
@@ -0,0 +1,24 @@
1
+ require 'telesign/rest'
2
+
3
+ APPVERIFY_STATUS_RESOURCE = '/v1/mobile/verification/status/%{external_id}'
4
+
5
+ module Telesign
6
+
7
+ # App Verify is a secure, lightweight SDK that integrates a frictionless user verification process into existing
8
+ # native mobile applications.
9
+ class AppVerifyClient < RestClient
10
+
11
+ # Retrieves the verification result for an App Verify transaction by external_id. To ensure a secure verification
12
+ # flow you must check the status using TeleSign's servers on your backend. Do not rely on the SDK alone to
13
+ # indicate a successful verification.
14
+ #
15
+ # See https://developer.telesign.com/docs/app-verify-android-sdk-self#section-get-status-service or
16
+ # https://developer.telesign.com/docs/app-verify-ios-sdk-self#section-get-status-service for detailed
17
+ # API documentation.
18
+ def status(external_id, **params)
19
+
20
+ self.get(APPVERIFY_STATUS_RESOURCE % {:external_id => external_id},
21
+ **params)
22
+ end
23
+ end
24
+ end
@@ -7,7 +7,7 @@ require 'securerandom'
7
7
  require 'net/http/persistent'
8
8
 
9
9
  module Telesign
10
- SDK_VERSION = '2.1.2'
10
+ SDK_VERSION = '2.2.0'
11
11
 
12
12
  # The TeleSign RestClient is a generic HTTP REST client that can be extended to make requests against any of
13
13
  # TeleSign's REST API endpoints.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: telesign
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - TeleSign
@@ -135,7 +135,7 @@ extensions: []
135
135
  extra_rdoc_files: []
136
136
  files:
137
137
  - lib/telesign.rb
138
- - lib/telesign/autoverify.rb
138
+ - lib/telesign/appverify.rb
139
139
  - lib/telesign/messaging.rb
140
140
  - lib/telesign/phoneid.rb
141
141
  - lib/telesign/rest.rb
@@ -162,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
162
162
  version: '0'
163
163
  requirements: []
164
164
  rubyforge_project:
165
- rubygems_version: 2.5.1
165
+ rubygems_version: 2.6.12
166
166
  signing_key:
167
167
  specification_version: 4
168
168
  summary: TeleSign Ruby SDK
@@ -1,23 +0,0 @@
1
- require 'telesign/rest'
2
-
3
- AUTOVERIFY_STATUS_RESOURCE = '/v1/mobile/verification/status/%{external_id}'
4
-
5
- module Telesign
6
-
7
- # AutoVerify is a secure, lightweight SDK that integrates a frictionless user verification process into existing
8
- # native mobile applications.
9
- class AutoVerifyClient < RestClient
10
-
11
- # Retrieves the verification result for an AutoVerify transaction by external_id. To ensure a secure verification
12
- # flow you must check the status using TeleSign's servers on your backend. Do not rely on the SDK alone to
13
- # indicate a successful verification.
14
- #
15
- # See https://developer.telesign.com/docs/auto-verify-sdk-self#section-obtaining-verification-status for detailed
16
- # API documentation.
17
- def status(external_id, **params)
18
-
19
- self.get(AUTOVERIFY_STATUS_RESOURCE % {:external_id => external_id},
20
- **params)
21
- end
22
- end
23
- end