paxful_client 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/lib/paxful_client/requests/get_balance_request.rb +11 -4
- data/lib/paxful_client/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: 254db880129744b08cde6919bfc46602d477b2a3157cf4b3b5cfa5c915d073fe
|
4
|
+
data.tar.gz: 8d779a7267a67da361b314491c60256a0f5ce13744d3cb20ba3e7cfcc2b5f29d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7add11eb46dd431527e2b796e206ffa2308a17277736b4944a343b6c03d765e6134f23f483f7da3e018a3fb045ece8ee4e772f6af0b558fb265b0ce4d56e7421
|
7
|
+
data.tar.gz: 6e2b95a8c2ef5b291764d8f9292e1d145c0e76df509b33a9edc4e54af3a07be6c5808281ef7f40c4f1b7dca935fd084dd09ae5366573c92bb2855215da9252f8
|
data/CHANGELOG.md
CHANGED
@@ -5,4 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
|
+
### Changed
|
9
|
+
- refactor `get_balance` request
|
10
|
+
|
11
|
+
## [0.1.0] - 2020-09-12
|
12
|
+
### Added
|
8
13
|
- add `get_balance` endpoint
|
data/Gemfile.lock
CHANGED
@@ -21,10 +21,17 @@ module PaxfulClient
|
|
21
21
|
|
22
22
|
def body
|
23
23
|
nonce = Time.now.to_i
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
24
|
+
apiseal = OpenSSL::HMAC.hexdigest(
|
25
|
+
"SHA256",
|
26
|
+
secret,
|
27
|
+
"apikey=#{key}&nonce=#{nonce}",
|
28
|
+
)
|
29
|
+
|
30
|
+
[
|
31
|
+
"apikey=#{key}",
|
32
|
+
"nonce=#{nonce}",
|
33
|
+
"apiseal=#{apiseal}",
|
34
|
+
].join("&")
|
28
35
|
end
|
29
36
|
|
30
37
|
end
|