apiverve_randomusergenerator 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 +35 -13
- data/lib/apiverve_randomusergenerator/client.rb +2 -2
- data/lib/apiverve_randomusergenerator.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: 425cf11ce027bc094d06127a0b84370b1cb9f630246eec8dc71bf608a9607aa0
|
|
4
|
+
data.tar.gz: b365b75195b3804f9e91d8fa5f4e3440a56d2f0734c964008ecabcc2fff1238d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7536329811efca1e47f7a87a79a2523e6a18b32a06e9d73aa7de259172355b8603d3a659e982d236c47ed793976b0f1d21f08baf679f56ca5db8a30339e7eb4c
|
|
7
|
+
data.tar.gz: 947a39615ff703050716c40ea17be547d5f8b049097ccd5295e266effad10814f48d776275eefe9a7423c929a7015a10fe8c64aeb42ae740e4125ef3a036cc5f
|
data/README.md
CHANGED
|
@@ -37,7 +37,10 @@ client = APIVerve::Randomusergenerator::Client.new(api_key: "YOUR_API_KEY")
|
|
|
37
37
|
# Make a request
|
|
38
38
|
response = client.execute({
|
|
39
39
|
count: 1,
|
|
40
|
-
includeAvatar: true
|
|
40
|
+
includeAvatar: true,
|
|
41
|
+
gender: "",
|
|
42
|
+
nationality: "",
|
|
43
|
+
seed: ""
|
|
41
44
|
})
|
|
42
45
|
|
|
43
46
|
# Print the response
|
|
@@ -49,7 +52,7 @@ puts response
|
|
|
49
52
|
|
|
50
53
|
```ruby
|
|
51
54
|
begin
|
|
52
|
-
response = client.execute({ count: 1, includeAvatar: true })
|
|
55
|
+
response = client.execute({ count: 1, includeAvatar: true, gender: "", nationality: "", seed: "" })
|
|
53
56
|
puts response["data"]
|
|
54
57
|
rescue APIVerve::Randomusergenerator::ValidationError => e
|
|
55
58
|
puts "Validation error: #{e.errors.join(', ')}"
|
|
@@ -77,17 +80,36 @@ client = APIVerve::Randomusergenerator::Client.new(
|
|
|
77
80
|
"error": null,
|
|
78
81
|
"data": [
|
|
79
82
|
{
|
|
80
|
-
"id": "
|
|
81
|
-
"name": "
|
|
82
|
-
"gender": "
|
|
83
|
-
"username": "
|
|
84
|
-
"email": "
|
|
85
|
-
"password": "
|
|
86
|
-
"registered": "
|
|
87
|
-
"phone": "1-
|
|
88
|
-
"cell": "1-
|
|
89
|
-
"birthdate": "
|
|
90
|
-
"
|
|
83
|
+
"id": "aeb01cae-300b-4e54-9cb0-76ce52d6b315",
|
|
84
|
+
"name": "Monique Torp",
|
|
85
|
+
"gender": "Female",
|
|
86
|
+
"username": "Monique.Torp",
|
|
87
|
+
"email": "Monique_Torp41@hotmail.com",
|
|
88
|
+
"password": "V7s6IHRMhlniG98",
|
|
89
|
+
"registered": "2026-01-10T15:18:03.898Z",
|
|
90
|
+
"phone": "1-967-684-8927 x83452",
|
|
91
|
+
"cell": "1-555-737-7469 x885",
|
|
92
|
+
"birthdate": "1976-03-25T20:38:58.998Z",
|
|
93
|
+
"age": 50,
|
|
94
|
+
"nationality": "US",
|
|
95
|
+
"location": {
|
|
96
|
+
"street": "6858 Darrick Ramp",
|
|
97
|
+
"city": "Parkersburg",
|
|
98
|
+
"state": "West Virginia",
|
|
99
|
+
"postcode": "31811-8127",
|
|
100
|
+
"country": "United States of America",
|
|
101
|
+
"countryCode": "US",
|
|
102
|
+
"latitude": 39.27687,
|
|
103
|
+
"longitude": -81.56839,
|
|
104
|
+
"timezone": "America/New_York"
|
|
105
|
+
},
|
|
106
|
+
"login": {
|
|
107
|
+
"salt": "xh1696HT",
|
|
108
|
+
"md5": "5ebad82435f817d5837916fa2885b95c",
|
|
109
|
+
"sha1": "b62baac1003eed109f32b3305bf049516f175819",
|
|
110
|
+
"sha256": "02a99836191088b702972c5153c9d4ce2290d39bb90de141b467f302e62e8143"
|
|
111
|
+
},
|
|
112
|
+
"avatar": "https://storage.googleapis.com/apiverve/APIResources/faces/Female/50-60/87654321.jpg?X-Goog-Signature=..."
|
|
91
113
|
}
|
|
92
114
|
]
|
|
93
115
|
}
|
|
@@ -10,7 +10,7 @@ module APIVerve
|
|
|
10
10
|
#
|
|
11
11
|
# @example Basic usage
|
|
12
12
|
# client = APIVerve::Randomusergenerator::Client.new(api_key: "your_api_key")
|
|
13
|
-
# response = client.execute({ count: 1, includeAvatar: true })
|
|
13
|
+
# response = client.execute({ count: 1, includeAvatar: true, gender: "", nationality: "", seed: "" })
|
|
14
14
|
# puts response
|
|
15
15
|
#
|
|
16
16
|
# @see https://apiverve.com/marketplace/randomusergenerator?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 = { 'count' => { type: 'integer', required: false, min: 1, max: 100 }, 'includeAvatar' => { type: 'boolean', required: false } }
|
|
22
|
+
VALIDATION_RULES = { 'count' => { type: 'integer', required: false, min: 1, max: 100 }, 'includeAvatar' => { type: 'boolean', required: false }, 'gender' => { type: 'string', required: false }, 'nationality' => { type: 'string', required: false }, 'seed' => { type: 'string', required: false } }
|
|
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_randomusergenerator
|
|
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/randomusergenerator-API/tree/main/ruby
|
|
80
79
|
changelog_uri: https://apiverve.com/changelog
|
|
81
80
|
documentation_uri: https://docs.apiverve.com/ref/randomusergenerator
|
|
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: Random User Generator API - Ruby Client
|
|
101
98
|
test_files: []
|