globalsms 0.3.0 → 0.3.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a612ae5759a2c0c11ba73766c974f0cc54051a31
4
- data.tar.gz: da79ae845423aef060c27f67bfe8012fd37d8768
3
+ metadata.gz: 8316fc1436ba0bd9a51031ad5e00a15050280f4d
4
+ data.tar.gz: 8b217ff274da38ed17fe540ba4bfbbc05b699c75
5
5
  SHA512:
6
- metadata.gz: 6722da6a3349d01ffebb91a07a6e1911432000d09c87f8cd94bd9fd332ae9e91fd8803921e68be799a02cd606c14aa7032e812c50d4e522084337d890dd4e7f3
7
- data.tar.gz: daf35d0d9a8424ccbf3d70418bea8c25b55e67c147d40b2e7bf29e34f1ef92886096710c335f43c8cd113ce61b94cb6441d7534959aaaf09332916a79a2c2b9b
6
+ metadata.gz: c7d224e9447d916832985479fa716ed17f9fac36b68bb9b663d0cff752ba64511cd37001a83a5bd6be582508f8df7e38ce8dab0432e7eefdcc74a1fcebabd588
7
+ data.tar.gz: 2d7b7fc73cd93cf3579fad7591f5ce48528c9a5ee084b8c1e61a4462bcb92e3e41108fa0ac486cdd9ebec794bc023101925c7c27fc19f1aa0dc2b9eb7470e2e1
data/README.md CHANGED
@@ -18,7 +18,7 @@ Ya da kendiniz kurun:
18
18
 
19
19
  $ gem install globalsms
20
20
 
21
- ## Örnek Kullanım
21
+ ## Kullanılabilir Fonksiyonlar ve Kullanım Örnekleri
22
22
 
23
23
  ### SMS Gönderme
24
24
 
@@ -26,16 +26,18 @@ Mesaj göndermek için tanımlanmış fonksiyonlara argüman olarak **hash** ver
26
26
 
27
27
  Ön tanımlı değerler:
28
28
 
29
- turkish_character: "1"
29
+ turkish_character: "0"
30
30
  time: "now"
31
31
 
32
+ `turkish_character: "0"` olarak verilmesine karşın, mesaj Türkçe karakter içeriyorsa Türkçe karakterler değiştirilerek gönderilir. Örneğin `TÜRKÇE KARAKTER İÇEREN BİR MESAJ` olarak gönderilen bir mesaj `TURKCE KARAKTER iCEREN BiR MESAJ` olarak iletilir.
33
+
32
34
  Kullanıcının gireceği değerler:
33
35
 
34
36
  originator: "DENEME"
35
37
  numbers: "5493666154"
36
38
  text: "Mesaj Metni"
37
39
 
38
- #### Tek mesaj gönderen örnek kod:
40
+ #### (single_send) Tek mesaj gönderen örnek kod:
39
41
 
40
42
  ```ruby
41
43
  require 'globalsms'
@@ -56,7 +58,7 @@ sms.single_send(argv)
56
58
  # }
57
59
  ```
58
60
 
59
- #### Aynı mesajı birden fazla numaraya gönderen örnek kod:
61
+ #### (bulk_send) Aynı mesajı birden fazla numaraya gönderen örnek kod:
60
62
 
61
63
  NOT: Bu yöntem ile mesaj gönderilirken birden fazla numaraya gönderilen aynı mesajlar, tek bir `message_id` üretir.
62
64
 
@@ -81,7 +83,7 @@ sms.bulk_send(argv)
81
83
  # }
82
84
  ```
83
85
 
84
- #### Tek bir çağrıda birden fazla numaraya farklı mesajlar gönderen örnek kod:
86
+ #### (multi_send) Tek bir çağrıda birden fazla numaraya farklı mesajlar gönderen örnek kod:
85
87
 
86
88
  ```ruby
87
89
  require 'globalsms'
