messagebird-rest 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/messagebird/client.rb +4 -10
- data/lib/messagebird/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3fde70fc0a75d2f007d9c317974f657973264297eab5ff2f0b2a0f959e30d2d2
|
4
|
+
data.tar.gz: cb9bad90faa280eeea6a127fc8885bb63bf3eeb6dd607eb3483f27be3469ff3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ede3f901990e717e00ce5765d9df78edf7797663f2211da70a4ae37d0c1a7b339a6d0f91b6f462563bf2c4ded69f227987da630e5d4dcb2c87b9017790a0e70
|
7
|
+
data.tar.gz: 29866e1b73c36d108604860a13d1434f2cf85b0905ef21d485e5114c8dd6bb8b4aa640bb1ceba0c472691e5225c4904cde9b312ef7427d0a107b59b5c4bbe2ed
|
data/lib/messagebird/client.rb
CHANGED
@@ -232,16 +232,10 @@ module MessageBird
|
|
232
232
|
end
|
233
233
|
|
234
234
|
# Retrieve messages with optional paging and status filter.
|
235
|
-
def message_list(
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
params = { limit: limit, offset: offset }
|
241
|
-
if status != ''
|
242
|
-
params['status'] = status
|
243
|
-
end
|
244
|
-
query = 'messages?' + URI.encode_www_form(params)
|
235
|
+
def message_list(filters = {})
|
236
|
+
params = { limit: 10, offset: 0 }.merge(filters).compact
|
237
|
+
query = "messages?#{URI.encode_www_form(params)}"
|
238
|
+
|
245
239
|
List.new(Message, request(:get, query))
|
246
240
|
end
|
247
241
|
|
data/lib/messagebird/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: messagebird-rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maurice Nonnekes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|