Telstra_Messaging 1.0.6.1 → 1.0.6.2

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
  SHA256:
3
- metadata.gz: 185e59133e2b9de5d0ecbceab28745be7facc7e6e3c8f3631e6c62ade5004d52
4
- data.tar.gz: bed16ee4378e311471ce11e4ae5a54e0c9c6c98db29e44747d620cb43a4cde07
3
+ metadata.gz: 2071e3d3e4bf2d75ea0237535798fe2c9ca6397ae3eba2243ccc4f82cf73368e
4
+ data.tar.gz: 6fe4e87b2d637e59f223ff74e54d9f0429c670714290c70c4f63d3e2f001c59c
5
5
  SHA512:
6
- metadata.gz: 2cdfe687d2f08f68988dc23e001811814a858455e9f0811724990f5942c064668bbbc6719c7c128eb2ed85f5decc71e9d29bd3cefeb68fa3b45417dcf93da15e
7
- data.tar.gz: 22b6964fdfc20e1b4fc6ff81e37830bb90391c5f72540c1f2234bc1e01f6230e4996eaa887ecd76af4d082c9971b0838d8b6435515b3c8adb175635e131b50be
6
+ metadata.gz: 39112c27516f70fd60e87d70b97a6d1613bd8900beed360c24b426f161e654af9753a123604fa8836321fad3d65526bfc1752e4253208568ba89a43af14541e2
7
+ data.tar.gz: e0d6912573ea3e31b53b7a9e76c27b6b127ce54b753586ec3768a81e2c4336156859add785f87651dbe5a54a4b4cec1e9d41aedfdc5990fa4f3fef02f905b80e
data/README.md CHANGED
@@ -144,7 +144,7 @@ For more information on the Messaging API, you can read these blog posts:
144
144
 
145
145
 
146
146
  - API version: 2.2.9
147
- - Package version: 1.0.6.1
147
+ - Package version: 1.0.6.2
148
148
 
149
149
  ## Installation
150
150
 
@@ -159,15 +159,15 @@ gem build Telstra_Messaging.gemspec
159
159
  Then either install the gem locally:
160
160
 
161
161
  ```shell
162
- gem install ./Telstra_Messaging-1.0.6.1.gem
162
+ gem install ./Telstra_Messaging-1.0.6.2.gem
163
163
  ```
164
- (for development, run `gem install --dev ./Telstra_Messaging-1.0.6.1.gem` to install the development dependencies)
164
+ (for development, run `gem install --dev ./Telstra_Messaging-1.0.6.2.gem` to install the development dependencies)
165
165
 
166
166
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
167
167
 
168
168
  Finally add this to the Gemfile:
169
169
 
170
- gem 'Telstra_Messaging', '~> 1.0.6.1'
170
+ gem 'Telstra_Messaging', '~> 1.0.6.2'
171
171
 
172
172
  ### Install from Git
173
173
 
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
23
23
  s.email = [""]
24
24
  s.homepage = "https://dev.telstra.com"
25
25
  s.summary = "Telstra Messaging API Ruby Gem"
