nexmo_api_specification 0.11.5 → 0.11.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +39 -0
- data/definitions/sms.yml +11 -11
- data/lib/nexmo_api_specification/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: 942b0f851b744ed741359388a725c5f3164766ce
|
4
|
+
data.tar.gz: 25189c10ea95b5b3948242d3075f0bdabf139e62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e56d23c25a51ba30e3dc6be5f7d18adb97047367d69c5bfb9c5ffd506b27b1af265fb9e69d86ec02401318596dca31d5e094d8335157651e4113cc8b9a15462
|
7
|
+
data.tar.gz: 1d84a0f5f68e6ba0b16fdb51b8d9b1bc79b4a9ce1a9440757279792e7c949cebd1a7ac39b5491c57d9cfc5fb9d8c0605dbd570f00786fa329e8345bc4515975f
|
data/README.md
CHANGED
@@ -72,3 +72,42 @@ NexmoApiSpecification::Definition.load(:sms)
|
|
72
72
|
## Contributing
|
73
73
|
|
74
74
|
Contributions are welcome, please follow [GitHub Flow](https://guides.github.com/introduction/flow/index.html)
|
75
|
+
|
76
|
+
|
77
|
+
## Publishing
|
78
|
+
|
79
|
+
Clone the repo and navigate to its directory:
|
80
|
+
|
81
|
+
```
|
82
|
+
$ cd api-specification
|
83
|
+
```
|
84
|
+
|
85
|
+
Bump the latest version in `api-specification/lib/nexmo_api_specification/version.rb`:
|
86
|
+
|
87
|
+
```
|
88
|
+
//old
|
89
|
+
module OasParser
|
90
|
+
VERSION = '1.0.0'.freeze
|
91
|
+
end
|
92
|
+
|
93
|
+
//new
|
94
|
+
module OasParser
|
95
|
+
VERSION = '1.1.0'.freeze
|
96
|
+
end
|
97
|
+
```
|
98
|
+
|
99
|
+
Build the gem:
|
100
|
+
|
101
|
+
```
|
102
|
+
$ gem build nexmo_api_specification.gemspec
|
103
|
+
```
|
104
|
+
|
105
|
+
_This will create a `nexmo_api_specification-1.1.0.gem` file._
|
106
|
+
|
107
|
+
Push the gem to rubygems.org:
|
108
|
+
|
109
|
+
```
|
110
|
+
$ gem push nexmo_api_specification-1.1.0.gem
|
111
|
+
```
|
112
|
+
|
113
|
+
Verify the change was made by checking for the [new version on rubygems.org](https://rubygems.org/gems/nexmo_api_specification)
|
data/definitions/sms.yml
CHANGED
@@ -2,7 +2,7 @@ openapi: "3.0.0"
|
|
2
2
|
info:
|
3
3
|
version: 1.0.0
|
4
4
|
title: SMS API
|
5
|
-
description: With the Nexmo SMS API you can send SMS from your account and lookup messages both messages that you've sent as well as messages sent to your virtual numbers.
|
5
|
+
description: With the Nexmo SMS API you can send SMS from your account and lookup messages both messages that you've sent as well as messages sent to your virtual numbers. Numbers are specified in E.164 format.
|
6
6
|
servers:
|
7
7
|
- url: https://rest.nexmo.com
|
8
8
|
paths:
|
@@ -113,11 +113,11 @@ components:
|
|
113
113
|
- to
|
114
114
|
properties:
|
115
115
|
from:
|
116
|
-
description: The name or number the message should be sent from. Alphanumeric senderID's are not supported in all countries, see [Global Messaging](/messaging/sms/guides/global-messaging#country-specific-features) for more details.
|
116
|
+
description: The name or number the message should be sent from. Alphanumeric senderID's are not supported in all countries, see [Global Messaging](/messaging/sms/guides/global-messaging#country-specific-features) for more details. If alphanumeric, spaces will be ignored. Numbers are specified in E.164 format.
|
117
117
|
type: string
|
118
|
-
example: '
|
118
|
+
example: 'AcmeInc'
|
119
119
|
to:
|
120
|
-
description: The number that the message should be sent to
|
120
|
+
description: The number that the message should be sent to. Numbers are specified in E.164 format.
|
121
121
|
type: string
|
122
122
|
minLength: 7
|
123
123
|
maxLength: 15
|
@@ -237,12 +237,12 @@ components:
|
|
237
237
|
properties:
|
238
238
|
msisdn:
|
239
239
|
type: string
|
240
|
-
description: The phone number that this inbound message was sent from.
|
240
|
+
description: The phone number that this inbound message was sent from. Numbers are specified in E.164 format.
|
241
241
|
example: '447700900001'
|
242
242
|
required: true
|
243
243
|
to:
|
244
244
|
type: string
|
245
|
-
description: The phone number the message was sent to. **This is your virtual number**.
|
245
|
+
description: The phone number the message was sent to. **This is your virtual number**. Numbers are specified in E.164 format.
|
246
246
|
example: '447700900000'
|
247
247
|
required: true
|
248
248
|
messageId:
|
@@ -311,7 +311,7 @@ components:
|
|
311
311
|
properties:
|
312
312
|
to:
|
313
313
|
type: string
|
314
|
-
description: The number the message was sent to
|
314
|
+
description: The number the message was sent to. Numbers are specified in E.164 format.
|
315
315
|
example: '447700900000'
|
316
316
|
message-id:
|
317
317
|
type: string
|
@@ -359,12 +359,12 @@ components:
|
|
359
359
|
properties:
|
360
360
|
msisdn:
|
361
361
|
type: string
|
362
|
-
description: The number the message was sent to
|
362
|
+
description: The number the message was sent to. Numbers are specified in E.164 format.
|
363
363
|
example: '447700900000'
|
364
364
|
to:
|
365
365
|
type: string
|
366
|
-
description: The SenderID you set in from in your request
|
367
|
-
example:
|
366
|
+
description: The SenderID you set in `from` in your request.
|
367
|
+
example: AcmeInc
|
368
368
|
network-code:
|
369
369
|
type: string
|
370
370
|
description: The Mobile Country Code Mobile Network Code (MCCMNC) of the carrier this phone number is registered with.
|
@@ -462,7 +462,7 @@ x-errors:
|
|
462
462
|
|
463
463
|
12:
|
464
464
|
description: Desintation unreachable. The message could not be delivered to the phone number.
|
465
|
-
resolution: Check that your `to` number is valid. Make sure to use the country prefix (e.g. `44` for the UK) and not a `0
|
465
|
+
resolution: Check that your `to` number is valid. Make sure to use the country prefix (e.g. `44` for the UK) and not a `0`. Numbers are specified in E.164 format.
|
466
466
|
|
467
467
|
13:
|
468
468
|
description: The carrier blocked this message because the content is not suitable for `to` based on age restrictions.)
|
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.11.
|
4
|
+
version: 0.11.6
|
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-
|
11
|
+
date: 2018-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|