roost 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/roost.rb +3 -0
- data/lib/roost/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4aa9a03d24599d48092f9e3e9759d5ebf0f88e55
|
4
|
+
data.tar.gz: f971017c3ea36e20f2e754b3212b08072769c62d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a606f03f510973fd57b5db180f5f37d3b5f5b1768f269242521c1112194148c0277e8536d3546909d630869bd6f76a42087edd731b62cc2a574824ef05d3031
|
7
|
+
data.tar.gz: fa48c244e5b12a69cddff67c6b6ea38dd2c5dad059c15bb080108589ff11fbdfa482ccb93760a7dc2b3d08bf977d0702b8df1de973b1ad98c08a4321ddb8b3e8
|
data/README.md
CHANGED
@@ -45,7 +45,7 @@ end
|
|
45
45
|
|
46
46
|
### Sending With Parameters
|
47
47
|
|
48
|
-
It is possible to target segments of your subscribers, or even individuals, and send scheduled notifications or advanced tests on notification sending. You must first have set these segments or identifiers via our [JavaScript API](http://docs.goroost.com/
|
48
|
+
It is possible to target segments of your subscribers, or even individuals, and send scheduled notifications or advanced tests on notification sending. You must first have set these segments or identifiers via our [JavaScript API](http://docs-js.goroost.com/docs/segmentation-overview).
|
49
49
|
|
50
50
|
#### Accepted Parameters
|
51
51
|
|
@@ -57,6 +57,7 @@ It is possible to target segments of your subscribers, or even individuals, and
|
|
57
57
|
| exclude_tokens | List of device tokens. If included, devices listed will be excluded when the notification is sent. |
|
58
58
|
| test_type | Specifies that progressive A/B split-testing will be done to optimize delivery. If included, value must be: 'MULTI_ARM_BANDIT'. In this case, alert must also be specified as an array with a list of alternate titles (EX: ['A Notification Title', 'Alternate Title', 'Third Title']). |
|
59
59
|
| schedule_for | Time when the notification will be scheduled for delivery. Format: "YYYY-MM-DDTHH:mm:SSZ". Time is specified in Zulu/GMT. **Example:** '2015-06-20T08:00:00Z' |
|
60
|
+
| imageURL | URL of image which is displayed with the notification and in the Bell notification center. |
|
60
61
|
|
61
62
|
```
|
62
63
|
alert = 'Thanks for subscribing for notifications'
|
@@ -67,6 +68,7 @@ exclude_tokens = ['lmnopqrs789']
|
|
67
68
|
schedule_for = '2015-06-05T15:17:00Z'
|
68
69
|
segments = ['Story', 'News', 'Weather']
|
69
70
|
test_type = 'MULTI_ARM_BANDIT'
|
71
|
+
imageURL = 'https://url-of-your-custom-image'
|
70
72
|
|
71
73
|
response = Roost::API.send({alert: alert,url: url, segments: segments, schedule_for: schedule_for})
|
72
74
|
|
data/lib/roost.rb
CHANGED
data/lib/roost/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: roost
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roost
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2016-04-27 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|