26
- s.description = " # Introduction <table><tbody><tr><td class = 'into_api' style='border:none;padding:0 0 0 0'><p>Send and receive SMS and MMS messages globally using Telstra's enterprise grade Messaging API. It also allows your application to track the delivery status of both sent and received messages. Get your dedicated Australian number, and start sending and receiving messages today.</p></td><td class = 'into_api_logo' style='width: 20%;border:none'><img class = 'api_logo' style='margin: -26px 0 0 0' src = 'https://test-telstra-retail-tdev.devportal.apigee.io/sites/default/files/messagingapi-icon.png'></td></tr></tbody></table> # Features The Telstra Messaging API provides the features below. | Feature | Description | | --- | --- | | `Dedicated Number` | Provision a mobile number for your account to be used as `from` address in the API | | `Send Messages` | Sending SMS or MMS messages | | `Receive Messages` | Telstra will deliver messages sent to a dedicated number or to the `notifyURL` defined by you | | `Broadcast Messages` | Invoke a single API call to send a message to a list of numbers provided in `to` | | `Delivery Status` | Query the delivery status of your messages | | `Callbacks` | Provide a notification URL and Telstra will notify your app when a message status changes | | `Alphanumeric Identifier` | Differentiate yourself by providing an alphanumeric string in `from`. This feature is only available on paid plans | | `Concatenation` | Send messages up to 1900 characters long and Telstra will automaticaly segment and reassemble them | | `Reply Request` | Create a chat session by associating `messageId` and `to` number to track responses received from a mobile number. We will store this association for 8 days | | `Character set` | Accepts all Unicode characters as part of UTF-8 | | `Bounce-back response` | See if your SMS hits an unreachable or unallocated number (Australia Only) | | `Queuing` | Messaging API will automatically queue and deliver each message at a compliant rate. | | `Emoji Encoding` | The API supports the encoding of the full range of emojis. Emojis in the reply messages will be in their UTF-8 format. | ## Delivery Notification or Callbacks The API provides several methods for notifying when a message has been delivered to the destination. 1. When you send a message there is an opportunity to specify a `notifyURL`. Once the message has been delivered the API will make a call to this URL to advise of the message status. 2. If you do not specify a URL you can always call the `GET /status` API to get the status of the message. # Getting Access to the API 1. Register at [https://dev.telstra.com](https://dev.telstra.com). 2. After registration, login to [https://dev.telstra.com](https://dev.telstra.com) and navigate to the **My apps** page. 3. Create your application by clicking the **Add new app** button 4. Select **API Free Trial** Product when configuring your application. This Product includes the Telstra Messaging API as well as other free trial APIs. Your application will be approved automatically. 5. There is a maximum of 1000 free messages per developer. Additional messages and features can be purchased from [https://dev.telstra.com](https://dev.telstra.com). 6. Note your `Client key` and `Client secret` as these will be needed to provision a number for your application and for authentication. Now head over to **Getting Started** where you can find a postman collection as well as some links to sample apps and SDKs to get you started. Happy Messaging! # Frequently Asked Questions **Q: Is creating a subscription via the Provisioning call a required step?** A. Yes. You will only be able to start sending messages if you have a provisioned dedicated number. Use Provisioning to create a dedicated number subscription, or renew your dedicated number if it has expired. **Q: When trying to send an SMS I receive a `400 Bad Request` response. How can I fix this?** A. You need to make sure you have a provisioned dedicated number before you can send an SMS. If you do not have a provisioned dedicated number and you try to send a message via the API, you will get the error below in the response: <pre><code class=\"language-sh\">{ \"status\":\"400\", \"code\":\"DELIVERY-IMPOSSIBLE\", \"message\":\"Invalid \\'from\\' address specified\" }</code></pre> Use Provisioning to create a dedicated number subscription, or renew your dedicated number if it has expired. **Q: How long does my dedicated number stay active for?** A. When you provision a dedicated number, by default it will be active for 30 days. You can use the `activeDays` parameter during the provisioning call to increment or decrement the number of days your dedicated number will remain active. Note that Free Trial apps will have 30 days as the maximum `activeDays` they can add to their provisioned number. If the Provisioning call is made several times within that 30-Day period, it will return the `expiryDate` in the Unix format and will not add any activeDays until after that `expiryDate`. **Q: Can I send a broadcast message using the Telstra Messaging API?** A. Yes. Recipient numbers can be in the form of an array of strings if a broadcast message needs to be sent, allowing you to send to multiple mobile numbers in one API call. A sample request body for this will be: `{\"to\":[\"+61412345678\",\"+61487654321\"],\"body\":\"Test Message\"}` **Q: Can I send SMS and MMS to all countries?** A. You can send SMS and MMS to all countries EXCEPT to countries which are subject to global sanctions namely: Burma, Côte d'Ivoire, Cuba, Iran, North Korea, Syria. **Q: Can I use `Alphanumeric Identifier` from my paid plan via credit card?** A. `Alphanumeric Identifier` is only available on Telstra Account paid plans, not through credit card paid plans. **Q: What is the maximum sized MMS that I can send?** A. This will depend on the carrier that will receive the MMS. For Telstra it's up to 2MB, Optus up to 1.5MB and Vodafone only allows up to 500kB. You will need to check with international carriers for thier MMS size limits. **Q: How is the size of an MMS calculated?** A. Images are scaled up to approximately 4/3 when base64 encoded. Additionally, there is approximately 200 bytes of overhead on each MMS. Assuming the maximum MMS that can be sent on Telstra’s network is 2MB, then the maximum image size that can be sent will be approximately 1.378MB (1.378 x 1.34 + 200, without SOAP encapsulation). **Q: How is an MMS classified as Small or Large?** A. MMSes with size below 600kB are classed as Small whereas those that are bigger than 600kB are classed as Large. They will be charged accordingly. **Q: Are SMILs supported by the Messaging API?** A. While there will be no error if you send an MMS with a SMIL presentation, the actual layout or sequence defined in the SMIL may not display as expected because most of the new smartphone devices ignore the SMIL presentation layer. SMIL was used in feature phones which had limited capability and SMIL allowed a *powerpoint type* presentation to be provided. Smartphones now have the capability to display video which is the better option for presentations. It is recommended that MMS messages should just drop the SMIL. **Q: How do I assign a delivery notification or callback URL?** A. You can assign a delivery notification or callback URL by adding the `notifyURL` parameter in the body of the request when you send a message. Once the message has been delivered, a notification will then be posted to this callback URL. **Q: What is the difference between the `notifyURL` parameter in the Provisoning call versus the `notifyURL` parameter in the Send Message call?** A. The `notifyURL` in the Provisoning call will be the URL where replies to the provisioned number will be posted. On the other hand, the `notifyURL` in the Send Message call will be the URL where the delivery notification will be posted, e.g. when an SMS has already been delivered to the recipient. # Getting Started Below are the steps to get started with the Telstra Messaging API. 1. Generate an OAuth2 token using your `Client key` and `Client secret`. 2. Use the Provisioning call to create a subscription and receive a dedicated number. 3. Send a message to a specific mobile number. ## Run in Postman <a href=\"https://app.getpostman.com/run-collection/ded00578f69a9deba256#?env%5BMessaging%20API%20Environments%5D=W3siZW5hYmxlZCI6dHJ1ZSwia2V5IjoiY2xpZW50X2lkIiwidmFsdWUiOiIiLCJ0eXBlIjoidGV4dCJ9LHsiZW5hYmxlZCI6dHJ1ZSwia2V5IjoiY2xpZW50X3NlY3JldCIsInZhbHVlIjoiIiwidHlwZSI6InRleHQifSx7ImVuYWJsZWQiOnRydWUsImtleSI6ImFjY2Vzc190b2tlbiIsInZhbHVlIjoiIiwidHlwZSI6InRleHQifSx7ImVuYWJsZWQiOnRydWUsImtleSI6Imhvc3QiLCJ2YWx1ZSI6InRhcGkudGVsc3RyYS5jb20iLCJ0eXBlIjoidGV4dCJ9LHsiZW5hYmxlZCI6dHJ1ZSwia2V5IjoiQXV0aG9yaXphdGlvbiIsInZhbHVlIjoiIiwidHlwZSI6InRleHQifSx7ImVuYWJsZWQiOnRydWUsImtleSI6Im9hdXRoX2hvc3QiLCJ2YWx1ZSI6InNhcGkudGVsc3RyYS5jb20iLCJ0eXBlIjoidGV4dCJ9LHsiZW5hYmxlZCI6dHJ1ZSwia2V5IjoibWVzc2FnZV9pZCIsInZhbHVlIjoiIiwidHlwZSI6InRleHQifV0=\"><img src=\"https://run.pstmn.io/button.svg\" alt=\"Run in Postman\"/></a> ## Sample Apps - [Perl Sample App](https://github.com/telstra/MessagingAPI-perl-sample-app) - [Happy Chat App](https://github.com/telstra/messaging-sample-code-happy-chat) - [PHP Sample App](https://github.com/developersteve/telstra-messaging-php) ## SDK Repos - [Messaging API - PHP SDK](https://github.com/telstra/MessagingAPI-SDK-php) - [Messaging API - Python SDK](https://github.com/telstra/MessagingAPI-SDK-python) - [Messaging API - Ruby SDK](https://github.com/telstra/MessagingAPI-SDK-ruby) - [Messaging API - NodeJS SDK](https://github.com/telstra/MessagingAPI-SDK-node) - [Messaging API - .Net2 SDK](https://github.com/telstra/MessagingAPI-SDK-dotnet) - [Messaging API - Java SDK](https://github.com/telstra/MessagingAPI-SDK-Java) ## Blog Posts For more information on the Messaging API, you can read these blog posts: - [Callbacks Part 1](https://dev.telstra.com/content/understanding-messaging-api-callbacks-part-1) - [Callbacks Part 2](https://dev.telstra.com/content/understanding-messaging-api-callbacks-part-2) "
26
+ s.description = "Telstra_Messaging - the Ruby gem for the Telstra Messaging API"
27
27
  s.license = 'Apache-2.0'