@@ -133,7 +135,7 @@ sms.multi_send(argv)
133
135
 
134
136
  Gönderilmiş mesajlara ait raporları almak için fonksiyonlara argüman olarak tek bir çağrı için `message_id`, birden fazla çağrı için `message_id` leri içeren bir array verilir. Fonksiyon geriye **hash** döndürür.
135
137
 
136
- #### Tek mesaja ait raporları döndüren örnek kod:
138
+ #### (single_report) Tek mesaja ait raporları döndüren örnek kod:
137
139
 
138
140
  ```ruby
139
141
  require 'globalsms'
@@ -151,7 +153,7 @@ sms.single_report(239916)
151
153
  # }
152
154
  ```
153
155
 
154
- #### Birden fazla mesaja ait raporları döndüren örnek kod:
156
+ #### (bulk_report) Birden fazla mesaja ait raporları döndüren örnek kod:
155
157
 
156
158
  ```ruby
157
159
  require 'globalsms'
@@ -191,7 +193,7 @@ sms.bulk_report(arr)
191
193
  # }
192
194
  ```
193
195
 
194
- #### Son x mesaja ait raporları döndüren örnek kod:
196
+ #### (report_last) Son x mesaja ait raporları döndüren örnek kod:
195
197
 
196
198
  Argüman verilmezse, ön tanımlı olarak en son yollanan (1) mesaja ait raporu döndürür.
197
199
 
@@ -229,7 +231,7 @@ sms.report_last(10)
229
231
  # }
230
232
  ```
231
233
 
232
- #### Belirli tarihler arasında gönderilmiş mesajlara ait raporları döndüren örnek kod:
234
+ #### (report_between) Belirli tarihler arasında gönderilmiş mesajlara ait raporları döndüren örnek kod:
233
235
 
234
236
  Bu fonsiyon argüman olarak **hash** alır ve sonuç olarak **hash** döner.
235
237
 
@@ -266,7 +268,7 @@ sms.report_between(argv)
266
268
  # }
267
269
  ```
268
270
 
269
- #### Orinigator (gönderici adı) listeleyen örnek kod:
271
+ #### (originator_list) Orinigator (gönderici adı) listeleyen örnek kod:
270
272
 
271
273
  Bu fonksiyon argüman almaz.
272
274
 
@@ -284,7 +286,7 @@ sms.originator_list
284
286
  # }
285
287
  ```
286
288
 
287
- #### Kullanıcı detaylarını ve kalan kredi bilgisini döndüren örnek kod:
289
+ #### (user_info) Kullanıcı detaylarını ve kalan kredi bilgisini döndüren örnek kod:
288
290
 
289
291
  ```ruby
290
292
  require 'globalsms'
@@ -13,7 +13,7 @@ module GlobalSMS
13
13
  def single_send(argv)
14
14
  argv = {
15
15
  time: "now",
16
- turkish_character: "1"
16
+ turkish_character: "0"
17
17
  }.merge(argv)
18
18
 
19
19
  body = "data=#{argv.to_json.to_s}"
@@ -26,7 +26,7 @@ module GlobalSMS
26
26
  def bulk_send(argv)
27
27
  argv = {
28
28
  time: "now",
29
- turkish_character: "1"
29
+ turkish_character: "0"
30
30
  }.merge(argv)
31
31
 
32
32
  body = "data=#{argv.to_json.to_s}"
@@ -40,7 +40,7 @@ module GlobalSMS
40
40
 
41
41
  argv_def = {
42
42
  time: "now",
43
- turkish_character: "1"
43
+ turkish_character: "0"
44
44
  }
45
45
 
46
46
  argv_array = argv.map { |arg| argv_def.merge(arg) }
@@ -1,3 +1,3 @@
1
1
  module GlobalSMS
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: globalsms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Salih Özdemir
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-05-07 00:00:00.000000000 Z
11
+ date: 2015-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler