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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9fd560bf5326e988b70db7a18476b8704ac7b23b
4
- data.tar.gz: 366a435e079ec497366ece29dc34f7bf0550bba8
3
+ metadata.gz: 0c8d822aaf81fe02add8d88f6733dba99c440e1a
4
+ data.tar.gz: 52050cc0c5b7889521ecbe674f4688d9ac861d2a
5
5
  SHA512:
6
- metadata.gz: 01946931d7e88b097a339d2941ffb53e9331c85d2402723e6f28e4a55973d2896cc7f774f1deb2b8b76ae3c87e3a15d8f2421e8def1a4bc9c65935860dc3d802
7
- data.tar.gz: 2fe0e5d08508de823a2a364faba2c4fb544cd82099631d51c6cbfc65ee3f35494e7a9bfeba2b67fc99250307b1bdddd4877c7ae0d90c2500d23b6bae478f3aa2
6
+ metadata.gz: d2e65e24abacd74ce3546ed71f6737bd1ce91288f6cd7f5812129adf550a36e3a7223ace6efb4c25e15d958cc57d43e825a43611416eb0ed431ac6f48d2870e1
7
+ data.tar.gz: d4d6e327114e6b2f5aff0cd997c4804875b49184c5301271b98c25af8b455126e4251067982466e8284ad3e37cd2ee248a4de73979af06599b16cfe051183757
@@ -3,9 +3,19 @@ module YxSdk
3
3
  module Api
4
4
  module User
5
5
  #同步创建
6
- def create(id, name, icon, token)
6
+ def create(params={})
7
7
  user_info_url = "#{user_base_url}/create.action"
8
- http_post(user_info_url, {accid: id, name: name, icon: icon, token: token})
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
@@ -1,3 +1,4 @@
1
+ require 'digest/md5'
1
2
  module YxSdk
2
3
  class Client
3
4
 
@@ -1,3 +1,3 @@
1
1
  module YxSdk
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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-21 00:00:00.000000000 Z
11
+ date: 2016-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler