Skip to content

Commit b9dfffd

Browse files
authored
Merge pull request #16 from messente/travis
Release version 2.4.0
2 parents 59038dc + 297332a commit b9dfffd

File tree

138 files changed

+7686
-142
lines changed

Some content is hidden

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

138 files changed

+7686
-142
lines changed

.github/workflows/rubygems.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.openapi-generator/FILES

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
Gemfile
88
README.md
99
Rakefile
10+
docs/AccountBalanceApi.md
1011
docs/BlacklistApi.md
1112
docs/BulkMessagingApi.md
1213
docs/BulkOmniMessageCreateSuccessResponse.md
@@ -47,12 +48,16 @@ docs/MessageResult.md
4748
docs/MobileNetwork.md
4849
docs/NumberLookupApi.md
4950
docs/NumberToBlacklist.md
51+
docs/NumberVerificationApi.md
5052
docs/NumbersToInvestigate.md
5153
docs/OmniMessageCreateSuccessResponse.md
5254
docs/Omnimessage.md
5355
docs/OmnimessageApi.md
5456
docs/OmnimessageMessagesInner.md
57+
docs/Price.md
5558
docs/PriceInfo.md
59+
docs/PriceNetworksInner.md
60+
docs/PricingApi.md
5661
docs/Priority.md
5762
docs/SMS.md
5863
docs/StatisticsApi.md
@@ -67,24 +72,51 @@ docs/TextStore.md
6772
docs/Viber.md
6873
docs/ViberVideo.md
6974
docs/WhatsApp.md
75+
docs/WhatsAppAudio.md
7076
docs/WhatsAppComponent.md
7177
docs/WhatsAppCurrency.md
7278
docs/WhatsAppDatetime.md
79+
docs/WhatsAppDocument.md
80+
docs/WhatsAppImage.md
7381
docs/WhatsAppLanguage.md
7482
docs/WhatsAppMedia.md
7583
docs/WhatsAppParameter.md
84+
docs/WhatsAppSticker.md
7685
docs/WhatsAppTemplate.md
86+
docs/WhatsAppTemplatesApi.md
7787
docs/WhatsAppText.md
88+
docs/WhatsAppVideo.md
89+
docs/WhatsappButtonType.md
90+
docs/WhatsappComponentType.md
91+
docs/WhatsappCreateTemplateRequest.md
92+
docs/WhatsappCreateTemplateResponse.md
93+
docs/WhatsappHeaderFormat.md
94+
docs/WhatsappListTemplatesResponse.md
95+
docs/WhatsappOtpButtonType.md
96+
docs/WhatsappPagination.md
97+
docs/WhatsappPagingCursors.md
98+
docs/WhatsappSupportedApp.md
99+
docs/WhatsappTemplateButton.md
100+
docs/WhatsappTemplateCategory.md
101+
docs/WhatsappTemplateComponent.md
102+
docs/WhatsappTemplateExample.md
103+
docs/WhatsappTemplateResponse.md
104+
docs/WhatsappTemplateStatus.md
105+
docs/WhatsappUpdateTemplateRequest.md
78106
git_push.sh
79107
lib/messente_api.rb
108+
lib/messente_api/api/account_balance_api.rb
80109
lib/messente_api/api/blacklist_api.rb
81110
lib/messente_api/api/bulk_messaging_api.rb
82111
lib/messente_api/api/contacts_api.rb
83112
lib/messente_api/api/delivery_report_api.rb
84113
lib/messente_api/api/groups_api.rb
85114
lib/messente_api/api/number_lookup_api.rb
115+
lib/messente_api/api/number_verification_api.rb
86116
lib/messente_api/api/omnimessage_api.rb
117+
lib/messente_api/api/pricing_api.rb
87118
lib/messente_api/api/statistics_api.rb
119+
lib/messente_api/api/whats_app_templates_api.rb
88120
lib/messente_api/api_client.rb
89121
lib/messente_api/api_error.rb
90122
lib/messente_api/configuration.rb
@@ -126,7 +158,9 @@ lib/messente_api/models/numbers_to_investigate.rb
126158
lib/messente_api/models/omni_message_create_success_response.rb
127159
lib/messente_api/models/omnimessage.rb
128160
lib/messente_api/models/omnimessage_messages_inner.rb
161+
lib/messente_api/models/price.rb
129162
lib/messente_api/models/price_info.rb
163+
lib/messente_api/models/price_networks_inner.rb
130164
lib/messente_api/models/priority.rb
131165
lib/messente_api/models/sms.rb
132166
lib/messente_api/models/statistics_report.rb
@@ -140,14 +174,36 @@ lib/messente_api/models/text_store.rb
140174
lib/messente_api/models/viber.rb
141175
lib/messente_api/models/viber_video.rb
142176
lib/messente_api/models/whats_app.rb
177+
lib/messente_api/models/whats_app_audio.rb
143178
lib/messente_api/models/whats_app_component.rb
144179
lib/messente_api/models/whats_app_currency.rb
145180
lib/messente_api/models/whats_app_datetime.rb
181+
lib/messente_api/models/whats_app_document.rb
182+
lib/messente_api/models/whats_app_image.rb
146183
lib/messente_api/models/whats_app_language.rb
147184
lib/messente_api/models/whats_app_media.rb
148185
lib/messente_api/models/whats_app_parameter.rb
186+
lib/messente_api/models/whats_app_sticker.rb
149187
lib/messente_api/models/whats_app_template.rb
150188
lib/messente_api/models/whats_app_text.rb
189+
lib/messente_api/models/whats_app_video.rb
190+
lib/messente_api/models/whatsapp_button_type.rb
191+
lib/messente_api/models/whatsapp_component_type.rb
192+
lib/messente_api/models/whatsapp_create_template_request.rb
193+
lib/messente_api/models/whatsapp_create_template_response.rb
194+
lib/messente_api/models/whatsapp_header_format.rb
195+
lib/messente_api/models/whatsapp_list_templates_response.rb
196+
lib/messente_api/models/whatsapp_otp_button_type.rb
197+
lib/messente_api/models/whatsapp_pagination.rb
198+
lib/messente_api/models/whatsapp_paging_cursors.rb
199+
lib/messente_api/models/whatsapp_supported_app.rb
200+
lib/messente_api/models/whatsapp_template_button.rb
201+
lib/messente_api/models/whatsapp_template_category.rb
202+
lib/messente_api/models/whatsapp_template_component.rb
203+
lib/messente_api/models/whatsapp_template_example.rb
204+
lib/messente_api/models/whatsapp_template_response.rb
205+
lib/messente_api/models/whatsapp_template_status.rb
206+
lib/messente_api/models/whatsapp_update_template_request.rb
151207
lib/messente_api/version.rb
152208
messente_api.gemspec
153209
spec/spec_helper.rb

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.6.0
1+
7.11.0

