alloy-api 0.0.1 → 0.0.2
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/CHANGELOG.md +6 -0
- data/README.md +6 -0
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e845b1524bcbb0526ac40ff48555f1f34a01c80ed0471296185a5b5bfad14ce0
|
|
4
|
+
data.tar.gz: 30c686b9eda1882a164a5c0c5c851e507e7a81c37e76d5d99fbe0a65077e37d6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e146cdb58be40db56a1d9c77078ba0e922affd4958b9bd7dfdab12a378ef9b4e8edac99b83869e11e20bc66bdbee95d73c768ecdbdd505bede28c8a96ce0fc46
|
|
7
|
+
data.tar.gz: 3896b271414ac2eda395ab832b8843be6008f0d189fbc2c99b990f7ce6960a4c05701c92e9b2f6c27bf50df477e162435ee5b336c53cea10176a199d8af61a2c
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -41,6 +41,12 @@ Also, if using a sandbox, set the endpoint:
|
|
|
41
41
|
Alloy::Api.api_uri = 'https://sandbox.alloy.co/' # Be sure to include the trailing slash!
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
+
The Alloy.co api methods are implemented by the Api class. Most take a set of options, including headers and body:
|
|
45
|
+
|
|
46
|
+
```ruby
|
|
47
|
+
Alloy::Api.parameters(method: 'get') # The default method is 'post' - this method will get required/optional parameters for running evaluations
|
|
48
|
+
Alloy::Api.evaluations(body: { first_name: 'John', last_name: 'Smith' }, headers: { 'Alloy-Refresh-Cache': 'true' }) # Runs an evaluation. Headers can be set as well, but the Content-Type and Authorization are automatic
|
|
49
|
+
```
|
|
44
50
|
|
|
45
51
|
## License
|
|
46
52
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: alloy-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matthew Schultz
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.18
|
|
19
|
+
version: '0.18'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 0.18
|
|
26
|
+
version: '0.18'
|
|
27
27
|
description: " A wrapper for the Alloy.co API. Helps to build KYC policy support
|
|
28
28
|
into applications.\n"
|
|
29
29
|
email:
|
|
@@ -35,11 +35,11 @@ files:
|
|
|
35
35
|
- LICENSE
|
|
36
36
|
- README.md
|
|
37
37
|
- lib/alloy-api.rb
|
|
38
|
-
homepage: https://
|
|
38
|
+
homepage: https://rubygems.org/gems/alloy-api
|
|
39
39
|
licenses:
|
|
40
40
|
- MIT
|
|
41
41
|
metadata:
|
|
42
|
-
source_code_uri: https://github.com/
|
|
42
|
+
source_code_uri: https://github.com/usdigitalresponse/alloy-api
|
|
43
43
|
post_install_message:
|
|
44
44
|
rdoc_options: []
|
|
45
45
|
require_paths:
|
|
@@ -48,7 +48,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
48
48
|
requirements:
|
|
49
49
|
- - ">="
|
|
50
50
|
- !ruby/object:Gem::Version
|
|
51
|
-
version:
|
|
51
|
+
version: 2.0.0
|
|
52
52
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
53
53
|
requirements:
|
|
54
54
|
- - ">="
|