telerivet 1.1.6 → 1.1.7

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: 069e4d71945ecfebc99b45656fdf47b36fd35e19
4
- data.tar.gz: d5bd1f041f21e6e7b14fd48852cbf8f8d3fecafb
3
+ metadata.gz: 22a61e5e23fb3d4e4126c4f8aa914acc10ff7291
4
+ data.tar.gz: 8d3cdcb11da481a2ba69f6fd7588919540b708f8
5
5
  SHA512:
6
- metadata.gz: 2e6b9787dc8fdddbad0ef1b1c35f52bbbefb25c245f8588b49801606f90664b99f52c552a581a46b6bc5f83b5b31477be66f8aa1482002250fca5ffe6091c51d
7
- data.tar.gz: 53288dabcb2af64d9e5341e1c1e495f9f676aa1f7decf595e0bdc28a32804408ab2a13fb6a6813cd7d6d8a518d25327af55401431104d73248c157fd0174dad2
6
+ metadata.gz: d4bada308cb913d0bc9890515d4c48d6cb0f6ca55f28feb5e2cf2e12d9aaf9634f01edcdc78feb78f417f3eb06e977fb51c43d5aaeed051f12972c3385a69d0a
7
+ data.tar.gz: 3aeecae3a783a50e6498ef7dd8a223cc943d583fd711ec15c4f6fd9fe551669355d117a812c326ac59eddd6836e59e309a5d34d97f2511be87635bfb10e317a9
@@ -8,7 +8,7 @@ module Telerivet
8
8
  class API
9
9
  attr_reader :num_requests
10
10
 
11
- @@client_version = '1.1.6'
11
+ @@client_version = '1.1.7'
12
12
 
13
13
  #
14
14
  # Initializes a client handle to the Telerivet REST API.
@@ -31,6 +31,14 @@ module Telerivet
31
31
  # * Custom variables stored for this data row
32
32
  # * Updatable via API
33
33
  #
34
+ # - time_created (UNIX timestamp)
35
+ # * The time this row was created in Telerivet
36
+ # * Read-only
37
+ #
38
+ # - time_updated (UNIX timestamp)
39
+ # * The time this row was last updated in Telerivet
40
+ # * Read-only
41
+ #
34
42
  # - table_id
35
43
  # * ID of the table this data row belongs to
36
44
  # * Read-only
@@ -74,6 +82,14 @@ class DataRow < Entity
74
82
  set('from_number', value)
75
83
  end
76
84
 
85
+ def time_created
86
+ get('time_created')
87
+ end
88
+
89
+ def time_updated
90
+ get('time_updated')
91
+ end
92
+
77
93
  def table_id
78
94
  get('table_id')
79
95
  end
@@ -45,6 +45,9 @@ class DataTable < Entity
45
45
  # * Filter data rows by the time they were created
46
46
  # * Allowed modifiers: time_created[ne], time_created[min], time_created[max]
47
47
  #
48
+ # - contact_id
49
+ # * Filter data rows associated with a particular contact
50
+ #
48
51
  # - vars (Hash)
49
52
  # * Filter data rows by value of a custom variable (e.g. vars[q1], vars[foo], etc.)
50
53
  # * Allowed modifiers: vars[foo][exists], vars[foo][ne], vars[foo][prefix],
@@ -82,7 +82,7 @@ module Telerivet
82
82
  # * Read-only
83
83
  #
84
84
  # - price (number)
85
- # * The price of this message, if known. By convention, message prices are negative.
85
+ # * The price of this message, if known.
86
86
  # * Read-only
87
87
  #
88
88
  # - price_currency
@@ -107,6 +107,11 @@ module Telerivet
107
107
  # [getMMSParts](#Message.getMMSParts).
108
108
  # * Read-only
109
109
  #
110
+ # - service_id (string, max 34 characters)
111
+ # * ID of the service that handled the message (for voice calls, the service defines the
112
+ # call flow)
113
+ # * Read-only
114
+ #
110
115
  # - phone_id (string, max 34 characters)
111
116
  # * ID of the phone that sent or received the message
112
117
  # * Read-only
@@ -326,6 +331,10 @@ class Message < Entity
326
331
  get('mms_parts')
327
332
  end
328
333
 
334
+ def service_id
335
+ get('service_id')
336
+ end
337
+
329
338
  def phone_id
330
339
  get('phone_id')
331
340
  end
