telesignenterprise 2.6.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/telesignenterprise/constants.rb +1 -1
- data/lib/telesignenterprise/phoneid.rb +19 -22
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 57a7ee869e419bfea9fd94a001db56d9dd61764857264e18628f3c3f0fea7bfb
|
|
4
|
+
data.tar.gz: a1df7143c43f8f11d0573f5830caa60660ae37c45f9341ad045ffceb16c0a040
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b2ca1901cbb29959549cfae04448810b1d9b2f818e173fe5a7e298c90cedabc9f70038dec95bb26a239ad571b01bf5cd12a6c7af19234592a8ebb5817788c4c2
|
|
7
|
+
data.tar.gz: daa66ef1f5c272a1ceff1a5eb6c7e038c43a5f8b68d29702e17c83210048fe2704a3c8a576c0d60d59938b9a329646da22348977f4efb6c273e9bd277ba606d3
|
|
@@ -3,9 +3,9 @@ require_relative 'constants'
|
|
|
3
3
|
|
|
4
4
|
PHONEID_STANDARD_RESOURCE = '/v1/phoneid/standard/%{phone_number}'
|
|
5
5
|
PHONEID_SCORE_RESOURCE = '/v1/phoneid/score/%{phone_number}'
|
|
6
|
-
PHONEID_CONTACT_RESOURCE = '/v1/phoneid/contact/%{phone_number}'
|
|
7
6
|
PHONEID_LIVE_RESOURCE = '/v1/phoneid/live/%{phone_number}'
|
|
8
|
-
|
|
7
|
+
PHONEID_GET_INFO_PATH = '/v1/phoneid/%{phone_number}'
|
|
8
|
+
PHONEID_GET_INFO_PATH_ALT = '/v1/phoneid'
|
|
9
9
|
|
|
10
10
|
module TelesignEnterprise
|
|
11
11
|
|
|
@@ -49,23 +49,11 @@ module TelesignEnterprise
|
|
|
49
49
|
#
|
|
50
50
|
# See https://developer.telesign.com/docs/rest_api-phoneid-score for detailed API documentation.
|
|
51
51
|
def score(phone_number, ucid, **params)
|
|
52
|
-
|
|
53
52
|
self.get(PHONEID_SCORE_RESOURCE % {:phone_number => phone_number},
|
|
54
53
|
ucid: ucid,
|
|
55
54
|
**params)
|
|
56
55
|
end
|
|
57
56
|
|
|
58
|
-
# The PhoneID Contact API delivers contact information related to the subscriber's phone number to provide another
|
|
59
|
-
# set of indicators for established risk engines.
|
|
60
|
-
#
|
|
61
|
-
# See https://developer.telesign.com/docs/rest_api-phoneid-contact for detailed API documentation.
|
|
62
|
-
def contact(phone_number, ucid, **params)
|
|
63
|
-
|
|
64
|
-
self.get(PHONEID_CONTACT_RESOURCE % {:phone_number => phone_number},
|
|
65
|
-
ucid: ucid,
|
|
66
|
-
**params)
|
|
67
|
-
end
|
|
68
|
-
|
|
69
57
|
# The PhoneID Live API delivers insights such as whether a phone is active or disconnected, a device is reachable
|
|
70
58
|
# or unreachable and its roaming status.
|
|
71
59
|
#
|
|
@@ -77,16 +65,25 @@ module TelesignEnterprise
|
|
|
77
65
|
**params)
|
|
78
66
|
end
|
|
79
67
|
|
|
80
|
-
#
|
|
81
|
-
#
|
|
68
|
+
# Enter a phone number with country code to receive detailed information about carrier, location, and other details.
|
|
69
|
+
# Phone number provided in URL path: POST /v1/phoneid/{phone_number}
|
|
82
70
|
#
|
|
83
|
-
# See https://developer.telesign.com/
|
|
84
|
-
def
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
**params)
|
|
71
|
+
# See https://developer.telesign.com/enterprise/reference/submitphonenumberforidentity for detailed API documentation.
|
|
72
|
+
def phone_id_path(phone_number, **params)
|
|
73
|
+
params['consent'] ||= { 'method' => 1 }
|
|
74
|
+
|
|
75
|
+
self.post(PHONEID_GET_INFO_PATH % {:phone_number => phone_number}, **params)
|
|
89
76
|
end
|
|
90
77
|
|
|
78
|
+
# Enter a phone number with country code to receive detailed information about carrier, location, and other details.
|
|
79
|
+
# Phone number provided in body: POST /v1/phoneid
|
|
80
|
+
#
|
|
81
|
+
# See https://developer.telesign.com/enterprise/reference/submitphonenumberforidentityalt for detailed API documentation.
|
|
82
|
+
def phone_id_body(phone_number, **params)
|
|
83
|
+
params['phone_number'] = phone_number
|
|
84
|
+
params['consent'] ||= { 'method' => 1 }
|
|
85
|
+
|
|
86
|
+
self.post(PHONEID_GET_INFO_PATH_ALT, **params)
|
|
87
|
+
end
|
|
91
88
|
end
|
|
92
89
|
end
|
metadata
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: telesignenterprise
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 3.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- TeleSign
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
date: 2017-05-02 00:00:00.000000000 Z
|
|
@@ -142,7 +142,7 @@ homepage: http://rubygems.org/gems/telesign
|
|
|
142
142
|
licenses:
|
|
143
143
|
- MIT
|
|
144
144
|
metadata: {}
|
|
145
|
-
post_install_message:
|
|
145
|
+
post_install_message:
|
|
146
146
|
rdoc_options: []
|
|
147
147
|
require_paths:
|
|
148
148
|
- lib
|
|
@@ -157,8 +157,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
157
157
|
- !ruby/object:Gem::Version
|
|
158
158
|
version: '0'
|
|
159
159
|
requirements: []
|
|
160
|
-
rubygems_version: 3.
|
|
161
|
-
signing_key:
|
|
160
|
+
rubygems_version: 3.0.3.1
|
|
161
|
+
signing_key:
|
|
162
162
|
specification_version: 4
|
|
163
163
|
summary: TeleSign Enterprise Ruby SDK
|
|
164
164
|
test_files: []
|