sms_masking 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.DS_Store +0 -0
- data/lib/sms_masking/phone_book.rb +22 -26
- data/lib/sms_masking/send_sms.rb +2 -2
- data/lib/sms_masking/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: 773f87a87ab63afd109eb9603a961dd8a83db252
|
4
|
+
data.tar.gz: 8a350d61b57175ca3077f37e02bf9b4832a49ab9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 437b1b7a0db9b2d0106aa433366644b0d961e846c8c6f9767f9f09452f7f7b88cd66ea009a710ca1b426b47a47009a00e93fb06b4a0900c95e821ee312d0e9d4
|
7
|
+
data.tar.gz: ce5eb0b300dd929437a2259712463171b50dd47c861e3e4238e78221083ea43ce761d0aaf88332f030fefc9729fed3ed771089e2626c5754094d530735d078aa
|
data/.DS_Store
CHANGED
Binary file
|
@@ -40,15 +40,15 @@ module SmsMasking
|
|
40
40
|
#
|
41
41
|
# ==== Example
|
42
42
|
#
|
43
|
-
#
|
44
|
-
#
|
45
|
-
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
43
|
+
# sms.edit_phone_book({
|
44
|
+
# id: 1,
|
45
|
+
# name: "John Doe",
|
46
|
+
# mobile: "085699999999",
|
47
|
+
# group: "My Group",
|
48
|
+
# address: "My Address",
|
49
|
+
# birth: "19900101",
|
50
|
+
# desc: "My Description"
|
51
|
+
# })
|
52
52
|
#
|
53
53
|
def edit_phone_book(params = {})
|
54
54
|
params[:username] = @username
|
@@ -63,7 +63,7 @@ module SmsMasking
|
|
63
63
|
#
|
64
64
|
# ==== Example
|
65
65
|
#
|
66
|
-
#
|
66
|
+
# sms.delete_phone_book({id: 1})
|
67
67
|
#
|
68
68
|
def delete_phone_book(params = {})
|
69
69
|
params[:username] = @username
|
@@ -79,10 +79,10 @@ module SmsMasking
|
|
79
79
|
#
|
80
80
|
# ==== Example
|
81
81
|
#
|
82
|
-
#
|
83
|
-
#
|
84
|
-
#
|
85
|
-
#
|
82
|
+
# sms.list_phone_book({
|
83
|
+
# page: 1,
|
84
|
+
# size: 10
|
85
|
+
# })
|
86
86
|
#
|
87
87
|
def list_phone_book(params = {})
|
88
88
|
params[:username] = @username
|
@@ -99,11 +99,11 @@ module SmsMasking
|
|
99
99
|
#
|
100
100
|
# ==== Example
|
101
101
|
#
|
102
|
-
#
|
103
|
-
#
|
104
|
-
#
|
105
|
-
#
|
106
|
-
#
|
102
|
+
# sms.list_phone_book_by_group({
|
103
|
+
# page: 1,
|
104
|
+
# size: 10,
|
105
|
+
# group: "My Group"
|
106
|
+
# })
|
107
107
|
#
|
108
108
|
def list_phone_book_by_group(params = {})
|
109
109
|
params[:username] = @username
|
@@ -118,7 +118,7 @@ module SmsMasking
|
|
118
118
|
#
|
119
119
|
# ==== Example
|
120
120
|
#
|
121
|
-
#
|
121
|
+
# sms.contact_detail({id: 1})
|
122
122
|
#
|
123
123
|
def contact_detail(params = {})
|
124
124
|
params[:username] = @username
|
@@ -133,7 +133,7 @@ module SmsMasking
|
|
133
133
|
#
|
134
134
|
# ==== Example
|
135
135
|
#
|
136
|
-
#
|
136
|
+
# sms.find_contact({name: "John Doe"})
|
137
137
|
#
|
138
138
|
def find_contact(params = {})
|
139
139
|
params[:username] = @username
|
@@ -148,7 +148,7 @@ module SmsMasking
|
|
148
148
|
#
|
149
149
|
# ==== Example
|
150
150
|
#
|
151
|
-
#
|
151
|
+
# sms.find_number({number: "085699999999"})
|
152
152
|
#
|
153
153
|
def find_number(params = {})
|
154
154
|
params[:username] = @username
|
@@ -157,9 +157,5 @@ module SmsMasking
|
|
157
157
|
print_response res
|
158
158
|
end
|
159
159
|
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
160
|
end
|
165
161
|
end
|
data/lib/sms_masking/send_sms.rb
CHANGED
@@ -6,7 +6,7 @@ module SmsMasking
|
|
6
6
|
# * +message+ : SMS
|
7
7
|
#
|
8
8
|
# ==== Example
|
9
|
-
#
|
9
|
+
# sms.send_sms({mobile: "085642568786", message: "your message"})
|
10
10
|
#
|
11
11
|
def send_sms(params = {})
|
12
12
|
params[:username] = @username
|
@@ -20,7 +20,7 @@ module SmsMasking
|
|
20
20
|
# * +message+ : SMS
|
21
21
|
#
|
22
22
|
# ==== Example
|
23
|
-
#
|
23
|
+
# sms.send_sms_group({group: "My Group", message: "your message"})
|
24
24
|
#
|
25
25
|
def send_sms_group(params = {})
|
26
26
|
params[:username] = @username
|
data/lib/sms_masking/version.rb
CHANGED