hippospay 0.1.0 → 0.1.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/Gemfile.lock +1 -1
- data/README.md +10 -0
- data/lib/hippospay.rb +2 -2
- data/lib/hippospay/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 84c45a8924f1d9889654b951d8da39ffa1ed32c6
|
|
4
|
+
data.tar.gz: 7166abda6ee0f8943e719709b81567fc4263e432
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 85527122c2c6a9868f3d7c06f8ea661827426db3d756821d7ff8e4cedc775d3c4f3f231ef277ee52b60593fb3d72ecc334982e4229a64b86dc2e193ec2ec7090
|
|
7
|
+
data.tar.gz: 54ff5675ab28dd97468d7a069441779df56dbdf2eee05c8d2afe8f82cc8da7e1bc40febad2c6eb1f18d512d2e1752ef56a14a14572b36214e01d06849ffabc64
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
This gem help you to use [生活圈商户开放平台](https://fubei.gitbooks.io/lifecircleopen-api/content/)
|
|
4
4
|
|
|
5
|
+
- get [对账单](https://fubei.gitbooks.io/lifecircleopen-api/content/business/methods/orderReconciliation.html) by date
|
|
6
|
+
|
|
5
7
|
## Installation
|
|
6
8
|
|
|
7
9
|
Add this line to your application's Gemfile:
|
|
@@ -20,7 +22,15 @@ Or install it yourself as:
|
|
|
20
22
|
|
|
21
23
|
## Usage
|
|
22
24
|
|
|
25
|
+
```
|
|
26
|
+
require 'hippospay'
|
|
27
|
+
extend Hippospay
|
|
28
|
+
HIPPO_APP_ID = YOURAPPID
|
|
29
|
+
HIPPO_APP_SECRET = YOURAPPSECRET
|
|
30
|
+
get_hippo(day: "9", month: "11", year: "2017")
|
|
31
|
+
```
|
|
23
32
|
|
|
33
|
+
Then you will get data in hash
|
|
24
34
|
|
|
25
35
|
## Development
|
|
26
36
|
|
data/lib/hippospay.rb
CHANGED
|
@@ -11,8 +11,8 @@ module Hippospay
|
|
|
11
11
|
limit = '100'
|
|
12
12
|
type = '1'
|
|
13
13
|
api_url = 'https://shq-api.51fubei.com/gateway'
|
|
14
|
-
app_id =
|
|
15
|
-
app_secret =
|
|
14
|
+
app_id = HIPPO_APP_ID
|
|
15
|
+
app_secret = HIPPO_APP_SECRET
|
|
16
16
|
method = 'openapi.payment.order.reconciliation'
|
|
17
17
|
nonce = (0...32).map { ('a'..'z').to_a[rand(26)] }.join
|
|
18
18
|
next_page = true
|
data/lib/hippospay/version.rb
CHANGED