nexmo_api_specification 0.5.4 → 0.6.0

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: e93163de5928d62ee0d7ad6c3bd4eccfcdb94adf
4
- data.tar.gz: 78bd4f2bd3a1a99092450278d358fd5def691d85
3
+ metadata.gz: 4f08afcb55e90cc465af9770fa709e87e1d4f38e
4
+ data.tar.gz: 6803b535d910888378f236dbce390c422c372ea1
5
5
  SHA512:
6
- metadata.gz: d6d167234ab3f77ed0d92a93584b4793b9fbfbd2a20db8830751212432781c5d1801299ca4dd73f212844075046728d3fb36c270dd3e592706385f857a27a2a4
7
- data.tar.gz: 4463662a65d874cb8a2ecb561c71e6038f10616ffe249345c4465204fa412cac2e65eaad48d0a9acfc133fda879ea1f4a44bdd2098d533f604b72723b2b2d1dc
6
+ metadata.gz: 2e77fb4eb4c6f09b853b045bbb15a3ac0ec445f345fb5792af116836beb31d568fce207856ae3d0a0b19e489160d07e72f6d63d1f14000fc3640b7b5c9037d65
7
+ data.tar.gz: a9f5a99f97a46271bd5f6293aa9088939e576afdb20d49e2f96ff0d6a6660af1b38f7b9c17a51d79f8dbb74ce19d514e62433e8980737acfde0566ca8c77bd35
@@ -81,6 +81,26 @@ paths:
81
81
  responses:
82
82
  '200':
83
83
  description: Your server returns this code if it accepts the callback
84
+ x-webhooks:
85
+ inbound-sms:
86
+ '{$request.body#/callback}':
87
+ post:
88
+ summary: Inbound SMS
89
+ operationId: inbound-sms
90
+ x-example-path: '/webhooks/inbound-sms'
91
+ description: |
92
+ If you rent one or more virtual numbers from Nexmo, inbound messages to that number are sent to your [webhook endpoint](/concepts/guides/webhooks).
93
+
94
+ When you receive an inbound message, you must send a 2xx response. If you do not send a 2xx response Nexmo will resend the inbound message for the next 24 hours.
95
+ requestBody:
96
+ required: true
97
+ content:
98
+ application/json:
99
+ schema:
100
+ $ref: '#/components/schemas/InboundMessage'
101
+ responses:
102
+ '200':
103
+ description: Your server returns this code if it accepts the callback
84
104
 
85
105
  components:
86
106
  schemas:
@@ -114,8 +134,8 @@ components:
114
134
  status-report-req:
115
135
  description: '**Advanced**: Boolean indicating if you like to receive a [Delivery Receipt](/messaging/sms/building-blocks/receive-a-delivery-receipt).'
116
136
  type: boolean
117
- example: 'false'
118
- default: 'true'
137
+ example: false
138
+ default: true
119
139
  callback:
120
140
  description: '**Advanced**: The webhook endpoint the delivery receipt for this sms is sent to. This parameter overrides the webhook endpoint you set in Dashboard.'
121
141
  type: string
@@ -209,6 +229,80 @@ components:
209
229
  type: array
210
230
  items:
211
231
  $ref: '#/components/schemas/Message'
232
+ InboundMessage:
233
+ type: object
234
+ properties:
235
+ msisdn:
236
+ type: string
237
+ description: The phone number that this inbound message was sent from.
238
+ example: '447700900001'
239
+ required: true
240
+ to:
241
+ type: string
242
+ description: The phone number the message was sent to. **This is your virtual number**.
243
+ example: '447700900000'
244
+ required: true
245
+ messageId:
246
+ type: string
247
+ description: The ID of the message
248
+ example: 0A0000000123ABCD1
249
+ required: true
250
+ text:
251
+ type: string
252
+ description: The message body for this inbound message.
253
+ example: Hello world
254
+ required: true
255
+ type:
256
+ type: string
257
+ description: |
258
+ Possible values are:
259
+
260
+ - `text` - standard text.
261
+ - `unicode` - URLencoded unicode . This is valid for standard GSM, Arabic, Chinese, double-encoded characters and so on.
262
+ - `binary` - a binary message.
263
+ example: 'text'
264
+ required: true
265
+ keyword:
266
+ type: string
267
+ description: The first word in the message body. This is typically used with short codes.
268
+ example: Hello
269
+ required: true
270
+ message-timestamp:
271
+ description: The time when Nexmo started to push this Delivery Receipt to your webhook endpoint.
272
+ type: string
273
+ example: 2020-01-01 12:00:00
274
+ required: true
275
+ timestamp:
276
+ description: A unix timestamp representation of message-timestamp.
277
+ type: string
278
+ example: "1578787200"
279
+ nonce:
280
+ type: string
281
+ description: A random string that forms part of the signed set of parameters, it adds an extra element of unpredictability into the signature for the request. You use the nonce and timestamp parameters with your shared secret to calculate and validate the signature for inbound messages.
282
+ example: aaaaaaaa-bbbb-cccc-dddd-0123456789ab
283
+ concat:
284
+ type: string
285
+ description: True - if this is a concatenated message.
286
+ example: 'true'
287
+ concat-ref:
288
+ type: string
289
+ description: The transaction reference. All parts of this message share this value.
290
+ example: '1'
291
+ concat-total:
292
+ type: string
293
+ description: The number of parts in this concatenated message.
294
+ example: '3'
295
+ concat-part:
296
+ type: string
297
+ description: The number of this part in the message. Counting starts at 1.
298
+ example: '2'
299
+ data:
300
+ type: string
301
+ format: binary
302
+ description: The content of this message, if type is binary.
303
+ udh:
304
+ type: string
305
+ description: The hex encoded User Data Header, if type is binary
212
306
  Message:
213
307
  type: object
214
308
  properties:
@@ -1,3 +1,3 @@
1
1
  module NexmoApiSpecification
2
- VERSION = '0.5.4'.freeze
2
+ VERSION = '0.6.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nexmo_api_specification
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Butler
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-01-05 00:00:00.000000000 Z
11
+ date: 2018-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler