teamdrive_api 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/teamdrive_api/register.rb +17 -0
- data/lib/teamdrive_api/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: 15376afa64dfc8c22ae13e7fa17a7db37a024c07
|
4
|
+
data.tar.gz: 696fa1373cb02aaf07268a445826bfc812832e0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7dadbf7786a00898f8dd1bcc7aa274287946885044ae70eef6f72a47cff262c7fdfadbc2856413ab03c6248092ae695997dc785ef9be404fa1794030b14f9fbb
|
7
|
+
data.tar.gz: 9275a3033668d93e2b4807c80c1ced9bc393277d8efa65d9764f666a2b03248ca0a014addf8c88c226bf6c8dd48cac0f0767b64867c11b1d5f8aefa2cb119f2d
|
@@ -24,5 +24,22 @@ module TeamdriveApi
|
|
24
24
|
}
|
25
25
|
return res[:intresult].eql?('0')
|
26
26
|
end
|
27
|
+
|
28
|
+
# Search user
|
29
|
+
#
|
30
|
+
# @param [Hash] query the search query.
|
31
|
+
# @option query [String] :username
|
32
|
+
# @option query [String] :email
|
33
|
+
# @option query [String] :startid (0)
|
34
|
+
# @option query [Boolean] :showdevice (false)
|
35
|
+
# @option query [Boolean] :onlyownusers (false)
|
36
|
+
def search_user(query = {})
|
37
|
+
fail ArgumentError if query.keys.length < 1
|
38
|
+
query = {
|
39
|
+
showdevice: false,
|
40
|
+
onlyownusers: false
|
41
|
+
}.merge(query)
|
42
|
+
send_request :searchuser, query
|
43
|
+
end
|
27
44
|
end
|
28
45
|
end
|