yx_sdk 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/yx_sdk/api/user.rb +12 -2
- data/lib/yx_sdk/client.rb +1 -0
- data/lib/yx_sdk/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c8d822aaf81fe02add8d88f6733dba99c440e1a
|
4
|
+
data.tar.gz: 52050cc0c5b7889521ecbe674f4688d9ac861d2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2e65e24abacd74ce3546ed71f6737bd1ce91288f6cd7f5812129adf550a36e3a7223ace6efb4c25e15d958cc57d43e825a43611416eb0ed431ac6f48d2870e1
|
7
|
+
data.tar.gz: d4d6e327114e6b2f5aff0cd997c4804875b49184c5301271b98c25af8b455126e4251067982466e8284ad3e37cd2ee248a4de73979af06599b16cfe051183757
|
data/lib/yx_sdk/api/user.rb
CHANGED
@@ -3,9 +3,19 @@ module YxSdk
|
|
3
3
|
module Api
|
4
4
|
module User
|
5
5
|
#同步创建
|
6
|
-
def create(
|
6
|
+
def create(params={})
|
7
7
|
user_info_url = "#{user_base_url}/create.action"
|
8
|
-
http_post(user_info_url,
|
8
|
+
http_post(user_info_url, params)
|
9
|
+
end
|
10
|
+
|
11
|
+
def update(params={})
|
12
|
+
user_info_url = "#{user_base_url}/update.action"
|
13
|
+
http_post(user_info_url, params)
|
14
|
+
end
|
15
|
+
|
16
|
+
def refreshToken(accid)
|
17
|
+
user_info_url = "#{user_base_url}/refreshToken.action"
|
18
|
+
http_post(user_info_url, {accid: accid})
|
9
19
|
end
|
10
20
|
|
11
21
|
private
|
data/lib/yx_sdk/client.rb
CHANGED
data/lib/yx_sdk/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yx_sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- karidyang
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|