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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f20982ad4d6a908888cfc215b3ffdc3029a138d3
4
- data.tar.gz: f2df7f813aba45c79a88f100f79ce6689aa031fa
3
+ metadata.gz: 4aa9a03d24599d48092f9e3e9759d5ebf0f88e55
4
+ data.tar.gz: f971017c3ea36e20f2e754b3212b08072769c62d
5
5
  SHA512:
6
- metadata.gz: 731dcfe5adacb57d08cd2dd107e9758a33c1f2da52079b52fc38211e7843dcfbe0621d3ce0c8e4167d0b04da6fbe1587b94ef47c24f03dcb40f9eab950806947
7
- data.tar.gz: 413bf36d8d4613c2c4df1f7b737a99413f572fd98a78d04ec10184902974b715826f60432619b4eb72feab7afbcc8de05bda251dd77cb4ecb0f8d3829d1dff0c
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/v1.0/docs/api-basics).
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
 
@@ -43,6 +43,9 @@ module Roost
43
43
  if opts[:test_type] && !opts[:test_type].empty?
44
44
  body[:test_type] = opts[:test_type]
45
45
  end
46
+ if opts[:imageURL] && !opts[:imageURL].empty?
47
+ body[:imageURL] = opts[:imageURL]
48
+ end
46
49
 
47
50
  request.body = body.to_json
48
51
 
@@ -1,3 +1,3 @@
1
1
  module Roost
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
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
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: 2015-06-05 00:00:00.000000000 Z
13
+ date: 2016-04-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler