omnichannel 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +79 -0
- data/README.md +120 -0
- data/Rakefile +10 -0
- data/config.json +12 -0
- data/docs/Channel.md +7 -0
- data/docs/DeliveryReportApi.md +58 -0
- data/docs/DeliveryReportResponse.md +10 -0
- data/docs/DeliveryResult.md +13 -0
- data/docs/Err.md +7 -0
- data/docs/ErrorItem.md +11 -0
- data/docs/ErrorResponse.md +8 -0
- data/docs/Message.md +9 -0
- data/docs/MessageResult.md +10 -0
- data/docs/OmniMessageCreateSuccessResponse.md +10 -0
- data/docs/Omnimessage.md +11 -0
- data/docs/OmnimessageApi.md +107 -0
- data/docs/ResponseErrorCode.md +7 -0
- data/docs/ResponseErrorTitle.md +7 -0
- data/docs/SMS.md +13 -0
- data/docs/Status.md +7 -0
- data/docs/Viber.md +14 -0
- data/docs/WhatsApp.md +14 -0
- data/docs/WhatsAppAudio.md +8 -0
- data/docs/WhatsAppDocument.md +9 -0
- data/docs/WhatsAppImage.md +9 -0
- data/docs/WhatsAppText.md +9 -0
- data/git_push.sh +55 -0
- data/lib/omnichannel.rb +60 -0
- data/lib/omnichannel/api/delivery_report_api.rb +74 -0
- data/lib/omnichannel/api/omnimessage_api.rb +126 -0
- data/lib/omnichannel/api_client.rb +387 -0
- data/lib/omnichannel/api_error.rb +38 -0
- data/lib/omnichannel/configuration.rb +251 -0
- data/lib/omnichannel/models/channel.rb +39 -0
- data/lib/omnichannel/models/delivery_report_response.rb +229 -0
- data/lib/omnichannel/models/delivery_result.rb +239 -0
- data/lib/omnichannel/models/err.rb +48 -0
- data/lib/omnichannel/models/error_item.rb +240 -0
- data/lib/omnichannel/models/error_response.rb +198 -0
- data/lib/omnichannel/models/message.rb +207 -0
- data/lib/omnichannel/models/message_result.rb +226 -0
- data/lib/omnichannel/models/omni_message_create_success_response.rb +229 -0
- data/lib/omnichannel/models/omnimessage.rb +233 -0
- data/lib/omnichannel/models/response_error_code.rb +43 -0
- data/lib/omnichannel/models/response_error_title.rb +42 -0
- data/lib/omnichannel/models/sms.rb +249 -0
- data/lib/omnichannel/models/status.rb +47 -0
- data/lib/omnichannel/models/viber.rb +254 -0
- data/lib/omnichannel/models/whats_app.rb +250 -0
- data/lib/omnichannel/models/whats_app_audio.rb +197 -0
- data/lib/omnichannel/models/whats_app_document.rb +207 -0
- data/lib/omnichannel/models/whats_app_image.rb +207 -0
- data/lib/omnichannel/models/whats_app_text.rb +209 -0
- data/lib/omnichannel/version.rb +15 -0
- data/lib/openapi_client.rb +61 -0
- data/lib/openapi_client/api/delivery_report_api.rb +74 -0
- data/lib/openapi_client/api/omnimessage_api.rb +126 -0
- data/lib/openapi_client/api_client.rb +387 -0
- data/lib/openapi_client/api_error.rb +38 -0
- data/lib/openapi_client/configuration.rb +251 -0
- data/lib/openapi_client/models/channel.rb +39 -0
- data/lib/openapi_client/models/delivery_report_response.rb +229 -0
- data/lib/openapi_client/models/delivery_result.rb +239 -0
- data/lib/openapi_client/models/err.rb +48 -0
- data/lib/openapi_client/models/error_item.rb +240 -0
- data/lib/openapi_client/models/error_response.rb +198 -0
- data/lib/openapi_client/models/message.rb +221 -0
- data/lib/openapi_client/models/message_result.rb +226 -0
- data/lib/openapi_client/models/omni_message_create_success_response.rb +229 -0
- data/lib/openapi_client/models/omnimessage.rb +233 -0
- data/lib/openapi_client/models/response_error_code.rb +43 -0
- data/lib/openapi_client/models/response_error_title.rb +42 -0
- data/lib/openapi_client/models/sms.rb +228 -0
- data/lib/openapi_client/models/status.rb +47 -0
- data/lib/openapi_client/models/viber.rb +233 -0
- data/lib/openapi_client/models/whats_app.rb +229 -0
- data/lib/openapi_client/models/whats_app_audio.rb +197 -0
- data/lib/openapi_client/models/whats_app_document.rb +207 -0
- data/lib/openapi_client/models/whats_app_image.rb +207 -0
- data/lib/openapi_client/models/whats_app_text.rb +209 -0
- data/lib/openapi_client/version.rb +15 -0
- data/omnichannel.gemspec +45 -0
- data/spec/api/delivery_report_api_spec.rb +46 -0
- data/spec/api/omnimessage_api_spec.rb +57 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/channel_spec.rb +35 -0
- data/spec/models/delivery_report_response_spec.rb +53 -0
- data/spec/models/delivery_result_spec.rb +71 -0
- data/spec/models/err_spec.rb +35 -0
- data/spec/models/error_item_spec.rb +59 -0
- data/spec/models/error_response_spec.rb +41 -0
- data/spec/models/message_result_spec.rb +53 -0
- data/spec/models/message_spec.rb +53 -0
- data/spec/models/omni_message_create_success_response_spec.rb +53 -0
- data/spec/models/omnimessage_spec.rb +59 -0
- data/spec/models/response_error_code_spec.rb +35 -0
- data/spec/models/response_error_title_spec.rb +35 -0
- data/spec/models/sms_spec.rb +71 -0
- data/spec/models/status_spec.rb +35 -0
- data/spec/models/viber_spec.rb +77 -0
- data/spec/models/whats_app_audio_spec.rb +41 -0
- data/spec/models/whats_app_document_spec.rb +47 -0
- data/spec/models/whats_app_image_spec.rb +47 -0
- data/spec/models/whats_app_spec.rb +77 -0
- data/spec/models/whats_app_text_spec.rb +47 -0
- data/spec/spec_helper.rb +111 -0
- data/templates/README.mustache +114 -0
- metadata +358 -0
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,111 @@
|
|
1
|
+
=begin
|
2
|
+
#Omnichannel API
|
3
|
+
|
4
|
+
#Messente's API which allows sending messages via various channels with fallback options.
|
5
|
+
|
6
|
+
OpenAPI spec version: 0.0.2
|
7
|
+
Contact: messente@messente.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 3.3.4
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
# load the gem
|
14
|
+
require 'openapi_client'
|
15
|
+
|
16
|
+
# The following was generated by the `rspec --init` command. Conventionally, all
|
17
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
18
|
+
# The generated `.rspec` file contains `--require spec_helper` which will cause
|
19
|
+
# this file to always be loaded, without a need to explicitly require it in any
|
20
|
+
# files.
|
21
|
+
#
|
22
|
+
# Given that it is always loaded, you are encouraged to keep this file as
|
23
|
+
# light-weight as possible. Requiring heavyweight dependencies from this file
|
24
|
+
# will add to the boot time of your test suite on EVERY test run, even for an
|
25
|
+
# individual file that may not need all of that loaded. Instead, consider making
|
26
|
+
# a separate helper file that requires the additional dependencies and performs
|
27
|
+
# the additional setup, and require it from the spec files that actually need
|
28
|
+
# it.
|
29
|
+
#
|
30
|
+
# The `.rspec` file also contains a few flags that are not defaults but that
|
31
|
+
# users commonly want.
|
32
|
+
#
|
33
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
34
|
+
RSpec.configure do |config|
|
35
|
+
# rspec-expectations config goes here. You can use an alternate
|
36
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
37
|
+
# assertions if you prefer.
|
38
|
+
config.expect_with :rspec do |expectations|
|
39
|
+
# This option will default to `true` in RSpec 4. It makes the `description`
|
40
|
+
# and `failure_message` of custom matchers include text for helper methods
|
41
|
+
# defined using `chain`, e.g.:
|
42
|
+
# be_bigger_than(2).and_smaller_than(4).description
|
43
|
+
# # => "be bigger than 2 and smaller than 4"
|
44
|
+
# ...rather than:
|
45
|
+
# # => "be bigger than 2"
|
46
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
47
|
+
end
|
48
|
+
|
49
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
50
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
51
|
+
config.mock_with :rspec do |mocks|
|
52
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
53
|
+
# a real object. This is generally recommended, and will default to
|
54
|
+
# `true` in RSpec 4.
|
55
|
+
mocks.verify_partial_doubles = true
|
56
|
+
end
|
57
|
+
|
58
|
+
# The settings below are suggested to provide a good initial experience
|
59
|
+
# with RSpec, but feel free to customize to your heart's content.
|
60
|
+
=begin
|
61
|
+
# These two settings work together to allow you to limit a spec run
|
62
|
+
# to individual examples or groups you care about by tagging them with
|
63
|
+
# `:focus` metadata. When nothing is tagged with `:focus`, all examples
|
64
|
+
# get run.
|
65
|
+
config.filter_run :focus
|
66
|
+
config.run_all_when_everything_filtered = true
|
67
|
+
|
68
|
+
# Allows RSpec to persist some state between runs in order to support
|
69
|
+
# the `--only-failures` and `--next-failure` CLI options. We recommend
|
70
|
+
# you configure your source control system to ignore this file.
|
71
|
+
config.example_status_persistence_file_path = "spec/examples.txt"
|
72
|
+
|
73
|
+
# Limits the available syntax to the non-monkey patched syntax that is
|
74
|
+
# recommended. For more details, see:
|
75
|
+
# - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
|
76
|
+
# - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
77
|
+
# - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
|
78
|
+
config.disable_monkey_patching!
|
79
|
+
|
80
|
+
# This setting enables warnings. It's recommended, but in some cases may
|
81
|
+
# be too noisy due to issues in dependencies.
|
82
|
+
config.warnings = true
|
83
|
+
|
84
|
+
# Many RSpec users commonly either run the entire suite or an individual
|
85
|
+
# file, and it's useful to allow more verbose output when running an
|
86
|
+
# individual spec file.
|
87
|
+
if config.files_to_run.one?
|
88
|
+
# Use the documentation formatter for detailed output,
|
89
|
+
# unless a formatter has already been configured
|
90
|
+
# (e.g. via a command-line flag).
|
91
|
+
config.default_formatter = 'doc'
|
92
|
+
end
|
93
|
+
|
94
|
+
# Print the 10 slowest examples and example groups at the
|
95
|
+
# end of the spec run, to help surface which specs are running
|
96
|
+
# particularly slow.
|
97
|
+
config.profile_examples = 10
|
98
|
+
|
99
|
+
# Run specs in random order to surface order dependencies. If you find an
|
100
|
+
# order dependency and want to debug it, you can fix the order by providing
|
101
|
+
# the seed, which is printed after each run.
|
102
|
+
# --seed 1234
|
103
|
+
config.order = :random
|
104
|
+
|
105
|
+
# Seed global randomization in this process using the `--seed` CLI option.
|
106
|
+
# Setting this allows you to use `--seed` to deterministically reproduce
|
107
|
+
# test failures related to randomization by passing the same `--seed` value
|
108
|
+
# as the one that triggered the failure.
|
109
|
+
Kernel.srand config.seed
|
110
|
+
=end
|
111
|
+
end
|
@@ -0,0 +1,114 @@
|
|
1
|
+
# {{gemName}}
|
2
|
+
|
3
|
+
{{moduleName}} - the Ruby gem for the {{appName}}
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
### Build a gem
|
8
|
+
|
9
|
+
To build the Ruby code into a gem:
|
10
|
+
|
11
|
+
```shell
|
12
|
+
gem build {{{gemName}}}.gemspec
|
13
|
+
```
|
14
|
+
|
15
|
+
Then either install the gem locally:
|
16
|
+
|
17
|
+
```shell
|
18
|
+
gem install ./{{{gemName}}}-{{{gemVersion}}}.gem
|
19
|
+
```
|
20
|
+
(for development, run `gem install --dev ./{{{gemName}}}-{{{gemVersion}}}.gem` to install the development dependencies)
|
21
|
+
|
22
|
+
Finally add this to the Gemfile:
|
23
|
+
|
24
|
+
gem '{{{gemName}}}', '~> {{{gemVersion}}}'
|
25
|
+
|
26
|
+
### Install from Git
|
27
|
+
|
28
|
+
gem '{{{gemName}}}', :git => 'https://github.com/{{#gitUserId}}{{.}}{{/gitUserId}}{{^gitUserId}}YOUR_GIT_USERNAME{{/gitUserId}}/{{#gitRepoId}}{{.}}{{/gitRepoId}}{{^gitRepoId}}YOUR_GIT_REPO{{/gitRepoId}}.git'
|
29
|
+
|
30
|
+
|
31
|
+
## Getting Started
|
32
|
+
|
33
|
+
Please follow the [installation](#installation) procedure and then run the following code:
|
34
|
+
```ruby
|
35
|
+
require 'omnichannel'
|
36
|
+
# setup authorization
|
37
|
+
Omnichannel.configure do |config|
|
38
|
+
# Configure HTTP basic authorization: basicAuth
|
39
|
+
config.username = '<MESSENTE_API_USERNAME>'
|
40
|
+
config.password = '<MESSENTE_API_PASSWORD>'
|
41
|
+
end
|
42
|
+
|
43
|
+
api_instance = Omnichannel::OmnimessageApi.new
|
44
|
+
omnimessage = Omnichannel::Omnimessage.new
|
45
|
+
omnimessage.to = '<phone number in e.164 format>'
|
46
|
+
omnimessage.messages = [
|
47
|
+
Omnichannel::SMS.new(
|
48
|
+
{
|
49
|
+
:sender => "<sender name or phone number in e.164 format>",
|
50
|
+
:text => "Hello SMS!"
|
51
|
+
}
|
52
|
+
),
|
53
|
+
Omnichannel::WhatsApp.new(
|
54
|
+
{
|
55
|
+
:sender => "<sender name or phone number in e.164 format>",
|
56
|
+
:text => Omnichannel::WhatsAppText.new(
|
57
|
+
{
|
58
|
+
:body => "Hello from WhatsApp!",
|
59
|
+
:preview_url => false
|
60
|
+
}
|
61
|
+
)
|
62
|
+
}
|
63
|
+
),
|
64
|
+
Omnichannel::Viber.new(
|
65
|
+
{
|
66
|
+
:sender => "<sender name or phone number in e.164 format>",
|
67
|
+
:text => "Hello from Viber!"
|
68
|
+
}
|
69
|
+
)
|
70
|
+
]
|
71
|
+
|
72
|
+
begin
|
73
|
+
result = api_instance.send_omnimessage(omnimessage)
|
74
|
+
rescue Omnichannel::ApiError => e
|
75
|
+
puts "Exception when calling OmnimessageApi->send_omnimessage: #{e}"
|
76
|
+
puts e.response_body
|
77
|
+
end
|
78
|
+
```
|
79
|
+
|
80
|
+
## Documentation for API Endpoints
|
81
|
+
|
82
|
+
All URIs are relative to *{{basePath}}*
|
83
|
+
|
84
|
+
Class | Method | HTTP request | Description
|
85
|
+
------------ | ------------- | ------------- | -------------
|
86
|
+
{{#apiInfo}}{{#apis}}{{#operations}}{{#operation}}*{{moduleName}}::{{classname}}* | [**{{operationId}}**]({{apiDocPath}}{{classname}}.md#{{operationId}}) | **{{httpMethod}}** {{path}} | {{#summary}}{{{summary}}}{{/summary}}
|
87
|
+
{{/operation}}{{/operations}}{{/apis}}{{/apiInfo}}
|
88
|
+
|
89
|
+
## Documentation for Models
|
90
|
+
|
91
|
+
{{#models}}{{#model}} - [{{moduleName}}::{{classname}}]({{modelDocPath}}{{classname}}.md)
|
92
|
+
{{/model}}{{/models}}
|
93
|
+
|
94
|
+
## Documentation for Authorization
|
95
|
+
|
96
|
+
{{^authMethods}} All endpoints do not require authorization.
|
97
|
+
{{/authMethods}}{{#authMethods}}{{#last}} Authentication schemes defined for the API:{{/last}}{{/authMethods}}
|
98
|
+
{{#authMethods}}### {{name}}
|
99
|
+
|
100
|
+
{{#isApiKey}}- **Type**: API key
|
101
|
+
- **API key parameter name**: {{keyParamName}}
|
102
|
+
- **Location**: {{#isKeyInQuery}}URL query string{{/isKeyInQuery}}{{#isKeyInHeader}}HTTP header{{/isKeyInHeader}}
|
103
|
+
{{/isApiKey}}
|
104
|
+
{{#isBasic}}- **Type**: HTTP basic authentication
|
105
|
+
{{/isBasic}}
|
106
|
+
{{#isOAuth}}- **Type**: OAuth
|
107
|
+
- **Flow**: {{flow}}
|
108
|
+
- **Authorization URL**: {{authorizationUrl}}
|
109
|
+
- **Scopes**: {{^scopes}}N/A{{/scopes}}
|
110
|
+
{{#scopes}} - {{scope}}: {{description}}
|
111
|
+
{{/scopes}}
|
112
|
+
{{/isOAuth}}
|
113
|
+
|
114
|
+
{{/authMethods}}
|
metadata
ADDED
@@ -0,0 +1,358 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: omnichannel
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Messente
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-01-17 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: typhoeus
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 1.0.1
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.0'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 1.0.1
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: json
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: 2.1.0
|
40
|
+
- - "~>"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '2.1'
|
43
|
+
type: :runtime
|
44
|
+
prerelease: false
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: 2.1.0
|
50
|
+
- - "~>"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '2.1'
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: rspec
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: 3.6.0
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '3.6'
|
63
|
+
type: :development
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 3.6.0
|
70
|
+
- - "~>"
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '3.6'
|
73
|
+
- !ruby/object:Gem::Dependency
|
74
|
+
name: vcr
|
75
|
+
requirement: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - "~>"
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '3.0'
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 3.0.1
|
83
|
+
type: :development
|
84
|
+
prerelease: false
|
85
|
+
version_requirements: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '3.0'
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: 3.0.1
|
93
|
+
- !ruby/object:Gem::Dependency
|
94
|
+
name: webmock
|
95
|
+
requirement: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- - "~>"
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '1.24'
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: 1.24.3
|
103
|
+
type: :development
|
104
|
+
prerelease: false
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '1.24'
|
110
|
+
- - ">="
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: 1.24.3
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: autotest
|
115
|
+
requirement: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - "~>"
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '4.4'
|
120
|
+
- - ">="
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: 4.4.6
|
123
|
+
type: :development
|
124
|
+
prerelease: false
|
125
|
+
version_requirements: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - "~>"
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '4.4'
|
130
|
+
- - ">="
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: 4.4.6
|
133
|
+
- !ruby/object:Gem::Dependency
|
134
|
+
name: autotest-rails-pure
|
135
|
+
requirement: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - "~>"
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '4.1'
|
140
|
+
- - ">="
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: 4.1.2
|
143
|
+
type: :development
|
144
|
+
prerelease: false
|
145
|
+
version_requirements: !ruby/object:Gem::Requirement
|
146
|
+
requirements:
|
147
|
+
- - "~>"
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '4.1'
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 4.1.2
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: autotest-growl
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0.2'
|
160
|
+
- - ">="
|
161
|
+
- !ruby/object:Gem::Version
|
162
|
+
version: 0.2.16
|
163
|
+
type: :development
|
164
|
+
prerelease: false
|
165
|
+
version_requirements: !ruby/object:Gem::Requirement
|
166
|
+
requirements:
|
167
|
+
- - "~>"
|
168
|
+
- !ruby/object:Gem::Version
|
169
|
+
version: '0.2'
|
170
|
+
- - ">="
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: 0.2.16
|
173
|
+
- !ruby/object:Gem::Dependency
|
174
|
+
name: autotest-fsevent
|
175
|
+
requirement: !ruby/object:Gem::Requirement
|
176
|
+
requirements:
|
177
|
+
- - "~>"
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: '0.2'
|
180
|
+
- - ">="
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: 0.2.12
|
183
|
+
type: :development
|
184
|
+
prerelease: false
|
185
|
+
version_requirements: !ruby/object:Gem::Requirement
|
186
|
+
requirements:
|
187
|
+
- - "~>"
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '0.2'
|
190
|
+
- - ">="
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
version: 0.2.12
|
193
|
+
description: This libraries allows sending messages to various channels such as WhatsApp,
|
194
|
+
Viber and SMS with fallback to backup channels in case of failure.
|
195
|
+
email:
|
196
|
+
- messente@messente.com
|
197
|
+
executables: []
|
198
|
+
extensions: []
|
199
|
+
extra_rdoc_files: []
|
200
|
+
files:
|
201
|
+
- Gemfile
|
202
|
+
- Gemfile.lock
|
203
|
+
- README.md
|
204
|
+
- Rakefile
|
205
|
+
- config.json
|
206
|
+
- docs/Channel.md
|
207
|
+
- docs/DeliveryReportApi.md
|
208
|
+
- docs/DeliveryReportResponse.md
|
209
|
+
- docs/DeliveryResult.md
|
210
|
+
- docs/Err.md
|
211
|
+
- docs/ErrorItem.md
|
212
|
+
- docs/ErrorResponse.md
|
213
|
+
- docs/Message.md
|
214
|
+
- docs/MessageResult.md
|
215
|
+
- docs/OmniMessageCreateSuccessResponse.md
|
216
|
+
- docs/Omnimessage.md
|
217
|
+
- docs/OmnimessageApi.md
|
218
|
+
- docs/ResponseErrorCode.md
|
219
|
+
- docs/ResponseErrorTitle.md
|
220
|
+
- docs/SMS.md
|
221
|
+
- docs/Status.md
|
222
|
+
- docs/Viber.md
|
223
|
+
- docs/WhatsApp.md
|
224
|
+
- docs/WhatsAppAudio.md
|
225
|
+
- docs/WhatsAppDocument.md
|
226
|
+
- docs/WhatsAppImage.md
|
227
|
+
- docs/WhatsAppText.md
|
228
|
+
- git_push.sh
|
229
|
+
- lib/omnichannel.rb
|
230
|
+
- lib/omnichannel/api/delivery_report_api.rb
|
231
|
+
- lib/omnichannel/api/omnimessage_api.rb
|
232
|
+
- lib/omnichannel/api_client.rb
|
233
|
+
- lib/omnichannel/api_error.rb
|
234
|
+
- lib/omnichannel/configuration.rb
|
235
|
+
- lib/omnichannel/models/channel.rb
|
236
|
+
- lib/omnichannel/models/delivery_report_response.rb
|
237
|
+
- lib/omnichannel/models/delivery_result.rb
|
238
|
+
- lib/omnichannel/models/err.rb
|
239
|
+
- lib/omnichannel/models/error_item.rb
|
240
|
+
- lib/omnichannel/models/error_response.rb
|
241
|
+
- lib/omnichannel/models/message.rb
|
242
|
+
- lib/omnichannel/models/message_result.rb
|
243
|
+
- lib/omnichannel/models/omni_message_create_success_response.rb
|
244
|
+
- lib/omnichannel/models/omnimessage.rb
|
245
|
+
- lib/omnichannel/models/response_error_code.rb
|
246
|
+
- lib/omnichannel/models/response_error_title.rb
|
247
|
+
- lib/omnichannel/models/sms.rb
|
248
|
+
- lib/omnichannel/models/status.rb
|
249
|
+
- lib/omnichannel/models/viber.rb
|
250
|
+
- lib/omnichannel/models/whats_app.rb
|
251
|
+
- lib/omnichannel/models/whats_app_audio.rb
|
252
|
+
- lib/omnichannel/models/whats_app_document.rb
|
253
|
+
- lib/omnichannel/models/whats_app_image.rb
|
254
|
+
- lib/omnichannel/models/whats_app_text.rb
|
255
|
+
- lib/omnichannel/version.rb
|
256
|
+
- lib/openapi_client.rb
|
257
|
+
- lib/openapi_client/api/delivery_report_api.rb
|
258
|
+
- lib/openapi_client/api/omnimessage_api.rb
|
259
|
+
- lib/openapi_client/api_client.rb
|
260
|
+
- lib/openapi_client/api_error.rb
|
261
|
+
- lib/openapi_client/configuration.rb
|
262
|
+
- lib/openapi_client/models/channel.rb
|
263
|
+
- lib/openapi_client/models/delivery_report_response.rb
|
264
|
+
- lib/openapi_client/models/delivery_result.rb
|
265
|
+
- lib/openapi_client/models/err.rb
|
266
|
+
- lib/openapi_client/models/error_item.rb
|
267
|
+
- lib/openapi_client/models/error_response.rb
|
268
|
+
- lib/openapi_client/models/message.rb
|
269
|
+
- lib/openapi_client/models/message_result.rb
|
270
|
+
- lib/openapi_client/models/omni_message_create_success_response.rb
|
271
|
+
- lib/openapi_client/models/omnimessage.rb
|
272
|
+
- lib/openapi_client/models/response_error_code.rb
|
273
|
+
- lib/openapi_client/models/response_error_title.rb
|
274
|
+
- lib/openapi_client/models/sms.rb
|
275
|
+
- lib/openapi_client/models/status.rb
|
276
|
+
- lib/openapi_client/models/viber.rb
|
277
|
+
- lib/openapi_client/models/whats_app.rb
|
278
|
+
- lib/openapi_client/models/whats_app_audio.rb
|
279
|
+
- lib/openapi_client/models/whats_app_document.rb
|
280
|
+
- lib/openapi_client/models/whats_app_image.rb
|
281
|
+
- lib/openapi_client/models/whats_app_text.rb
|
282
|
+
- lib/openapi_client/version.rb
|
283
|
+
- omnichannel.gemspec
|
284
|
+
- spec/api/delivery_report_api_spec.rb
|
285
|
+
- spec/api/omnimessage_api_spec.rb
|
286
|
+
- spec/api_client_spec.rb
|
287
|
+
- spec/configuration_spec.rb
|
288
|
+
- spec/models/channel_spec.rb
|
289
|
+
- spec/models/delivery_report_response_spec.rb
|
290
|
+
- spec/models/delivery_result_spec.rb
|
291
|
+
- spec/models/err_spec.rb
|
292
|
+
- spec/models/error_item_spec.rb
|
293
|
+
- spec/models/error_response_spec.rb
|
294
|
+
- spec/models/message_result_spec.rb
|
295
|
+
- spec/models/message_spec.rb
|
296
|
+
- spec/models/omni_message_create_success_response_spec.rb
|
297
|
+
- spec/models/omnimessage_spec.rb
|
298
|
+
- spec/models/response_error_code_spec.rb
|
299
|
+
- spec/models/response_error_title_spec.rb
|
300
|
+
- spec/models/sms_spec.rb
|
301
|
+
- spec/models/status_spec.rb
|
302
|
+
- spec/models/viber_spec.rb
|
303
|
+
- spec/models/whats_app_audio_spec.rb
|
304
|
+
- spec/models/whats_app_document_spec.rb
|
305
|
+
- spec/models/whats_app_image_spec.rb
|
306
|
+
- spec/models/whats_app_spec.rb
|
307
|
+
- spec/models/whats_app_text_spec.rb
|
308
|
+
- spec/spec_helper.rb
|
309
|
+
- templates/README.mustache
|
310
|
+
homepage: https://openapi-generator.tech
|
311
|
+
licenses:
|
312
|
+
- Apache 2.0
|
313
|
+
metadata: {}
|
314
|
+
post_install_message:
|
315
|
+
rdoc_options: []
|
316
|
+
require_paths:
|
317
|
+
- lib
|
318
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
319
|
+
requirements:
|
320
|
+
- - ">="
|
321
|
+
- !ruby/object:Gem::Version
|
322
|
+
version: '1.9'
|
323
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
324
|
+
requirements:
|
325
|
+
- - ">="
|
326
|
+
- !ruby/object:Gem::Version
|
327
|
+
version: '0'
|
328
|
+
requirements: []
|
329
|
+
rubygems_version: 3.0.1
|
330
|
+
signing_key:
|
331
|
+
specification_version: 4
|
332
|
+
summary: Ruby library for Messente Omnichannel API
|
333
|
+
test_files:
|
334
|
+
- spec/api/delivery_report_api_spec.rb
|
335
|
+
- spec/api/omnimessage_api_spec.rb
|
336
|
+
- spec/api_client_spec.rb
|
337
|
+
- spec/configuration_spec.rb
|
338
|
+
- spec/models/whats_app_spec.rb
|
339
|
+
- spec/models/omnimessage_spec.rb
|
340
|
+
- spec/models/sms_spec.rb
|
341
|
+
- spec/models/whats_app_audio_spec.rb
|
342
|
+
- spec/models/message_result_spec.rb
|
343
|
+
- spec/models/whats_app_image_spec.rb
|
344
|
+
- spec/models/channel_spec.rb
|
345
|
+
- spec/models/response_error_code_spec.rb
|
346
|
+
- spec/models/response_error_title_spec.rb
|
347
|
+
- spec/models/status_spec.rb
|
348
|
+
- spec/models/viber_spec.rb
|
349
|
+
- spec/models/whats_app_document_spec.rb
|
350
|
+
- spec/models/whats_app_text_spec.rb
|
351
|
+
- spec/models/message_spec.rb
|
352
|
+
- spec/models/omni_message_create_success_response_spec.rb
|
353
|
+
- spec/models/error_response_spec.rb
|
354
|
+
- spec/models/error_item_spec.rb
|
355
|
+
- spec/models/err_spec.rb
|
356
|
+
- spec/models/delivery_result_spec.rb
|
357
|
+
- spec/models/delivery_report_response_spec.rb
|
358
|
+
- spec/spec_helper.rb
|