cirro-ruby-client 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/Gemfile.lock +3 -3
- data/README.md +13 -13
- data/lib/cirro_io/client/version.rb +1 -1
- data/lib/cirro_io_v2/client.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76097208caab26d55fe43bc4ca78e868d65c7fbd0aa0ab172cf76fbe51b769dc
|
4
|
+
data.tar.gz: 4e5db26e12fc65b9a8bb0da9a75ce846d9d8f5a0054f8cca47fe2ded2830a458
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7af16a9900b76331bc9c248f8b22ca38f6e34b8affc1cbf54cf8d60eed55b915315b84e09bf654bc82b0a15ceb79cefbba8d88b3f1901739d87a57a0f000df8
|
7
|
+
data.tar.gz: 2299039507bef30f4bc613faf0107f2dec238c113903b92213f9f248d84ef276c6c4e5b31484c3b3839249de308afdabcb8e9ed8ffbfb173e03bc314aaaa31c8
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cirro-ruby-client (2.0.
|
4
|
+
cirro-ruby-client (2.0.1)
|
5
5
|
activesupport
|
6
6
|
faraday (< 1.2.0)
|
7
7
|
faraday_middleware
|
@@ -43,7 +43,7 @@ GEM
|
|
43
43
|
faraday (>= 0.15.2, < 2.0)
|
44
44
|
faraday_middleware (>= 0.9.0, < 2.0)
|
45
45
|
rack (>= 0.2)
|
46
|
-
jwt (2.
|
46
|
+
jwt (2.3.0)
|
47
47
|
method_source (1.0.0)
|
48
48
|
minitest (5.15.0)
|
49
49
|
multipart-post (2.1.1)
|
@@ -110,4 +110,4 @@ DEPENDENCIES
|
|
110
110
|
webmock
|
111
111
|
|
112
112
|
BUNDLED WITH
|
113
|
-
2.
|
113
|
+
2.3.4
|
data/README.md
CHANGED
@@ -112,7 +112,7 @@ preference.locale
|
|
112
112
|
# => 'de'
|
113
113
|
|
114
114
|
preference.channels
|
115
|
-
# => Array of
|
115
|
+
# => Array of NotificationTopicPreference objects
|
116
116
|
```
|
117
117
|
|
118
118
|
### Update notification preferences for a user
|
@@ -288,30 +288,30 @@ client.NotificationLayoutTemplate.update(
|
|
288
288
|
client.NotificationLayoutTemplate.delete('1')
|
289
289
|
```
|
290
290
|
|
291
|
-
## Notification
|
292
|
-
### List all notification
|
291
|
+
## Notification Topic
|
292
|
+
### List all notification topics
|
293
293
|
|
294
294
|
```ruby
|
295
|
-
list = client.
|
295
|
+
list = client.NotificationTopic
|
296
296
|
# => ListObject
|
297
297
|
|
298
298
|
list.has_more?
|
299
299
|
# => true
|
300
300
|
|
301
301
|
list.data
|
302
|
-
# => Array of
|
302
|
+
# => Array of NotificationTopic objects
|
303
303
|
|
304
304
|
# filter by layout_id
|
305
|
-
client.
|
305
|
+
client.NotificationTopic.list(notification_layout_id: 1)
|
306
306
|
|
307
307
|
# pagination
|
308
|
-
client.
|
308
|
+
client.NotificationTopic.list(limit: 10, after: 10)
|
309
309
|
```
|
310
310
|
|
311
311
|
### Create a notification channel
|
312
312
|
|
313
313
|
```ruby
|
314
|
-
client.
|
314
|
+
client.NotificationTopic.create(
|
315
315
|
name: 'new_bug_comment',
|
316
316
|
notification_layout_id: 1,
|
317
317
|
preferences: {
|
@@ -374,23 +374,23 @@ client.NotificationTemplate.delete('1')
|
|
374
374
|
### List all
|
375
375
|
|
376
376
|
```ruby
|
377
|
-
list = client.
|
377
|
+
list = client.NotificationTopicPreference.list
|
378
378
|
# => ListObject
|
379
379
|
|
380
380
|
list.has_more?
|
381
381
|
# => true
|
382
382
|
|
383
383
|
list.data
|
384
|
-
# => Array of
|
384
|
+
# => Array of NotificationTopicPreference objects
|
385
385
|
|
386
386
|
# filter by channel id
|
387
|
-
client.
|
387
|
+
client.NotificationTopicPreference.list(notification_channel_id: 1)
|
388
388
|
|
389
389
|
# filter by user id
|
390
|
-
client.
|
390
|
+
client.NotificationTopicPreference.list(user_id: 1)
|
391
391
|
|
392
392
|
# pagination
|
393
|
-
client.
|
393
|
+
client.NotificationTopicPreference.list(limit: 10, after: 10)
|
394
394
|
```
|
395
395
|
|
396
396
|
## Notifcation Broadcast
|
data/lib/cirro_io_v2/client.rb
CHANGED
@@ -98,7 +98,11 @@ module CirroIOV2
|
|
98
98
|
end
|
99
99
|
|
100
100
|
def NotificationTemplate
|
101
|
-
Resources::
|
101
|
+
Resources::NotificationTopic.new(self)
|
102
|
+
end
|
103
|
+
|
104
|
+
def NotificationTopic
|
105
|
+
Resources::NotificationTopic.new(self)
|
102
106
|
end
|
103
107
|
|
104
108
|
# rubocop:enable Naming/MethodName
|