Skip to content

Commit 3710f38

Browse files
author
Erik Räni
authored
1.1.0 (#5)
Add Telegram
1 parent 42ecf50 commit 3710f38

54 files changed

Lines changed: 431 additions & 106 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ script:
88
- bundle install --path vendor/bundle
99
- bundle exec rspec
1010
- gem build messente_api.gemspec
11-
- gem install ./messente_api-1.0.3.gem
11+
- gem install ./messente_api-1.1.0.gem

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
messente_api (1.0.3)
4+
messente_api (1.1.0)
55
json (~> 2.1, >= 2.1.0)
66
typhoeus (~> 1.0, >= 1.0.1)
77

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Messente API Library
22

3-
- Messente API version: 1.0.2
4-
- Ruby gem version: 1.0.3
3+
- Messente API version: 1.1.0
4+
- Ruby gem version: 1.1.0
55

6-
[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
6+
[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
77

88
## Installation
99

docs/Omnimessage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**to** | **String** | Phone number in e.164 format |
8-
**messages** | [**Array<OneOfViberSMSWhatsApp>**](OneOfViberSMSWhatsApp.md) | An array of messages |
8+
**messages** | [**Array<OneOfViberSMSWhatsAppTelegram>**](OneOfViberSMSWhatsAppTelegram.md) | An array of messages |
99
**dlr_url** | **String** | URL where the delivery report will be sent | [optional]
1010
**text_store** | [**TextStore**](TextStore.md) | | [optional]
1111
**time_to_send** | **DateTime** | Optional parameter for sending messages at some specific time in the future. Time must be specified in the ISO-8601 format. If no timezone is specified, then the timezone is assumed to be UTC Examples: * Time specified with timezone: 2018-06-22T09:05:07+00:00 Time specified in UTC: 2018-06-22T09:05:07Z * Time specified without timezone: 2018-06-22T09:05 (equivalent to 2018-06-22T09:05+00:00) | [optional]

docs/Telegram.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# MessenteApi::Telegram
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**sender** | **String** | Phone number or alphanumeric sender name | [optional]
8+
**validity** | **Integer** | After how many minutes this channel is considered as failed and the next channel is attempted | [optional]
9+
**text** | **String** | Plaintext content for Telegram | [optional]
10+
**image_url** | **String** | URL for the embedded image. Mutually exclusive with \"document_url\" and \"audio_url\" | [optional]
11+
**document_url** | **String** | URL for the embedded image. Mutually exclusive with \"audio_url\" and \"image_url\" | [optional]
12+
**audio_url** | **String** | URL for the embedded image. Mutually exclusive with \"document_url\" and \"image_url\" | [optional]
13+
**channel** | **String** | The channel used to deliver the message | [optional] [default to 'telegram']
14+
15+
## Code Sample
16+
17+
```ruby
18+
require 'MessenteApi'
19+
20+
instance = MessenteApi::Telegram.new(sender: null,
21+
validity: 360,
22+
text: null,
23+
image_url: null,
24+
document_url: null,
25+
audio_url: null,
26+
channel: null)
27+
```
28+
29+

lib/messente_api.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
=begin
22
#Messente API
33
4-
#[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
4+
#[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
55
6-
The version of the OpenAPI document: 1.0.2
6+
The version of the OpenAPI document: 1.1.0
77
Contact: messente@messente.com
88
Generated by: https://openapi-generator.tech
99
OpenAPI Generator version: 4.0.3
@@ -44,6 +44,7 @@
4444
require 'messente_api/models/omnimessage'
4545
require 'messente_api/models/sms'
4646
require 'messente_api/models/status'
47+
require 'messente_api/models/telegram'
4748
require 'messente_api/models/text_store'
4849
require 'messente_api/models/viber'
4950
require 'messente_api/models/whats_app'

lib/messente_api/api/blacklist_api.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
=begin
22
#Messente API
33
4-
#[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
4+
#[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
55
6-
The version of the OpenAPI document: 1.0.2
6+
The version of the OpenAPI document: 1.1.0
77
Contact: messente@messente.com
88
Generated by: https://openapi-generator.tech
99
OpenAPI Generator version: 4.0.3

lib/messente_api/api/contacts_api.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
=begin
22
#Messente API
33
4-
#[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
4+
#[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
55
6-
The version of the OpenAPI document: 1.0.2
6+
The version of the OpenAPI document: 1.1.0
77
Contact: messente@messente.com
88
Generated by: https://openapi-generator.tech
99
OpenAPI Generator version: 4.0.3

lib/messente_api/api/delivery_report_api.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
=begin
22
#Messente API
33
4-
#[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
4+
#[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
55
6-
The version of the OpenAPI document: 1.0.2
6+
The version of the OpenAPI document: 1.1.0
77
Contact: messente@messente.com
88
Generated by: https://openapi-generator.tech
99
OpenAPI Generator version: 4.0.3

lib/messente_api/api/groups_api.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
=begin
22
#Messente API
33
4-
#[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
4+
#[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
55
6-
The version of the OpenAPI document: 1.0.2
6+
The version of the OpenAPI document: 1.1.0
77
Contact: messente@messente.com
88
Generated by: https://openapi-generator.tech
99
OpenAPI Generator version: 4.0.3

0 commit comments

Comments
 (0)