zeroclick-sellers 0.4.0 → 0.4.1
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/zeroclick/sellers/usage.rb +7 -1
- data/lib/zeroclick/sellers/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 516aac7120c0e979c3d70f57051151667cd4a3e5945ecca29e3202af78ef04df
|
|
4
|
+
data.tar.gz: 65f2ed28d951f1b9108f03c8dd64cead2ee3cf96ed8f4580b710d3d33ad3802e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e07f7f2cc9135b43b93f27babfe4109003ac388503d10f13085378b472c6837ae144542afe66b3c1a725199f96554cf2c73da7fe6a45d95dad76fac9b22a4bd3
|
|
7
|
+
data.tar.gz: ce8aa5c0cab3f67cfec797a1b05da45b581e3c77c96c685ced835e95e411c2585c934dd85215d97cc096b50e76e5399d18ca85e8bc80d2a04186af1e4c6a5b34
|
|
@@ -6,6 +6,7 @@ require "uri"
|
|
|
6
6
|
|
|
7
7
|
require_relative "contracts"
|
|
8
8
|
require_relative "errors"
|
|
9
|
+
require_relative "version"
|
|
9
10
|
|
|
10
11
|
module ZeroClick
|
|
11
12
|
module Sellers
|
|
@@ -35,13 +36,18 @@ module ZeroClick
|
|
|
35
36
|
OpenSSL::SSL::SSLError
|
|
36
37
|
].freeze
|
|
37
38
|
|
|
39
|
+
# SDK self-identification, most significant token first per RFC 9110:
|
|
40
|
+
# the gem release, then the Ruby runtime.
|
|
41
|
+
USER_AGENT = "zeroclick-sellers-ruby/#{VERSION} ruby/#{RUBY_VERSION}".freeze
|
|
42
|
+
|
|
38
43
|
module_function
|
|
39
44
|
|
|
40
45
|
def request_headers(api_key)
|
|
41
46
|
{
|
|
42
47
|
"accept" => "application/json",
|
|
43
48
|
"authorization" => "Bearer #{api_key}",
|
|
44
|
-
"content-type" => "application/json"
|
|
49
|
+
"content-type" => "application/json",
|
|
50
|
+
"user-agent" => USER_AGENT
|
|
45
51
|
}
|
|
46
52
|
end
|
|
47
53
|
|