apiverve_usernamegenerator 1.2.2 → 1.2.4
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/README.md +17 -13
- data/lib/apiverve_usernamegenerator/client.rb +2 -2
- data/lib/apiverve_usernamegenerator.rb +1 -1
- metadata +3 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f9c856a0ce18cd6204d1b5e4d427255e98358a6e008a9ea4db5cce2dd8e0b34d
|
|
4
|
+
data.tar.gz: 7f603ae093ef0f23e044ab242fbc693967df53310a7b3ebc1522a06032bf105a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5259dded00bd3e1369c625eea51e2460d7f61403f4efe9dbea126a03e5d39ea7e5120ac92796c83aa026fc3f3df89fe0861e18127dd911c26f70095872fd5222
|
|
7
|
+
data.tar.gz: b273634c01c4e85c31ab355ba90f452432da7454b4fb0908a146c4d3c6b58004000c6f677886d3e33c38b399727465074ce10b8d04ead1d9fe3baf355150cdfd
|
data/README.md
CHANGED
|
@@ -37,7 +37,9 @@ client = APIVerve::Usernamegenerator::Client.new(api_key: "YOUR_API_KEY")
|
|
|
37
37
|
# Make a request
|
|
38
38
|
response = client.execute({
|
|
39
39
|
email: "sean@mail.com",
|
|
40
|
-
count: 1
|
|
40
|
+
count: 1,
|
|
41
|
+
platform: "twitter",
|
|
42
|
+
maxLength: 15
|
|
41
43
|
})
|
|
42
44
|
|
|
43
45
|
# Print the response
|
|
@@ -49,7 +51,7 @@ puts response
|
|
|
49
51
|
|
|
50
52
|
```ruby
|
|
51
53
|
begin
|
|
52
|
-
response = client.execute({ email: "sean@mail.com", count: 1 })
|
|
54
|
+
response = client.execute({ email: "sean@mail.com", count: 1, platform: "twitter", maxLength: 15 })
|
|
53
55
|
puts response["data"]
|
|
54
56
|
rescue APIVerve::Usernamegenerator::ValidationError => e
|
|
55
57
|
puts "Validation error: #{e.errors.join(', ')}"
|
|
@@ -78,18 +80,20 @@ client = APIVerve::Usernamegenerator::Client.new(
|
|
|
78
80
|
"data": {
|
|
79
81
|
"count": 10,
|
|
80
82
|
"suggestions": [
|
|
81
|
-
"
|
|
82
|
-
"sean",
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
83
|
+
"smoothsean",
|
|
84
|
+
"sean-blade",
|
|
85
|
+
"infinitesean",
|
|
86
|
+
"jadesean",
|
|
87
|
+
"sean777",
|
|
88
|
+
"hiddensean23",
|
|
89
|
+
"seantv596",
|
|
90
|
+
"sean_brightdragon",
|
|
91
|
+
"shiningsean",
|
|
92
|
+
"the_sean"
|
|
91
93
|
],
|
|
92
|
-
"email": "sean@mail.com"
|
|
94
|
+
"email": "sean@mail.com",
|
|
95
|
+
"platform": null,
|
|
96
|
+
"maxLength": null
|
|
93
97
|
}
|
|
94
98
|
}
|
|
95
99
|
```
|
|
@@ -10,7 +10,7 @@ module APIVerve
|
|
|
10
10
|
#
|
|
11
11
|
# @example Basic usage
|
|
12
12
|
# client = APIVerve::Usernamegenerator::Client.new(api_key: "your_api_key")
|
|
13
|
-
# response = client.execute({ email: "sean@mail.com", count: 1 })
|
|
13
|
+
# response = client.execute({ email: "sean@mail.com", count: 1, platform: "twitter", maxLength: 15 })
|
|
14
14
|
# puts response
|
|
15
15
|
#
|
|
16
16
|
# @see https://apiverve.com/marketplace/usernamegenerator?utm_source=ruby&utm_medium=referral&utm_content=readme
|
|
@@ -19,7 +19,7 @@ module APIVerve
|
|
|
19
19
|
DEFAULT_TIMEOUT = 30
|
|
20
20
|
|
|
21
21
|
# Validation rules for parameters
|
|
22
|
-
VALIDATION_RULES = { 'email' => { type: 'string', required: true, format: 'email' }, 'count' => { type: 'integer', required: false, min: 1, max: 10 } }
|
|
22
|
+
VALIDATION_RULES = { 'email' => { type: 'string', required: true, format: 'email' }, 'count' => { type: 'integer', required: false, min: 1, max: 10 }, 'platform' => { type: 'string', required: false }, 'maxLength' => { type: 'integer', required: false, min: 3, max: 50 } }
|
|
23
23
|
|
|
24
24
|
# Format validation patterns
|
|
25
25
|
FORMAT_PATTERNS = {
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: apiverve_usernamegenerator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- APIVerve
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: faraday
|
|
@@ -79,7 +78,6 @@ metadata:
|
|
|
79
78
|
source_code_uri: https://github.com/apiverve/usernamegenerator-API/tree/main/ruby
|
|
80
79
|
changelog_uri: https://apiverve.com/changelog
|
|
81
80
|
documentation_uri: https://docs.apiverve.com/ref/usernamegenerator
|
|
82
|
-
post_install_message:
|
|
83
81
|
rdoc_options: []
|
|
84
82
|
require_paths:
|
|
85
83
|
- lib
|
|
@@ -94,8 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
94
92
|
- !ruby/object:Gem::Version
|
|
95
93
|
version: '0'
|
|
96
94
|
requirements: []
|
|
97
|
-
rubygems_version:
|
|
98
|
-
signing_key:
|
|
95
|
+
rubygems_version: 4.0.23
|
|
99
96
|
specification_version: 4
|
|
100
97
|
summary: Username Generator API - Ruby Client
|
|
101
98
|
test_files: []
|