.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-2.3.0.gem
11+
- gem install ./messente_api-2.4.0.gem

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Messente API Library
22

33
- Messente API version: 2.0.0
4-
- Ruby gem version: 2.3.0
4+
- Ruby gem version: 2.4.0
55

66
[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
77

@@ -18,6 +18,11 @@ Messente API has the following features:
1818

1919
Messente API Library provides the operations described below to access the features.
2020

21+
### AccountBalanceApi
22+
23+
1. Get account balance [`get_account_balance`](docs/AccountBalanceApi.md#get_account_balance)
24+
1. Get account balance [`get_account_balance_using_post`](docs/AccountBalanceApi.md#get_account_balance_using_post)
25+
2126
### BlacklistApi
2227

2328
1. Adds a phone number to the blacklist [`add_to_blacklist`](docs/BlacklistApi.md#add_to_blacklist)
@@ -56,15 +61,33 @@ Messente API Library provides the operations described below to access the featu
5661

5762
1. Requests info about phone numbers [`fetch_info`](docs/NumberLookupApi.md#fetch_info)
5863

64+
### NumberVerificationApi
65+
66+
1. verify number [`verify_number`](docs/NumberVerificationApi.md#verify_number)
67+
1. verified the PIN code entered by the user. [`verify_pin`](docs/NumberVerificationApi.md#verify_pin)
68+
5969
### OmnimessageApi
6070

6171
1. Cancels a scheduled Omnimessage [`cancel_scheduled_message`](docs/OmnimessageApi.md#cancel_scheduled_message)
6272
1. Sends an Omnimessage [`send_omnimessage`](docs/OmnimessageApi.md#send_omnimessage)
6373

74+
### PricingApi
75+
76+
1. Get pricelist for account [`get_pricelist`](docs/PricingApi.md#get_pricelist)
77+
1. Get pricing for a specific country [`get_prices`](docs/PricingApi.md#get_prices)
78+
6479
### StatisticsApi
6580

6681
1. Requests statistics reports for each country [`create_statistics_report`](docs/StatisticsApi.md#create_statistics_report)
6782

83+
### WhatsAppTemplatesApi
84+
85+
1. Creates a WhatsApp template [`create_whatsapp_template`](docs/WhatsAppTemplatesApi.md#create_whatsapp_template)
86+
1. Deletes a WhatsApp template [`delete_whatsapp_template`](docs/WhatsAppTemplatesApi.md#delete_whatsapp_template)
87+
1. Requests a WhatsApp template with the given ID [`get_whatsapp_template_by_id`](docs/WhatsAppTemplatesApi.md#get_whatsapp_template_by_id)
88+
1. Requests a list of WhatsApp templates [`list_whatsapp_templates`](docs/WhatsAppTemplatesApi.md#list_whatsapp_templates)
89+
1. Updates a WhatsApp template [`update_whatsapp_template`](docs/WhatsAppTemplatesApi.md#update_whatsapp_template)
90+
6891
## Auth
6992

7093
**Type**: HTTP basic authentication

docs/AccountBalanceApi.md

Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
# MessenteApi::AccountBalanceApi
2+
3+
All URIs are relative to *https://api.messente.com/v1*
4+
5+
| Method | HTTP request | Description |
6+
| ------ | ------------ | ----------- |
7+
| [**get_account_balance**](AccountBalanceApi.md#get_account_balance) | **GET** /get_balance | Get account balance |
8+
| [**get_account_balance_using_post**](AccountBalanceApi.md#get_account_balance_using_post) | **POST** /get_balance | Get account balance |
9+
10+
11+
## get_account_balance
12+
13+
> String get_account_balance(username, password)
14+
15+
Get account balance
16+
17+
### Examples
18+
19+
```ruby
20+
require 'time'
21+
require 'messente_api'
22+
# setup authorization
23+
MessenteApi.configure do |config|
24+
# Configure API key authorization: apiPassword
25+
config.api_key['password'] = 'YOUR API KEY'
26+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
27+
# config.api_key_prefix['password'] = 'Bearer'
28+
29+
# Configure API key authorization: apiUsername
30+
config.api_key['username'] = 'YOUR API KEY'
31+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
32+
# config.api_key_prefix['username'] = 'Bearer'
33+
end
34+
35+
api_instance = MessenteApi::AccountBalanceApi.new
36+
username = 'username_example' # String | The API username
37+
password = 'password_example' # String | The API password
38+
39+
begin
40+
# Get account balance
41+
result = api_instance.get_account_balance(username, password)
42+
p result
43+
rescue MessenteApi::ApiError => e
44+
puts "Error when calling AccountBalanceApi->get_account_balance: #{e}"
45+
end
46+
```
47+
48+
#### Using the get_account_balance_with_http_info variant
49+
50+
This returns an Array which contains the response data, status code and headers.
51+
52+
> <Array(String, Integer, Hash)> get_account_balance_with_http_info(username, password)
53+
54+
```ruby
55+
begin
56+
# Get account balance
57+
data, status_code, headers = api_instance.get_account_balance_with_http_info(username, password)
58+
p status_code # => 2xx
59+
p headers # => { ... }
60+
p data # => String
61+
rescue MessenteApi::ApiError => e
62+
puts "Error when calling AccountBalanceApi->get_account_balance_with_http_info: #{e}"
63+
end
64+
```
65+
66+
### Parameters
67+
68+
| Name | Type | Description | Notes |
69+
| ---- | ---- | ----------- | ----- |
70+
| **username** | **String** | The API username | |
71+
| **password** | **String** | The API password | |
72+
73+
### Return type
74+
75+
**String**
76+
77+
### Authorization
78+
79+
[apiPassword](../README.md#apiPassword), [apiUsername](../README.md#apiUsername)
80+
81+
### HTTP request headers
82+
83+
- **Content-Type**: Not defined
84+
- **Accept**: text/plain
85+
86+
87+
## get_account_balance_using_post
88+
89+
> String get_account_balance_using_post(username, password)
90+
91+
Get account balance
92+
93+
### Examples
94+
95+
```ruby
96+
require 'time'
97+
require 'messente_api'
98+
# setup authorization
99+
MessenteApi.configure do |config|
100+
# Configure API key authorization: apiPassword
101+
config.api_key['password'] = 'YOUR API KEY'
102+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
103+
# config.api_key_prefix['password'] = 'Bearer'
104+
105+
# Configure API key authorization: apiUsername
106+
config.api_key['username'] = 'YOUR API KEY'
107+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
108+
# config.api_key_prefix['username'] = 'Bearer'
109+
end
110+
111+
api_instance = MessenteApi::AccountBalanceApi.new
112+
username = 'username_example' # String | The API username
113+
password = 'password_example' # String | The API password
114+
115+
begin
116+
# Get account balance
117+
result = api_instance.get_account_balance_using_post(username, password)
118+
p result
119+
rescue MessenteApi::ApiError => e
120+
puts "Error when calling AccountBalanceApi->get_account_balance_using_post: #{e}"
121+
end
122+
```
123+
124+
#### Using the get_account_balance_using_post_with_http_info variant
125+
126+
This returns an Array which contains the response data, status code and headers.
127+
128+
> <Array(String, Integer, Hash)> get_account_balance_using_post_with_http_info(username, password)
129+
130+
```ruby
131+
begin
132+
# Get account balance
133+
data, status_code, headers = api_instance.get_account_balance_using_post_with_http_info(username, password)
134+
p status_code # => 2xx
135+
p headers # => { ... }
136+
p data # => String
137+
rescue MessenteApi::ApiError => e
138+
puts "Error when calling AccountBalanceApi->get_account_balance_using_post_with_http_info: #{e}"
139+
end
140+
```
141+
142+
### Parameters
143+
144+
| Name | Type | Description | Notes |
145+
| ---- | ---- | ----------- | ----- |
146+
| **username** | **String** | The API username | |
147+
| **password** | **String** | The API password | |
148+
149+
### Return type
150+
151+
**String**
152+
153+
### Authorization
154+
155+
[apiPassword](../README.md#apiPassword), [apiUsername](../README.md#apiUsername)
156+
157+
### HTTP request headers
158+
159+
- **Content-Type**: Not defined
160+
- **Accept**: text/plain
161+

0 commit comments

Comments
 (0)