@@ -29,7 +29,7 @@ module Telerivet
29
29
  #
30
30
  class Project < Entity
31
31
  #
32
- # Sends one message (SMS or USSD request).
32
+ # Sends one message (SMS, voice call, or USSD request).
33
33
  #
34
34
  # Arguments:
35
35
  # - options (Hash)
@@ -51,6 +51,10 @@ class Project < Entity
51
51
  # * ID of the phone or route to send the message from
52
52
  # * Default: default sender phone ID for your project
53
53
  #
54
+ # - service_id
55
+ # * Service that defines the call flow of the voice call
56
+ # * Required if sending voice call
57
+ #
54
58
  # - status_url
55
59
  # * Webhook callback URL to be notified when message status changes
56
60
  #
@@ -67,7 +71,7 @@ class Project < Entity
67
71
  #
68
72
  # - message_type
69
73
  # * Type of message to send
70
- # * Allowed values: sms, ussd
74
+ # * Allowed values: sms, ussd, call
71
75
  # * Default: sms
72
76
  #
73
77
  # - vars (Hash)
@@ -88,8 +92,8 @@ class Project < Entity
88
92
  end
89
93
 
90
94
  #
91
- # Sends an SMS message (optionally with mail-merge templates) to a group or a list of up to
92
- # 500 phone numbers
95
+ # Sends an SMS message (optionally with mail-merge templates) or voice call to a group or a
96
+ # list of up to 500 phone numbers
93
97
  #
94
98
  # Arguments:
95
99
  # - options (Hash)
@@ -97,7 +101,7 @@ class Project < Entity
97
101
  #
98
102
  # - content
99
103
  # * Content of the message to send
100
- # * Required
104
+ # * Required if sending SMS message
101
105
  #
102
106
  # - group_id
103
107
  # * ID of the group to send the message to
@@ -111,6 +115,10 @@ class Project < Entity
111
115
  # * ID of the phone or route to send the message from
112
116
  # * Default: default sender phone ID
113
117
  #
118
+ # - service_id
119
+ # * Service that defines the call flow of the voice call
120
+ # * Required if sending voice call
121
+ #
114
122
  # - status_url
115
123
  # * Webhook callback URL to be notified when message status changes
116
124
  #
@@ -124,6 +132,11 @@ class Project < Entity
124
132
  # * Optionally excludes one contact from receiving the message (only when group_id is
125
133
  # set)
126
134
  #
135
+ # - message_type
136
+ # * Type of message to send
137
+ # * Allowed values: sms, call
138
+ # * Default: sms
139
+ #
127
140
  # - is_template (bool)
128
141
  # * Set to true to evaluate variables like [[contact.name]] in message content [(See
129
142
  # available variables)](#variables)
@@ -152,7 +165,7 @@ class Project < Entity
152
165
  #
153
166
  # - content
154
167
  # * Content of the message to schedule
155
- # * Required
168
+ # * Required if sending SMS message
156
169
  #
157
170
  # - group_id
158
171
  # * ID of the group to send the message to
@@ -180,6 +193,10 @@ class Project < Entity
180
193
  # * ID of the phone or route to send the message from
181
194
  # * Default: default sender phone ID
182
195
  #
196
+ # - service_id
197
+ # * Service that defines the call flow of the voice call
198
+ # * Required if sending voice call
199
+ #
183
200
  # - message_type
184
201
  # * Type of message to send
185
202
  # * Allowed values: sms, ussd
@@ -40,6 +40,11 @@ module Telerivet
40
40
  # * ID of the phone or route the message will be sent from
41
41
  # * Read-only
42
42
  #
43
+ # - service_id (string, max 34 characters)
44
+ # * The service associated with this message (for voice calls, the service defines the
45
+ # call flow)
46
+ # * Read-only
47
+ #
43
48
  # - message_type
44
49
  # * Type of scheduled message
45
50
  # * Allowed values: sms, ussd
@@ -136,6 +141,10 @@ class ScheduledMessage < Entity
136
141
  get('route_id')
137
142
  end
138
143
 
144
+ def service_id
145
+ get('service_id')
146
+ end
147
+
139
148
  def message_type
140
149
  get('message_type')
141
150
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: telerivet
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.6
4
+ version: 1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jesse Young
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-20 00:00:00.000000000 Z
11
+ date: 2016-03-10 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Ruby client library for Telerivet REST API
14
14
  email: support@telerivet.com