zsgf_client 2.0.1 → 2.1.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/docs/AccessTokenApi.md +15 -7
- data/docs/AccessTokenPostRequest.md +0 -2
- data/docs/ExternalAccountApi.md +22 -8
- data/docs/HbFqPayInfo.md +2 -0
- data/docs/SendEmailCodeRequest.md +1 -1
- data/docs/SendSMSCodeRequest.md +1 -1
- data/docs/UserCurrencyApi.md +20 -8
- data/docs/UserFriendsApi.md +34 -14
- data/docs/UserLocationApi.md +23 -9
- data/lib/zsgf_client/api/access_token_api.rb +12 -3
- data/lib/zsgf_client/api/external_account_api.rb +15 -0
- data/lib/zsgf_client/api/user_currency_api.rb +27 -12
- data/lib/zsgf_client/api/user_friends_api.rb +24 -0
- data/lib/zsgf_client/api/user_location_api.rb +15 -0
- data/lib/zsgf_client/configuration.rb +0 -4
- data/lib/zsgf_client/models/access_token_post_request.rb +1 -10
- data/lib/zsgf_client/models/hb_fq_pay_info.rb +11 -1
- data/lib/zsgf_client/models/send_email_code_request.rb +12 -1
- data/lib/zsgf_client/models/send_sms_code_request.rb +12 -1
- data/lib/zsgf_client/version.rb +1 -1
- data/spec/api/access_token_api_spec.rb +4 -1
- data/spec/api/external_account_api_spec.rb +5 -0
- data/spec/api/user_currency_api_spec.rb +7 -2
- data/spec/api/user_friends_api_spec.rb +8 -0
- data/spec/api/user_location_api_spec.rb +5 -0
- data/spec/models/access_token_post_request_spec.rb +0 -6
- data/spec/models/hb_fq_pay_info_spec.rb +6 -0
- metadata +122 -122
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bb93216d9f74b3e0f8421344cad31e1846a038aba09c631f7f167174165c4a9d
|
|
4
|
+
data.tar.gz: 560f090fa9b5654632eeeacd10bd1798035603d022e07466ed8d3d7a872fdc8f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c7bc0266e59a156fa1dd404b7123c0550822d05a8bebe53366408c7e28dfb16d3bc216947b4b145c969983039d2f52d16541dfdcc1d5e6ec62197fee99441f94
|
|
7
|
+
data.tar.gz: 14d59db6c071dd90355f8eface9b98b9b35ab3978197d6a0223ff333fcd3b47c856f69d501a18d1b54051bd01c37986c07e4aba64ef33652105d3c53efb551e5
|
data/docs/AccessTokenApi.md
CHANGED
|
@@ -12,7 +12,7 @@ All URIs are relative to *https://api-dev.zashigaofa.cn*
|
|
|
12
12
|
|
|
13
13
|
## access_token_delete
|
|
14
14
|
|
|
15
|
-
> <BooleanApiResponse> access_token_delete(id, app_key)
|
|
15
|
+
> <BooleanApiResponse> access_token_delete(id, app_key, opts)
|
|
16
16
|
|
|
17
17
|
删除令牌
|
|
18
18
|
|
|
@@ -32,10 +32,13 @@ end
|
|
|
32
32
|
api_instance = ZSGFClient::AccessTokenApi.new
|
|
33
33
|
id = 789 # Integer |
|
|
34
34
|
app_key = 'app_key_example' # String |
|
|
35
|
+
opts = {
|
|
36
|
+
user_id: 'user_id_example' # String |
|
|
37
|
+
}
|
|
35
38
|
|
|
36
39
|
begin
|
|
37
40
|
# 删除令牌
|
|
38
|
-
result = api_instance.access_token_delete(id, app_key)
|
|
41
|
+
result = api_instance.access_token_delete(id, app_key, opts)
|
|
39
42
|
p result
|
|
40
43
|
rescue ZSGFClient::ApiError => e
|
|
41
44
|
puts "Error when calling AccessTokenApi->access_token_delete: #{e}"
|
|
@@ -46,12 +49,12 @@ end
|
|
|
46
49
|
|
|
47
50
|
This returns an Array which contains the response data, status code and headers.
|
|
48
51
|
|
|
49
|
-
> <Array(<BooleanApiResponse>, Integer, Hash)> access_token_delete_with_http_info(id, app_key)
|
|
52
|
+
> <Array(<BooleanApiResponse>, Integer, Hash)> access_token_delete_with_http_info(id, app_key, opts)
|
|
50
53
|
|
|
51
54
|
```ruby
|
|
52
55
|
begin
|
|
53
56
|
# 删除令牌
|
|
54
|
-
data, status_code, headers = api_instance.access_token_delete_with_http_info(id, app_key)
|
|
57
|
+
data, status_code, headers = api_instance.access_token_delete_with_http_info(id, app_key, opts)
|
|
55
58
|
p status_code # => 2xx
|
|
56
59
|
p headers # => { ... }
|
|
57
60
|
p data # => <BooleanApiResponse>
|
|
@@ -66,6 +69,7 @@ end
|
|
|
66
69
|
| ---- | ---- | ----------- | ----- |
|
|
67
70
|
| **id** | **Integer** | | |
|
|
68
71
|
| **app_key** | **String** | | |
|
|
72
|
+
| **user_id** | **String** | | [optional] |
|
|
69
73
|
|
|
70
74
|
### Return type
|
|
71
75
|
|
|
@@ -103,6 +107,7 @@ end
|
|
|
103
107
|
api_instance = ZSGFClient::AccessTokenApi.new
|
|
104
108
|
app_key = 'app_key_example' # String |
|
|
105
109
|
opts = {
|
|
110
|
+
user_id: 'user_id_example', # String |
|
|
106
111
|
access_token_post_request: ZSGFClient::AccessTokenPostRequest.new({title: 'title_example'}) # AccessTokenPostRequest |
|
|
107
112
|
}
|
|
108
113
|
|
|
@@ -138,6 +143,7 @@ end
|
|
|
138
143
|
| Name | Type | Description | Notes |
|
|
139
144
|
| ---- | ---- | ----------- | ----- |
|
|
140
145
|
| **app_key** | **String** | | |
|
|
146
|
+
| **user_id** | **String** | | [optional] |
|
|
141
147
|
| **access_token_post_request** | [**AccessTokenPostRequest**](AccessTokenPostRequest.md) | | [optional] |
|
|
142
148
|
|
|
143
149
|
### Return type
|
|
@@ -177,6 +183,7 @@ api_instance = ZSGFClient::AccessTokenApi.new
|
|
|
177
183
|
id = 789 # Integer |
|
|
178
184
|
app_key = 'app_key_example' # String |
|
|
179
185
|
opts = {
|
|
186
|
+
user_id: 'user_id_example', # String |
|
|
180
187
|
access_token_put_request: ZSGFClient::AccessTokenPutRequest.new # AccessTokenPutRequest |
|
|
181
188
|
}
|
|
182
189
|
|
|
@@ -213,6 +220,7 @@ end
|
|
|
213
220
|
| ---- | ---- | ----------- | ----- |
|
|
214
221
|
| **id** | **Integer** | | |
|
|
215
222
|
| **app_key** | **String** | | |
|
|
223
|
+
| **user_id** | **String** | | [optional] |
|
|
216
224
|
| **access_token_put_request** | [**AccessTokenPutRequest**](AccessTokenPutRequest.md) | | [optional] |
|
|
217
225
|
|
|
218
226
|
### Return type
|
|
@@ -251,9 +259,9 @@ end
|
|
|
251
259
|
api_instance = ZSGFClient::AccessTokenApi.new
|
|
252
260
|
app_key = 'app_key_example' # String |
|
|
253
261
|
opts = {
|
|
254
|
-
user_id: 789, # Integer |
|
|
255
262
|
skip: 56, # Integer |
|
|
256
|
-
take: 56 # Integer |
|
|
263
|
+
take: 56, # Integer |
|
|
264
|
+
user_id: 'user_id_example' # String |
|
|
257
265
|
}
|
|
258
266
|
|
|
259
267
|
begin
|
|
@@ -288,9 +296,9 @@ end
|
|
|
288
296
|
| Name | Type | Description | Notes |
|
|
289
297
|
| ---- | ---- | ----------- | ----- |
|
|
290
298
|
| **app_key** | **String** | | |
|
|
291
|
-
| **user_id** | **Integer** | | [optional] |
|
|
292
299
|
| **skip** | **Integer** | | [optional] |
|
|
293
300
|
| **take** | **Integer** | | [optional] |
|
|
301
|
+
| **user_id** | **String** | | [optional] |
|
|
294
302
|
|
|
295
303
|
### Return type
|
|
296
304
|
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **title** | **String** | | |
|
|
8
8
|
| **tags** | **String** | | [optional] |
|
|
9
|
-
| **user_id** | **Integer** | | [optional] |
|
|
10
9
|
| **description** | **String** | | [optional] |
|
|
11
10
|
| **permissions** | **String** | | [optional] |
|
|
12
11
|
| **expire_in_days** | **Integer** | | [optional] |
|
|
@@ -19,7 +18,6 @@ require 'zsgf_client'
|
|
|
19
18
|
instance = ZSGFClient::AccessTokenPostRequest.new(
|
|
20
19
|
title: null,
|
|
21
20
|
tags: null,
|
|
22
|
-
user_id: null,
|
|
23
21
|
description: null,
|
|
24
22
|
permissions: null,
|
|
25
23
|
expire_in_days: null
|
data/docs/ExternalAccountApi.md
CHANGED
|
@@ -33,6 +33,7 @@ end
|
|
|
33
33
|
api_instance = ZSGFClient::ExternalAccountApi.new
|
|
34
34
|
app_key = 'app_key_example' # String |
|
|
35
35
|
opts = {
|
|
36
|
+
user_id: 'user_id_example', # String |
|
|
36
37
|
external_account_sign_in_request: ZSGFClient::ExternalAccountSignInRequest.new({union_id: 'union_id_example', platform: 'platform_example'}) # ExternalAccountSignInRequest | 登录请求参数
|
|
37
38
|
}
|
|
38
39
|
|
|
@@ -68,6 +69,7 @@ end
|
|
|
68
69
|
| Name | Type | Description | Notes |
|
|
69
70
|
| ---- | ---- | ----------- | ----- |
|
|
70
71
|
| **app_key** | **String** | | |
|
|
72
|
+
| **user_id** | **String** | | [optional] |
|
|
71
73
|
| **external_account_sign_in_request** | [**ExternalAccountSignInRequest**](ExternalAccountSignInRequest.md) | 登录请求参数 | [optional] |
|
|
72
74
|
|
|
73
75
|
### Return type
|
|
@@ -106,6 +108,7 @@ end
|
|
|
106
108
|
api_instance = ZSGFClient::ExternalAccountApi.new
|
|
107
109
|
app_key = 'app_key_example' # String |
|
|
108
110
|
opts = {
|
|
111
|
+
user_id: 'user_id_example', # String |
|
|
109
112
|
external_account_bind_request: ZSGFClient::ExternalAccountBindRequest.new({union_id: 'union_id_example', platform: 'platform_example', platform_name: 'platform_name_example'}) # ExternalAccountBindRequest | 绑定请求参数
|
|
110
113
|
}
|
|
111
114
|
|
|
@@ -141,6 +144,7 @@ end
|
|
|
141
144
|
| Name | Type | Description | Notes |
|
|
142
145
|
| ---- | ---- | ----------- | ----- |
|
|
143
146
|
| **app_key** | **String** | | |
|
|
147
|
+
| **user_id** | **String** | | [optional] |
|
|
144
148
|
| **external_account_bind_request** | [**ExternalAccountBindRequest**](ExternalAccountBindRequest.md) | 绑定请求参数 | [optional] |
|
|
145
149
|
|
|
146
150
|
### Return type
|
|
@@ -159,7 +163,7 @@ end
|
|
|
159
163
|
|
|
160
164
|
## user_o_auth_accounts
|
|
161
165
|
|
|
162
|
-
> <UserLoginsListApiResponse> user_o_auth_accounts(app_key)
|
|
166
|
+
> <UserLoginsListApiResponse> user_o_auth_accounts(app_key, opts)
|
|
163
167
|
|
|
164
168
|
外部账号列表
|
|
165
169
|
|
|
@@ -178,10 +182,13 @@ end
|
|
|
178
182
|
|
|
179
183
|
api_instance = ZSGFClient::ExternalAccountApi.new
|
|
180
184
|
app_key = 'app_key_example' # String |
|
|
185
|
+
opts = {
|
|
186
|
+
user_id: 'user_id_example' # String |
|
|
187
|
+
}
|
|
181
188
|
|
|
182
189
|
begin
|
|
183
190
|
# 外部账号列表
|
|
184
|
-
result = api_instance.user_o_auth_accounts(app_key)
|
|
191
|
+
result = api_instance.user_o_auth_accounts(app_key, opts)
|
|
185
192
|
p result
|
|
186
193
|
rescue ZSGFClient::ApiError => e
|
|
187
194
|
puts "Error when calling ExternalAccountApi->user_o_auth_accounts: #{e}"
|
|
@@ -192,12 +199,12 @@ end
|
|
|
192
199
|
|
|
193
200
|
This returns an Array which contains the response data, status code and headers.
|
|
194
201
|
|
|
195
|
-
> <Array(<UserLoginsListApiResponse>, Integer, Hash)> user_o_auth_accounts_with_http_info(app_key)
|
|
202
|
+
> <Array(<UserLoginsListApiResponse>, Integer, Hash)> user_o_auth_accounts_with_http_info(app_key, opts)
|
|
196
203
|
|
|
197
204
|
```ruby
|
|
198
205
|
begin
|
|
199
206
|
# 外部账号列表
|
|
200
|
-
data, status_code, headers = api_instance.user_o_auth_accounts_with_http_info(app_key)
|
|
207
|
+
data, status_code, headers = api_instance.user_o_auth_accounts_with_http_info(app_key, opts)
|
|
201
208
|
p status_code # => 2xx
|
|
202
209
|
p headers # => { ... }
|
|
203
210
|
p data # => <UserLoginsListApiResponse>
|
|
@@ -211,6 +218,7 @@ end
|
|
|
211
218
|
| Name | Type | Description | Notes |
|
|
212
219
|
| ---- | ---- | ----------- | ----- |
|
|
213
220
|
| **app_key** | **String** | | |
|
|
221
|
+
| **user_id** | **String** | | [optional] |
|
|
214
222
|
|
|
215
223
|
### Return type
|
|
216
224
|
|
|
@@ -249,6 +257,7 @@ api_instance = ZSGFClient::ExternalAccountApi.new
|
|
|
249
257
|
id = 789 # Integer | 绑定ID
|
|
250
258
|
app_key = 'app_key_example' # String |
|
|
251
259
|
opts = {
|
|
260
|
+
user_id: 'user_id_example', # String |
|
|
252
261
|
external_account_put_request: ZSGFClient::ExternalAccountPutRequest.new # ExternalAccountPutRequest | 更新请求参数
|
|
253
262
|
}
|
|
254
263
|
|
|
@@ -285,6 +294,7 @@ end
|
|
|
285
294
|
| ---- | ---- | ----------- | ----- |
|
|
286
295
|
| **id** | **Integer** | 绑定ID | |
|
|
287
296
|
| **app_key** | **String** | | |
|
|
297
|
+
| **user_id** | **String** | | [optional] |
|
|
288
298
|
| **external_account_put_request** | [**ExternalAccountPutRequest**](ExternalAccountPutRequest.md) | 更新请求参数 | [optional] |
|
|
289
299
|
|
|
290
300
|
### Return type
|
|
@@ -303,7 +313,7 @@ end
|
|
|
303
313
|
|
|
304
314
|
## user_o_auth_accounts_un_bind
|
|
305
315
|
|
|
306
|
-
> <BooleanApiResponse> user_o_auth_accounts_un_bind(id, app_key)
|
|
316
|
+
> <BooleanApiResponse> user_o_auth_accounts_un_bind(id, app_key, opts)
|
|
307
317
|
|
|
308
318
|
删除绑定账号
|
|
309
319
|
|
|
@@ -323,10 +333,13 @@ end
|
|
|
323
333
|
api_instance = ZSGFClient::ExternalAccountApi.new
|
|
324
334
|
id = 789 # Integer | 绑定ID
|
|
325
335
|
app_key = 'app_key_example' # String |
|
|
336
|
+
opts = {
|
|
337
|
+
user_id: 'user_id_example' # String |
|
|
338
|
+
}
|
|
326
339
|
|
|
327
340
|
begin
|
|
328
341
|
# 删除绑定账号
|
|
329
|
-
result = api_instance.user_o_auth_accounts_un_bind(id, app_key)
|
|
342
|
+
result = api_instance.user_o_auth_accounts_un_bind(id, app_key, opts)
|
|
330
343
|
p result
|
|
331
344
|
rescue ZSGFClient::ApiError => e
|
|
332
345
|
puts "Error when calling ExternalAccountApi->user_o_auth_accounts_un_bind: #{e}"
|
|
@@ -337,12 +350,12 @@ end
|
|
|
337
350
|
|
|
338
351
|
This returns an Array which contains the response data, status code and headers.
|
|
339
352
|
|
|
340
|
-
> <Array(<BooleanApiResponse>, Integer, Hash)> user_o_auth_accounts_un_bind_with_http_info(id, app_key)
|
|
353
|
+
> <Array(<BooleanApiResponse>, Integer, Hash)> user_o_auth_accounts_un_bind_with_http_info(id, app_key, opts)
|
|
341
354
|
|
|
342
355
|
```ruby
|
|
343
356
|
begin
|
|
344
357
|
# 删除绑定账号
|
|
345
|
-
data, status_code, headers = api_instance.user_o_auth_accounts_un_bind_with_http_info(id, app_key)
|
|
358
|
+
data, status_code, headers = api_instance.user_o_auth_accounts_un_bind_with_http_info(id, app_key, opts)
|
|
346
359
|
p status_code # => 2xx
|
|
347
360
|
p headers # => { ... }
|
|
348
361
|
p data # => <BooleanApiResponse>
|
|
@@ -357,6 +370,7 @@ end
|
|
|
357
370
|
| ---- | ---- | ----------- | ----- |
|
|
358
371
|
| **id** | **Integer** | 绑定ID | |
|
|
359
372
|
| **app_key** | **String** | | |
|
|
373
|
+
| **user_id** | **String** | | [optional] |
|
|
360
374
|
|
|
361
375
|
### Return type
|
|
362
376
|
|
data/docs/HbFqPayInfo.md
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **fq_amount** | **String** | | [optional] |
|
|
8
|
+
| **fq_inst_id** | **String** | | [optional] |
|
|
8
9
|
| **user_install_num** | **String** | | [optional] |
|
|
9
10
|
|
|
10
11
|
## Example
|
|
@@ -14,6 +15,7 @@ require 'zsgf_client'
|
|
|
14
15
|
|
|
15
16
|
instance = ZSGFClient::HbFqPayInfo.new(
|
|
16
17
|
fq_amount: null,
|
|
18
|
+
fq_inst_id: null,
|
|
17
19
|
user_install_num: null
|
|
18
20
|
)
|
|
19
21
|
```
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **email** | **String** | 用户邮箱地址 | |
|
|
8
|
-
| **type** | **String** | 用途。可选值:signup
|
|
8
|
+
| **type** | **String** | 用途。可选值:signup、forgetpwd、signin、reset | |
|
|
9
9
|
|
|
10
10
|
## Example
|
|
11
11
|
|
data/docs/SendSMSCodeRequest.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **phone** | **String** | 用户手机号 | |
|
|
8
|
-
| **type** | **String** | 用途。可选值:signup
|
|
8
|
+
| **type** | **String** | 用途。可选值:signup、forgetpwd、signin、reset | |
|
|
9
9
|
|
|
10
10
|
## Example
|
|
11
11
|
|
data/docs/UserCurrencyApi.md
CHANGED
|
@@ -13,11 +13,11 @@ All URIs are relative to *https://api-dev.zashigaofa.cn*
|
|
|
13
13
|
|
|
14
14
|
## user_currencies
|
|
15
15
|
|
|
16
|
-
> <UserCurrencyListApiResponse> user_currencies(id,
|
|
16
|
+
> <UserCurrencyListApiResponse> user_currencies(app_key, id, opts)
|
|
17
17
|
|
|
18
18
|
获取用户资产
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
获取用户的资产列表
|
|
21
21
|
|
|
22
22
|
### Examples
|
|
23
23
|
|
|
@@ -31,12 +31,15 @@ ZSGFClient.configure do |config|
|
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
api_instance = ZSGFClient::UserCurrencyApi.new
|
|
34
|
-
id = 789 # Integer | 用户ID
|
|
35
34
|
app_key = 'app_key_example' # String |
|
|
35
|
+
id = 'id_example' # String |
|
|
36
|
+
opts = {
|
|
37
|
+
user_id: 'user_id_example' # String |
|
|
38
|
+
}
|
|
36
39
|
|
|
37
40
|
begin
|
|
38
41
|
# 获取用户资产
|
|
39
|
-
result = api_instance.user_currencies(id,
|
|
42
|
+
result = api_instance.user_currencies(app_key, id, opts)
|
|
40
43
|
p result
|
|
41
44
|
rescue ZSGFClient::ApiError => e
|
|
42
45
|
puts "Error when calling UserCurrencyApi->user_currencies: #{e}"
|
|
@@ -47,12 +50,12 @@ end
|
|
|
47
50
|
|
|
48
51
|
This returns an Array which contains the response data, status code and headers.
|
|
49
52
|
|
|
50
|
-
> <Array(<UserCurrencyListApiResponse>, Integer, Hash)> user_currencies_with_http_info(id,
|
|
53
|
+
> <Array(<UserCurrencyListApiResponse>, Integer, Hash)> user_currencies_with_http_info(app_key, id, opts)
|
|
51
54
|
|
|
52
55
|
```ruby
|
|
53
56
|
begin
|
|
54
57
|
# 获取用户资产
|
|
55
|
-
data, status_code, headers = api_instance.user_currencies_with_http_info(id,
|
|
58
|
+
data, status_code, headers = api_instance.user_currencies_with_http_info(app_key, id, opts)
|
|
56
59
|
p status_code # => 2xx
|
|
57
60
|
p headers # => { ... }
|
|
58
61
|
p data # => <UserCurrencyListApiResponse>
|
|
@@ -65,8 +68,9 @@ end
|
|
|
65
68
|
|
|
66
69
|
| Name | Type | Description | Notes |
|
|
67
70
|
| ---- | ---- | ----------- | ----- |
|
|
68
|
-
| **id** | **Integer** | 用户ID | |
|
|
69
71
|
| **app_key** | **String** | | |
|
|
72
|
+
| **id** | **String** | | |
|
|
73
|
+
| **user_id** | **String** | | [optional] |
|
|
70
74
|
|
|
71
75
|
### Return type
|
|
72
76
|
|
|
@@ -107,6 +111,7 @@ timestamp = 789 # Integer | 时间戳(允许与服务器时间误差在1分钟
|
|
|
107
111
|
signature = 'signature_example' # String | 签名
|
|
108
112
|
app_key = 'app_key_example' # String |
|
|
109
113
|
opts = {
|
|
114
|
+
user_id: 'user_id_example', # String |
|
|
110
115
|
currency_consume_request: ZSGFClient::CurrencyConsumeRequest.new({currency: 'currency_example', balance: 37}) # CurrencyConsumeRequest | 消费请求参数
|
|
111
116
|
}
|
|
112
117
|
|
|
@@ -145,6 +150,7 @@ end
|
|
|
145
150
|
| **timestamp** | **Integer** | 时间戳(允许与服务器时间误差在1分钟内) | |
|
|
146
151
|
| **signature** | **String** | 签名 | |
|
|
147
152
|
| **app_key** | **String** | | |
|
|
153
|
+
| **user_id** | **String** | | [optional] |
|
|
148
154
|
| **currency_consume_request** | [**CurrencyConsumeRequest**](CurrencyConsumeRequest.md) | 消费请求参数 | [optional] |
|
|
149
155
|
|
|
150
156
|
### Return type
|
|
@@ -186,6 +192,7 @@ timestamp = 789 # Integer | 时间戳(允许与服务器时间误差在1分钟
|
|
|
186
192
|
signature = 'signature_example' # String | 签名
|
|
187
193
|
app_key = 'app_key_example' # String |
|
|
188
194
|
opts = {
|
|
195
|
+
user_id: 'user_id_example', # String |
|
|
189
196
|
exchange_currency_request: ZSGFClient::ExchangeCurrencyRequest.new({from_currency: 'from_currency_example', currency: 'currency_example', balance: 37}) # ExchangeCurrencyRequest | 兑换请求参数
|
|
190
197
|
}
|
|
191
198
|
|
|
@@ -224,6 +231,7 @@ end
|
|
|
224
231
|
| **timestamp** | **Integer** | 时间戳(允许与服务器时间误差在1分钟内) | |
|
|
225
232
|
| **signature** | **String** | 签名 | |
|
|
226
233
|
| **app_key** | **String** | | |
|
|
234
|
+
| **user_id** | **String** | | [optional] |
|
|
227
235
|
| **exchange_currency_request** | [**ExchangeCurrencyRequest**](ExchangeCurrencyRequest.md) | 兑换请求参数 | [optional] |
|
|
228
236
|
|
|
229
237
|
### Return type
|
|
@@ -265,6 +273,7 @@ timestamp = 789 # Integer | 时间戳(允许与服务器时间误差在1分钟
|
|
|
265
273
|
signature = 'signature_example' # String | 签名
|
|
266
274
|
app_key = 'app_key_example' # String |
|
|
267
275
|
opts = {
|
|
276
|
+
user_id: 'user_id_example', # String |
|
|
268
277
|
recharge_point_request: ZSGFClient::RechargePointRequest.new({currency: 'currency_example', balance: 37}) # RechargePointRequest | 充值请求参数
|
|
269
278
|
}
|
|
270
279
|
|
|
@@ -303,6 +312,7 @@ end
|
|
|
303
312
|
| **timestamp** | **Integer** | 时间戳(允许与服务器时间误差在1分钟内) | |
|
|
304
313
|
| **signature** | **String** | 签名 | |
|
|
305
314
|
| **app_key** | **String** | | |
|
|
315
|
+
| **user_id** | **String** | | [optional] |
|
|
306
316
|
| **recharge_point_request** | [**RechargePointRequest**](RechargePointRequest.md) | 充值请求参数 | [optional] |
|
|
307
317
|
|
|
308
318
|
### Return type
|
|
@@ -346,7 +356,8 @@ opts = {
|
|
|
346
356
|
start_time: Time.parse('2013-10-20T19:20:30+01:00'), # Time | 开始时间
|
|
347
357
|
end_time: Time.parse('2013-10-20T19:20:30+01:00'), # Time | 结束时间
|
|
348
358
|
skip: 56, # Integer | 跳过的条数
|
|
349
|
-
take: 56 # Integer | 拉取的条数
|
|
359
|
+
take: 56, # Integer | 拉取的条数
|
|
360
|
+
user_id: 'user_id_example' # String |
|
|
350
361
|
}
|
|
351
362
|
|
|
352
363
|
begin
|
|
@@ -387,6 +398,7 @@ end
|
|
|
387
398
|
| **end_time** | **Time** | 结束时间 | [optional] |
|
|
388
399
|
| **skip** | **Integer** | 跳过的条数 | [optional] |
|
|
389
400
|
| **take** | **Integer** | 拉取的条数 | [optional] |
|
|
401
|
+
| **user_id** | **String** | | [optional] |
|
|
390
402
|
|
|
391
403
|
### Return type
|
|
392
404
|
|
data/docs/UserFriendsApi.md
CHANGED
|
@@ -40,7 +40,8 @@ app_key = 'app_key_example' # String |
|
|
|
40
40
|
opts = {
|
|
41
41
|
tag: 'tag_example', # String | 兴趣标签
|
|
42
42
|
skip: 56, # Integer | 跳过的记录数
|
|
43
|
-
take: 56 # Integer | 获取的记录数
|
|
43
|
+
take: 56, # Integer | 获取的记录数
|
|
44
|
+
user_id: 'user_id_example' # String |
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
begin
|
|
@@ -78,6 +79,7 @@ end
|
|
|
78
79
|
| **tag** | **String** | 兴趣标签 | [optional] |
|
|
79
80
|
| **skip** | **Integer** | 跳过的记录数 | [optional][default to 0] |
|
|
80
81
|
| **take** | **Integer** | 获取的记录数 | [optional][default to 10] |
|
|
82
|
+
| **user_id** | **String** | | [optional][default to ''] |
|
|
81
83
|
|
|
82
84
|
### Return type
|
|
83
85
|
|
|
@@ -95,7 +97,7 @@ end
|
|
|
95
97
|
|
|
96
98
|
## user_follow_user
|
|
97
99
|
|
|
98
|
-
> <BooleanApiResponse> user_follow_user(user_id, app_key)
|
|
100
|
+
> <BooleanApiResponse> user_follow_user(user_id, app_key, opts)
|
|
99
101
|
|
|
100
102
|
添加关注
|
|
101
103
|
|
|
@@ -115,10 +117,13 @@ end
|
|
|
115
117
|
api_instance = ZSGFClient::UserFriendsApi.new
|
|
116
118
|
user_id = 789 # Integer | 要关注的用户ID
|
|
117
119
|
app_key = 'app_key_example' # String |
|
|
120
|
+
opts = {
|
|
121
|
+
from_user_id: 'from_user_id_example' # String |
|
|
122
|
+
}
|
|
118
123
|
|
|
119
124
|
begin
|
|
120
125
|
# 添加关注
|
|
121
|
-
result = api_instance.user_follow_user(user_id, app_key)
|
|
126
|
+
result = api_instance.user_follow_user(user_id, app_key, opts)
|
|
122
127
|
p result
|
|
123
128
|
rescue ZSGFClient::ApiError => e
|
|
124
129
|
puts "Error when calling UserFriendsApi->user_follow_user: #{e}"
|
|
@@ -129,12 +134,12 @@ end
|
|
|
129
134
|
|
|
130
135
|
This returns an Array which contains the response data, status code and headers.
|
|
131
136
|
|
|
132
|
-
> <Array(<BooleanApiResponse>, Integer, Hash)> user_follow_user_with_http_info(user_id, app_key)
|
|
137
|
+
> <Array(<BooleanApiResponse>, Integer, Hash)> user_follow_user_with_http_info(user_id, app_key, opts)
|
|
133
138
|
|
|
134
139
|
```ruby
|
|
135
140
|
begin
|
|
136
141
|
# 添加关注
|
|
137
|
-
data, status_code, headers = api_instance.user_follow_user_with_http_info(user_id, app_key)
|
|
142
|
+
data, status_code, headers = api_instance.user_follow_user_with_http_info(user_id, app_key, opts)
|
|
138
143
|
p status_code # => 2xx
|
|
139
144
|
p headers # => { ... }
|
|
140
145
|
p data # => <BooleanApiResponse>
|
|
@@ -149,6 +154,7 @@ end
|
|
|
149
154
|
| ---- | ---- | ----------- | ----- |
|
|
150
155
|
| **user_id** | **Integer** | 要关注的用户ID | |
|
|
151
156
|
| **app_key** | **String** | | |
|
|
157
|
+
| **from_user_id** | **String** | | [optional] |
|
|
152
158
|
|
|
153
159
|
### Return type
|
|
154
160
|
|
|
@@ -265,7 +271,8 @@ opts = {
|
|
|
265
271
|
status: 'status_example', # String | 状态
|
|
266
272
|
target_user_id: 789, # Integer | 指定用户的粉丝
|
|
267
273
|
skip: 56, # Integer | 跳过的记录数
|
|
268
|
-
take: 56 # Integer | 获取的记录数
|
|
274
|
+
take: 56, # Integer | 获取的记录数
|
|
275
|
+
user_id: 'user_id_example' # String |
|
|
269
276
|
}
|
|
270
277
|
|
|
271
278
|
begin
|
|
@@ -305,6 +312,7 @@ end
|
|
|
305
312
|
| **target_user_id** | **Integer** | 指定用户的粉丝 | [optional][default to 0] |
|
|
306
313
|
| **skip** | **Integer** | 跳过的记录数 | [optional][default to 0] |
|
|
307
314
|
| **take** | **Integer** | 获取的记录数 | [optional][default to 10] |
|
|
315
|
+
| **user_id** | **String** | | [optional][default to ''] |
|
|
308
316
|
|
|
309
317
|
### Return type
|
|
310
318
|
|
|
@@ -348,7 +356,8 @@ opts = {
|
|
|
348
356
|
skip: 56, # Integer | 跳过的记录数,用于分页(默认0)。
|
|
349
357
|
take: 56, # Integer | 获取的记录数,用于分页(默认10)。
|
|
350
358
|
check_user_id: 789, # Integer | 要判断是否关注的目标用户ID。如果提供此参数,方法将返回一个布尔值,表示当前用户是否关注该目标用户。
|
|
351
|
-
only_ids: true # Boolean | 是否只返回关注用户的ID集合,默认为false(即返回完整的关注用户信息)。
|
|
359
|
+
only_ids: true, # Boolean | 是否只返回关注用户的ID集合,默认为false(即返回完整的关注用户信息)。
|
|
360
|
+
user_id: 'user_id_example' # String |
|
|
352
361
|
}
|
|
353
362
|
|
|
354
363
|
begin
|
|
@@ -390,6 +399,7 @@ end
|
|
|
390
399
|
| **take** | **Integer** | 获取的记录数,用于分页(默认10)。 | [optional][default to 10] |
|
|
391
400
|
| **check_user_id** | **Integer** | 要判断是否关注的目标用户ID。如果提供此参数,方法将返回一个布尔值,表示当前用户是否关注该目标用户。 | [optional] |
|
|
392
401
|
| **only_ids** | **Boolean** | 是否只返回关注用户的ID集合,默认为false(即返回完整的关注用户信息)。 | [optional][default to false] |
|
|
402
|
+
| **user_id** | **String** | | [optional][default to ''] |
|
|
393
403
|
|
|
394
404
|
### Return type
|
|
395
405
|
|
|
@@ -439,7 +449,8 @@ opts = {
|
|
|
439
449
|
tag: 'tag_example', # String | 兴趣标签过滤(支持模糊匹配,如:\"运动\")
|
|
440
450
|
distance: 789, # Integer | 搜索半径(单位:米,0表示不限制距离)
|
|
441
451
|
skip: 56, # Integer | 跳过的记录数(分页起始位置,默认0)
|
|
442
|
-
take: 56 # Integer | 获取的记录数(分页大小,默认10,最大100)
|
|
452
|
+
take: 56, # Integer | 获取的记录数(分页大小,默认10,最大100)
|
|
453
|
+
user_id: 'user_id_example' # String |
|
|
443
454
|
}
|
|
444
455
|
|
|
445
456
|
begin
|
|
@@ -487,6 +498,7 @@ end
|
|
|
487
498
|
| **distance** | **Integer** | 搜索半径(单位:米,0表示不限制距离) | [optional][default to 0] |
|
|
488
499
|
| **skip** | **Integer** | 跳过的记录数(分页起始位置,默认0) | [optional][default to 0] |
|
|
489
500
|
| **take** | **Integer** | 获取的记录数(分页大小,默认10,最大100) | [optional][default to 10] |
|
|
501
|
+
| **user_id** | **String** | | [optional][default to ''] |
|
|
490
502
|
|
|
491
503
|
### Return type
|
|
492
504
|
|
|
@@ -525,7 +537,8 @@ api_instance = ZSGFClient::UserFriendsApi.new
|
|
|
525
537
|
app_key = 'app_key_example' # String |
|
|
526
538
|
opts = {
|
|
527
539
|
skip: 56, # Integer | 跳过的记录数
|
|
528
|
-
take: 56 # Integer | 获取的记录数
|
|
540
|
+
take: 56, # Integer | 获取的记录数
|
|
541
|
+
user_id: 'user_id_example' # String |
|
|
529
542
|
}
|
|
530
543
|
|
|
531
544
|
begin
|
|
@@ -562,6 +575,7 @@ end
|
|
|
562
575
|
| **app_key** | **String** | | |
|
|
563
576
|
| **skip** | **Integer** | 跳过的记录数 | [optional][default to 0] |
|
|
564
577
|
| **take** | **Integer** | 获取的记录数 | [optional][default to 10] |
|
|
578
|
+
| **user_id** | **String** | | [optional][default to ''] |
|
|
565
579
|
|
|
566
580
|
### Return type
|
|
567
581
|
|
|
@@ -600,7 +614,8 @@ api_instance = ZSGFClient::UserFriendsApi.new
|
|
|
600
614
|
app_key = 'app_key_example' # String |
|
|
601
615
|
opts = {
|
|
602
616
|
skip: 56, # Integer | 跳过的记录数
|
|
603
|
-
take: 56 # Integer | 获取的记录数
|
|
617
|
+
take: 56, # Integer | 获取的记录数
|
|
618
|
+
user_id: 'user_id_example' # String |
|
|
604
619
|
}
|
|
605
620
|
|
|
606
621
|
begin
|
|
@@ -637,6 +652,7 @@ end
|
|
|
637
652
|
| **app_key** | **String** | | |
|
|
638
653
|
| **skip** | **Integer** | 跳过的记录数 | [optional][default to 0] |
|
|
639
654
|
| **take** | **Integer** | 获取的记录数 | [optional][default to 10] |
|
|
655
|
+
| **user_id** | **String** | | [optional][default to ''] |
|
|
640
656
|
|
|
641
657
|
### Return type
|
|
642
658
|
|
|
@@ -725,7 +741,7 @@ end
|
|
|
725
741
|
|
|
726
742
|
## user_unfollow_user
|
|
727
743
|
|
|
728
|
-
> <BooleanApiResponse> user_unfollow_user(user_id, app_key)
|
|
744
|
+
> <BooleanApiResponse> user_unfollow_user(user_id, app_key, opts)
|
|
729
745
|
|
|
730
746
|
取消关注
|
|
731
747
|
|
|
@@ -745,10 +761,13 @@ end
|
|
|
745
761
|
api_instance = ZSGFClient::UserFriendsApi.new
|
|
746
762
|
user_id = 789 # Integer | 要取消关注的用户ID
|
|
747
763
|
app_key = 'app_key_example' # String |
|
|
764
|
+
opts = {
|
|
765
|
+
from_user_id: 'from_user_id_example' # String |
|
|
766
|
+
}
|
|
748
767
|
|
|
749
768
|
begin
|
|
750
769
|
# 取消关注
|
|
751
|
-
result = api_instance.user_unfollow_user(user_id, app_key)
|
|
770
|
+
result = api_instance.user_unfollow_user(user_id, app_key, opts)
|
|
752
771
|
p result
|
|
753
772
|
rescue ZSGFClient::ApiError => e
|
|
754
773
|
puts "Error when calling UserFriendsApi->user_unfollow_user: #{e}"
|
|
@@ -759,12 +778,12 @@ end
|
|
|
759
778
|
|
|
760
779
|
This returns an Array which contains the response data, status code and headers.
|
|
761
780
|
|
|
762
|
-
> <Array(<BooleanApiResponse>, Integer, Hash)> user_unfollow_user_with_http_info(user_id, app_key)
|
|
781
|
+
> <Array(<BooleanApiResponse>, Integer, Hash)> user_unfollow_user_with_http_info(user_id, app_key, opts)
|
|
763
782
|
|
|
764
783
|
```ruby
|
|
765
784
|
begin
|
|
766
785
|
# 取消关注
|
|
767
|
-
data, status_code, headers = api_instance.user_unfollow_user_with_http_info(user_id, app_key)
|
|
786
|
+
data, status_code, headers = api_instance.user_unfollow_user_with_http_info(user_id, app_key, opts)
|
|
768
787
|
p status_code # => 2xx
|
|
769
788
|
p headers # => { ... }
|
|
770
789
|
p data # => <BooleanApiResponse>
|
|
@@ -779,6 +798,7 @@ end
|
|
|
779
798
|
| ---- | ---- | ----------- | ----- |
|
|
780
799
|
| **user_id** | **Integer** | 要取消关注的用户ID | |
|
|
781
800
|
| **app_key** | **String** | | |
|
|
801
|
+
| **from_user_id** | **String** | | [optional] |
|
|
782
802
|
|
|
783
803
|
### Return type
|
|
784
804
|
|