28
28
  s.required_ruby_version = ">= 1.9"
29
29
 
@@ -11,5 +11,5 @@ OpenAPI Generator version: 3.2.0
11
11
  =end
12
12
 
13
13
  module Telstra_Messaging
14
- VERSION = '1.0.6.1'
14
+ VERSION = '1.0.6.2'
15
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Telstra_Messaging
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6.1
4
+ version: 1.0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Telstra
@@ -190,117 +190,7 @@ dependencies:
190
190
  - - ">="
191
191
  - !ruby/object:Gem::Version
192
192
  version: 0.2.12
193
- description: ' # Introduction <table><tbody><tr><td class = ''into_api'' style=''border:none;padding:0
194
- 0 0 0''><p>Send and receive SMS and MMS messages globally using Telstra''s enterprise
195
- grade Messaging API. It also allows your application to track the delivery status
196
- of both sent and received messages. Get your dedicated Australian number, and start
197
- sending and receiving messages today.</p></td><td class = ''into_api_logo'' style=''width:
198
- 20%;border:none''><img class = ''api_logo'' style=''margin: -26px 0 0 0'' src =
199
- ''https://test-telstra-retail-tdev.devportal.apigee.io/sites/default/files/messagingapi-icon.png''></td></tr></tbody></table> #
200
- Features The Telstra Messaging API provides the features below. | Feature | Description
201
- | | --- | --- | | `Dedicated Number` | Provision a mobile number for your account
202
- to be used as `from` address in the API | | `Send Messages` | Sending SMS or MMS
203
- messages | | `Receive Messages` | Telstra will deliver messages sent to a dedicated
204
- number or to the `notifyURL` defined by you | | `Broadcast Messages` | Invoke a
205
- single API call to send a message to a list of numbers provided in `to` | | `Delivery
206
- Status` | Query the delivery status of your messages | | `Callbacks` | Provide a
207
- notification URL and Telstra will notify your app when a message status changes
208
- | | `Alphanumeric Identifier` | Differentiate yourself by providing an alphanumeric
209
- string in `from`. This feature is only available on paid plans | | `Concatenation`
210
- | Send messages up to 1900 characters long and Telstra will automaticaly segment
211
- and reassemble them | | `Reply Request` | Create a chat session by associating `messageId`
212
- and `to` number to track responses received from a mobile number. We will store
213
- this association for 8 days | | `Character set` | Accepts all Unicode characters
214
- as part of UTF-8 | | `Bounce-back response` | See if your SMS hits an unreachable
215
- or unallocated number (Australia Only) | | `Queuing` | Messaging API will automatically
216
- queue and deliver each message at a compliant rate. | | `Emoji Encoding` | The API
217
- supports the encoding of the full range of emojis. Emojis in the reply messages
218
- will be in their UTF-8 format. | ## Delivery Notification or Callbacks The API
219
- provides several methods for notifying when a message has been delivered to the
220
- destination. 1. When you send a message there is an opportunity to specify a `notifyURL`.
221
- Once the message has been delivered the API will make a call to this URL to advise
222
- of the message status. 2. If you do not specify a URL you can always call the `GET
223
- /status` API to get the status of the message. # Getting Access to the API 1.
224
- Register at [https://dev.telstra.com](https://dev.telstra.com). 2. After registration,
225
- login to [https://dev.telstra.com](https://dev.telstra.com) and navigate to the
226
- **My apps** page. 3. Create your application by clicking the **Add new app** button
227
- 4. Select **API Free Trial** Product when configuring your application. This Product
228
- includes the Telstra Messaging API as well as other free trial APIs. Your application
229
- will be approved automatically. 5. There is a maximum of 1000 free messages per
230
- developer. Additional messages and features can be purchased from [https://dev.telstra.com](https://dev.telstra.com).
231
- 6. Note your `Client key` and `Client secret` as these will be needed to provision
232
- a number for your application and for authentication. Now head over to **Getting
233
- Started** where you can find a postman collection as well as some links to sample
234
- apps and SDKs to get you started. Happy Messaging! # Frequently Asked Questions **Q:
235
- Is creating a subscription via the Provisioning call a required step?** A. Yes.
236
- You will only be able to start sending messages if you have a provisioned dedicated
237
- number. Use Provisioning to create a dedicated number subscription, or renew your
238
- dedicated number if it has expired. **Q: When trying to send an SMS I receive a
239
- `400 Bad Request` response. How can I fix this?** A. You need to make sure you
240
- have a provisioned dedicated number before you can send an SMS. If you do not have
241
- a provisioned dedicated number and you try to send a message via the API, you will
242
- get the error below in the response: <pre><code class="language-sh">{ "status":"400", "code":"DELIVERY-IMPOSSIBLE", "message":"Invalid
243
- \''from\'' address specified" }</code></pre> Use Provisioning to create a dedicated
244
- number subscription, or renew your dedicated number if it has expired. **Q: How
245
- long does my dedicated number stay active for?** A. When you provision a dedicated
246
- number, by default it will be active for 30 days. You can use the `activeDays`
247
- parameter during the provisioning call to increment or decrement the number of days
248
- your dedicated number will remain active. Note that Free Trial apps will have 30
249
- days as the maximum `activeDays` they can add to their provisioned number. If the
250
- Provisioning call is made several times within that 30-Day period, it will return
251
- the `expiryDate` in the Unix format and will not add any activeDays until after
252
- that `expiryDate`. **Q: Can I send a broadcast message using the Telstra Messaging
253
- API?** A. Yes. Recipient numbers can be in the form of an array of strings if a
254
- broadcast message needs to be sent, allowing you to send to multiple mobile numbers
255
- in one API call. A sample request body for this will be: `{"to":["+61412345678","+61487654321"],"body":"Test
256
- Message"}` **Q: Can I send SMS and MMS to all countries?** A. You can send SMS
257
- and MMS to all countries EXCEPT to countries which are subject to global sanctions
258
- namely: Burma, Côte d''Ivoire, Cuba, Iran, North Korea, Syria. **Q: Can I use `Alphanumeric
259
- Identifier` from my paid plan via credit card?** A. `Alphanumeric Identifier` is
260
- only available on Telstra Account paid plans, not through credit card paid plans. **Q:
261
- What is the maximum sized MMS that I can send?** A. This will depend on the carrier
262
- that will receive the MMS. For Telstra it''s up to 2MB, Optus up to 1.5MB and Vodafone
263
- only allows up to 500kB. You will need to check with international carriers for
264
- thier MMS size limits. **Q: How is the size of an MMS calculated?** A. Images
265
- are scaled up to approximately 4/3 when base64 encoded. Additionally, there is approximately
266
- 200 bytes of overhead on each MMS. Assuming the maximum MMS that can be sent on
267
- Telstra’s network is 2MB, then the maximum image size that can be sent will be approximately
268
- 1.378MB (1.378 x 1.34 + 200, without SOAP encapsulation). **Q: How is an MMS classified
269
- as Small or Large?** A. MMSes with size below 600kB are classed as Small whereas
270
- those that are bigger than 600kB are classed as Large. They will be charged accordingly. **Q:
271
- Are SMILs supported by the Messaging API?** A. While there will be no error if
272
- you send an MMS with a SMIL presentation, the actual layout or sequence defined
273
- in the SMIL may not display as expected because most of the new smartphone devices
274
- ignore the SMIL presentation layer. SMIL was used in feature phones which had limited
275
- capability and SMIL allowed a *powerpoint type* presentation to be provided. Smartphones
276
- now have the capability to display video which is the better option for presentations.
277
- It is recommended that MMS messages should just drop the SMIL. **Q: How do I assign
278
- a delivery notification or callback URL?** A. You can assign a delivery notification
279
- or callback URL by adding the `notifyURL` parameter in the body of the request when
280
- you send a message. Once the message has been delivered, a notification will then
281
- be posted to this callback URL. **Q: What is the difference between the `notifyURL`
282
- parameter in the Provisoning call versus the `notifyURL` parameter in the Send Message
283
- call?** A. The `notifyURL` in the Provisoning call will be the URL where replies
284
- to the provisioned number will be posted. On the other hand, the `notifyURL` in
285
- the Send Message call will be the URL where the delivery notification will be posted,
286
- e.g. when an SMS has already been delivered to the recipient. # Getting Started Below
287
- are the steps to get started with the Telstra Messaging API. 1. Generate an OAuth2
288
- token using your `Client key` and `Client secret`. 2. Use the Provisioning call
289
- to create a subscription and receive a dedicated number. 3. Send a message to
290
- a specific mobile number. ## Run in Postman <a href="https://app.getpostman.com/run-collection/ded00578f69a9deba256#?env%5BMessaging%20API%20Environments%5D=W3siZW5hYmxlZCI6dHJ1ZSwia2V5IjoiY2xpZW50X2lkIiwidmFsdWUiOiIiLCJ0eXBlIjoidGV4dCJ9LHsiZW5hYmxlZCI6dHJ1ZSwia2V5IjoiY2xpZW50X3NlY3JldCIsInZhbHVlIjoiIiwidHlwZSI6InRleHQifSx7ImVuYWJsZWQiOnRydWUsImtleSI6ImFjY2Vzc190b2tlbiIsInZhbHVlIjoiIiwidHlwZSI6InRleHQifSx7ImVuYWJsZWQiOnRydWUsImtleSI6Imhvc3QiLCJ2YWx1ZSI6InRhcGkudGVsc3RyYS5jb20iLCJ0eXBlIjoidGV4dCJ9LHsiZW5hYmxlZCI6dHJ1ZSwia2V5IjoiQXV0aG9yaXphdGlvbiIsInZhbHVlIjoiIiwidHlwZSI6InRleHQifSx7ImVuYWJsZWQiOnRydWUsImtleSI6Im9hdXRoX2hvc3QiLCJ2YWx1ZSI6InNhcGkudGVsc3RyYS5jb20iLCJ0eXBlIjoidGV4dCJ9LHsiZW5hYmxlZCI6dHJ1ZSwia2V5IjoibWVzc2FnZV9pZCIsInZhbHVlIjoiIiwidHlwZSI6InRleHQifV0="><img
291
- src="https://run.pstmn.io/button.svg" alt="Run in Postman"/></a> ## Sample Apps -
292
- [Perl Sample App](https://github.com/telstra/MessagingAPI-perl-sample-app) - [Happy
293
- Chat App](https://github.com/telstra/messaging-sample-code-happy-chat) - [PHP
294
- Sample App](https://github.com/developersteve/telstra-messaging-php) ## SDK Repos -
295
- [Messaging API - PHP SDK](https://github.com/telstra/MessagingAPI-SDK-php) - [Messaging
296
- API - Python SDK](https://github.com/telstra/MessagingAPI-SDK-python) - [Messaging
297
- API - Ruby SDK](https://github.com/telstra/MessagingAPI-SDK-ruby) - [Messaging
298
- API - NodeJS SDK](https://github.com/telstra/MessagingAPI-SDK-node) - [Messaging
299
- API - .Net2 SDK](https://github.com/telstra/MessagingAPI-SDK-dotnet) - [Messaging
300
- API - Java SDK](https://github.com/telstra/MessagingAPI-SDK-Java) ## Blog Posts
301
- For more information on the Messaging API, you can read these blog posts: - [Callbacks
302
- Part 1](https://dev.telstra.com/content/understanding-messaging-api-callbacks-part-1) -
303
- [Callbacks Part 2](https://dev.telstra.com/content/understanding-messaging-api-callbacks-part-2) '
193
+ description: Telstra_Messaging - the Ruby gem for the Telstra Messaging API
304
194
  email:
305
195
  - ''
306
196
  executables: []