dyspatch_client 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/LICENSE +202 -0
- data/README.md +130 -0
- data/Rakefile +8 -0
- data/docs/APIError.md +10 -0
- data/docs/CompiledRead.md +12 -0
- data/docs/CreatedAt.md +7 -0
- data/docs/Cursor.md +9 -0
- data/docs/LanguageId.md +7 -0
- data/docs/LocalizationId.md +7 -0
- data/docs/LocalizationMetaRead.md +11 -0
- data/docs/LocalizationName.md +7 -0
- data/docs/LocalizationRead.md +15 -0
- data/docs/LocalizationUrl.md +7 -0
- data/docs/LocalizationsApi.md +66 -0
- data/docs/TemplateDescription.md +7 -0
- data/docs/TemplateId.md +7 -0
- data/docs/TemplateMetaRead.md +14 -0
- data/docs/TemplateName.md +7 -0
- data/docs/TemplateRead.md +15 -0
- data/docs/TemplateUrl.md +7 -0
- data/docs/TemplatesApi.md +125 -0
- data/docs/TemplatesRead.md +9 -0
- data/docs/UpdatedAt.md +7 -0
- data/dyspatch_client.gemspec +45 -0
- data/git_push.sh +55 -0
- data/lib/dyspatch_client.rb +59 -0
- data/lib/dyspatch_client/api/localizations_api.rb +83 -0
- data/lib/dyspatch_client/api/templates_api.rb +140 -0
- data/lib/dyspatch_client/api_client.rb +389 -0
- data/lib/dyspatch_client/api_error.rb +38 -0
- data/lib/dyspatch_client/configuration.rb +209 -0
- data/lib/dyspatch_client/models/api_error.rb +242 -0
- data/lib/dyspatch_client/models/compiled_read.rb +277 -0
- data/lib/dyspatch_client/models/created_at.rb +179 -0
- data/lib/dyspatch_client/models/cursor.rb +199 -0
- data/lib/dyspatch_client/models/language_id.rb +179 -0
- data/lib/dyspatch_client/models/localization_id.rb +179 -0
- data/lib/dyspatch_client/models/localization_meta_read.rb +219 -0
- data/lib/dyspatch_client/models/localization_name.rb +179 -0
- data/lib/dyspatch_client/models/localization_read.rb +258 -0
- data/lib/dyspatch_client/models/localization_url.rb +179 -0
- data/lib/dyspatch_client/models/template_description.rb +179 -0
- data/lib/dyspatch_client/models/template_id.rb +179 -0
- data/lib/dyspatch_client/models/template_meta_read.rb +251 -0
- data/lib/dyspatch_client/models/template_name.rb +179 -0
- data/lib/dyspatch_client/models/template_read.rb +260 -0
- data/lib/dyspatch_client/models/template_url.rb +179 -0
- data/lib/dyspatch_client/models/templates_read.rb +200 -0
- data/lib/dyspatch_client/models/updated_at.rb +179 -0
- data/lib/dyspatch_client/version.rb +15 -0
- data/spec/api/localizations_api_spec.rb +48 -0
- data/spec/api/templates_api_spec.rb +61 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/api_error_spec.rb +58 -0
- data/spec/models/compiled_read_spec.rb +66 -0
- data/spec/models/created_at_spec.rb +36 -0
- data/spec/models/cursor_spec.rb +48 -0
- data/spec/models/language_id_spec.rb +36 -0
- data/spec/models/localization_id_spec.rb +36 -0
- data/spec/models/localization_meta_read_spec.rb +60 -0
- data/spec/models/localization_name_spec.rb +36 -0
- data/spec/models/localization_read_spec.rb +84 -0
- data/spec/models/localization_url_spec.rb +36 -0
- data/spec/models/template_description_spec.rb +36 -0
- data/spec/models/template_id_spec.rb +36 -0
- data/spec/models/template_meta_read_spec.rb +78 -0
- data/spec/models/template_name_spec.rb +36 -0
- data/spec/models/template_read_spec.rb +84 -0
- data/spec/models/template_url_spec.rb +36 -0
- data/spec/models/templates_read_spec.rb +48 -0
- data/spec/models/updated_at_spec.rb +36 -0
- data/spec/spec_helper.rb +111 -0
- metadata +329 -0
@@ -0,0 +1,15 @@
|
|
1
|
+
# DyspatchClient::LocalizationRead
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | An opaque, unique identifier for a localization | [optional]
|
7
|
+
**language** | **String** | A language identifier comprised of a language and a country identifier. See [supported languages](https://docs.dyspatch.io/localization/supported_languages/). | [optional]
|
8
|
+
**url** | **String** | The API url for a specific localization | [optional]
|
9
|
+
**template** | **String** | An opaque, unique identifier for a template | [optional]
|
10
|
+
**compiled** | [**CompiledRead**](CompiledRead.md) | | [optional]
|
11
|
+
**created_at** | **DateTime** | The time of initial creation | [optional]
|
12
|
+
**updated_at** | **DateTime** | The time of last update | [optional]
|
13
|
+
**name** | **String** | The user-specified name of a localization | [optional]
|
14
|
+
|
15
|
+
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# DyspatchClient::LocalizationsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.dyspatch.io*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**localizations_localization_id_get**](LocalizationsApi.md#localizations_localization_id_get) | **GET** /localizations/{localizationId} | Get Localization Object by ID
|
8
|
+
|
9
|
+
|
10
|
+
# **localizations_localization_id_get**
|
11
|
+
> LocalizationRead localizations_localization_id_get(localization_id, accept)
|
12
|
+
|
13
|
+
Get Localization Object by ID
|
14
|
+
|
15
|
+
Returns a specific localization object with a matching ID
|
16
|
+
|
17
|
+
### Example
|
18
|
+
```ruby
|
19
|
+
# load the gem
|
20
|
+
require 'dyspatch_client'
|
21
|
+
# setup authorization
|
22
|
+
DyspatchClient.configure do |config|
|
23
|
+
# Configure API key authorization: Bearer
|
24
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
25
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
26
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
27
|
+
end
|
28
|
+
|
29
|
+
api_instance = DyspatchClient::LocalizationsApi.new
|
30
|
+
|
31
|
+
localization_id = "localization_id_example" # String | A localization ID
|
32
|
+
|
33
|
+
accept = "accept_example" # String | A version of the API that should be used for the request. For example, to use version \"2018.08\", set the value to \"application/vnd.dyspatch.2018.08+json\"
|
34
|
+
|
35
|
+
|
36
|
+
begin
|
37
|
+
#Get Localization Object by ID
|
38
|
+
result = api_instance.localizations_localization_id_get(localization_id, accept)
|
39
|
+
p result
|
40
|
+
rescue DyspatchClient::ApiError => e
|
41
|
+
puts "Exception when calling LocalizationsApi->localizations_localization_id_get: #{e}"
|
42
|
+
end
|
43
|
+
```
|
44
|
+
|
45
|
+
### Parameters
|
46
|
+
|
47
|
+
Name | Type | Description | Notes
|
48
|
+
------------- | ------------- | ------------- | -------------
|
49
|
+
**localization_id** | **String**| A localization ID |
|
50
|
+
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \"2018.08\", set the value to \"application/vnd.dyspatch.2018.08+json\" |
|
51
|
+
|
52
|
+
### Return type
|
53
|
+
|
54
|
+
[**LocalizationRead**](LocalizationRead.md)
|
55
|
+
|
56
|
+
### Authorization
|
57
|
+
|
58
|
+
[Bearer](../README.md#Bearer)
|
59
|
+
|
60
|
+
### HTTP request headers
|
61
|
+
|
62
|
+
- **Content-Type**: Not defined
|
63
|
+
- **Accept**: application/vnd.dyspatch.2018.08+json
|
64
|
+
|
65
|
+
|
66
|
+
|
data/docs/TemplateId.md
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
# DyspatchClient::TemplateMetaRead
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | An opaque, unique identifier for a template | [optional]
|
7
|
+
**name** | **String** | The name of a template | [optional]
|
8
|
+
**description** | **String** | A description of the template | [optional]
|
9
|
+
**url** | **String** | The API url for a specific template | [optional]
|
10
|
+
**localizations** | [**Array<LocalizationMetaRead>**](LocalizationMetaRead.md) | A list of the template's available localization objects | [optional]
|
11
|
+
**created_at** | **DateTime** | The time of initial creation | [optional]
|
12
|
+
**updated_at** | **DateTime** | The time of last update | [optional]
|
13
|
+
|
14
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# DyspatchClient::TemplateRead
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | An opaque, unique identifier for a template | [optional]
|
7
|
+
**name** | **String** | The name of a template | [optional]
|
8
|
+
**description** | **String** | A description of the template | [optional]
|
9
|
+
**url** | **String** | The API url for a specific template | [optional]
|
10
|
+
**compiled** | [**CompiledRead**](CompiledRead.md) | | [optional]
|
11
|
+
**created_at** | **DateTime** | The time of initial creation | [optional]
|
12
|
+
**updated_at** | **DateTime** | The time of last update | [optional]
|
13
|
+
**localizations** | [**Array<LocalizationMetaRead>**](LocalizationMetaRead.md) | A list of the Template's available localizations | [optional]
|
14
|
+
|
15
|
+
|
data/docs/TemplateUrl.md
ADDED
@@ -0,0 +1,125 @@
|
|
1
|
+
# DyspatchClient::TemplatesApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.dyspatch.io*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**templates_get**](TemplatesApi.md#templates_get) | **GET** /templates | List Templates
|
8
|
+
[**templates_template_id_get**](TemplatesApi.md#templates_template_id_get) | **GET** /templates/{templateId} | Get Template by ID
|
9
|
+
|
10
|
+
|
11
|
+
# **templates_get**
|
12
|
+
> TemplatesRead templates_get(accept, opts)
|
13
|
+
|
14
|
+
List Templates
|
15
|
+
|
16
|
+
Gets a list of Template Metadata objects for all templates. Up to 25 results returned before results are paginated.
|
17
|
+
|
18
|
+
### Example
|
19
|
+
```ruby
|
20
|
+
# load the gem
|
21
|
+
require 'dyspatch_client'
|
22
|
+
# setup authorization
|
23
|
+
DyspatchClient.configure do |config|
|
24
|
+
# Configure API key authorization: Bearer
|
25
|
+
config.api_key['Authorization'] = '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['Authorization'] = 'Bearer'
|
28
|
+
end
|
29
|
+
|
30
|
+
api_instance = DyspatchClient::TemplatesApi.new
|
31
|
+
|
32
|
+
accept = "accept_example" # String | A version of the API that should be used for the request. For example, to use version \"2018.08\", set the value to \"application/vnd.dyspatch.2018.08+json\"
|
33
|
+
|
34
|
+
opts = {
|
35
|
+
cursor: "cursor_example" # String | A cursor value used to retrieve a specific page from a paginated result set.
|
36
|
+
}
|
37
|
+
|
38
|
+
begin
|
39
|
+
#List Templates
|
40
|
+
result = api_instance.templates_get(accept, opts)
|
41
|
+
p result
|
42
|
+
rescue DyspatchClient::ApiError => e
|
43
|
+
puts "Exception when calling TemplatesApi->templates_get: #{e}"
|
44
|
+
end
|
45
|
+
```
|
46
|
+
|
47
|
+
### Parameters
|
48
|
+
|
49
|
+
Name | Type | Description | Notes
|
50
|
+
------------- | ------------- | ------------- | -------------
|
51
|
+
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \"2018.08\", set the value to \"application/vnd.dyspatch.2018.08+json\" |
|
52
|
+
**cursor** | **String**| A cursor value used to retrieve a specific page from a paginated result set. | [optional]
|
53
|
+
|
54
|
+
### Return type
|
55
|
+
|
56
|
+
[**TemplatesRead**](TemplatesRead.md)
|
57
|
+
|
58
|
+
### Authorization
|
59
|
+
|
60
|
+
[Bearer](../README.md#Bearer)
|
61
|
+
|
62
|
+
### HTTP request headers
|
63
|
+
|
64
|
+
- **Content-Type**: Not defined
|
65
|
+
- **Accept**: application/vnd.dyspatch.2018.08+json
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
# **templates_template_id_get**
|
70
|
+
> TemplateRead templates_template_id_get(template_id, accept)
|
71
|
+
|
72
|
+
Get Template by ID
|
73
|
+
|
74
|
+
Gets a template object with the matching ID. If the template has published content the \"compiled\" field will contain the template .
|
75
|
+
|
76
|
+
### Example
|
77
|
+
```ruby
|
78
|
+
# load the gem
|
79
|
+
require 'dyspatch_client'
|
80
|
+
# setup authorization
|
81
|
+
DyspatchClient.configure do |config|
|
82
|
+
# Configure API key authorization: Bearer
|
83
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
84
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
85
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
86
|
+
end
|
87
|
+
|
88
|
+
api_instance = DyspatchClient::TemplatesApi.new
|
89
|
+
|
90
|
+
template_id = "template_id_example" # String | A template ID
|
91
|
+
|
92
|
+
accept = "accept_example" # String | A version of the API that should be used for the request. For example, to use version \"2018.08\", set the value to \"application/vnd.dyspatch.2018.08+json\"
|
93
|
+
|
94
|
+
|
95
|
+
begin
|
96
|
+
#Get Template by ID
|
97
|
+
result = api_instance.templates_template_id_get(template_id, accept)
|
98
|
+
p result
|
99
|
+
rescue DyspatchClient::ApiError => e
|
100
|
+
puts "Exception when calling TemplatesApi->templates_template_id_get: #{e}"
|
101
|
+
end
|
102
|
+
```
|
103
|
+
|
104
|
+
### Parameters
|
105
|
+
|
106
|
+
Name | Type | Description | Notes
|
107
|
+
------------- | ------------- | ------------- | -------------
|
108
|
+
**template_id** | **String**| A template ID |
|
109
|
+
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \"2018.08\", set the value to \"application/vnd.dyspatch.2018.08+json\" |
|
110
|
+
|
111
|
+
### Return type
|
112
|
+
|
113
|
+
[**TemplateRead**](TemplateRead.md)
|
114
|
+
|
115
|
+
### Authorization
|
116
|
+
|
117
|
+
[Bearer](../README.md#Bearer)
|
118
|
+
|
119
|
+
### HTTP request headers
|
120
|
+
|
121
|
+
- **Content-Type**: Not defined
|
122
|
+
- **Accept**: application/vnd.dyspatch.2018.08+json
|
123
|
+
|
124
|
+
|
125
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# DyspatchClient::TemplatesRead
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**cursor** | [**Cursor**](Cursor.md) | | [optional]
|
7
|
+
**data** | [**Array<TemplateMetaRead>**](TemplateMetaRead.md) | A list of template metadata objects | [optional]
|
8
|
+
|
9
|
+
|
data/docs/UpdatedAt.md
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
#
|
3
|
+
=begin
|
4
|
+
#Dyspatch API
|
5
|
+
|
6
|
+
## Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. ## API Client Libraries Dyspatch provides API Clients for popular languages and web frameworks. - [Java](https://github.com/getdyspatch/dyspatch-java) - [Javascript](https://github.com/getdyspatch/dyspatch-javascript) - [Python](https://github.com/getdyspatch/dyspatch-python)
|
7
|
+
|
8
|
+
OpenAPI spec version: 2018.08
|
9
|
+
Contact: support@dyspatch.io
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
11
|
+
Swagger Codegen version: 2.3.1
|
12
|
+
|
13
|
+
=end
|
14
|
+
|
15
|
+
$:.push File.expand_path("../lib", __FILE__)
|
16
|
+
require "dyspatch_client/version"
|
17
|
+
|
18
|
+
Gem::Specification.new do |s|
|
19
|
+
s.name = "dyspatch_client"
|
20
|
+
s.version = DyspatchClient::VERSION
|
21
|
+
s.platform = Gem::Platform::RUBY
|
22
|
+
s.authors = ["Dyspatch"]
|
23
|
+
s.email = ["support@dyspatch.io"]
|
24
|
+
s.homepage = "https://www.dyspatch.io"
|
25
|
+
s.summary = "Dyspatch is an email production platform that helps Enterprise organizations create and change transactional and triggered emails faster. See https://www.dyspatch.io for more information."
|
26
|
+
s.description = "# Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. ## API Client Libraries Dyspatch provides API Clients for popular languages and web frameworks. - [Java](https://github.com/getdyspatch/dyspatch-java) - [Javascript](https://github.com/getdyspatch/dyspatch-javascript) - [Python](https://github.com/getdyspatch/dyspatch-python) "
|
27
|
+
s.license = "Apache-2.0"
|
28
|
+
s.required_ruby_version = ">= 1.9"
|
29
|
+
|
30
|
+
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
31
|
+
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
32
|
+
|
33
|
+
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
34
|
+
s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
|
35
|
+
s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
|
36
|
+
s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
|
37
|
+
s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
|
38
|
+
s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
|
39
|
+
s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
|
40
|
+
|
41
|
+
s.files = `find *`.split("\n").uniq.sort.select{|f| !f.empty? }
|
42
|
+
s.test_files = `find spec/*`.split("\n")
|
43
|
+
s.executables = []
|
44
|
+
s.require_paths = ["lib"]
|
45
|
+
end
|
data/git_push.sh
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
#
|
3
|
+
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
4
|
+
#
|
5
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
6
|
+
#
|
7
|
+
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
|
8
|
+
|
9
|
+
git_user_id=$1
|
10
|
+
git_repo_id=$2
|
11
|
+
release_note=$3
|
12
|
+
|
13
|
+
if [ "$git_user_id" = "" ]; then
|
14
|
+
git_user_id="GIT_USER_ID"
|
15
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
16
|
+
fi
|
17
|
+
|
18
|
+
if [ "$git_repo_id" = "" ]; then
|
19
|
+
git_repo_id="GIT_REPO_ID"
|
20
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
21
|
+
fi
|
22
|
+
|
23
|
+
if [ "$release_note" = "" ]; then
|
24
|
+
release_note="Minor update"
|
25
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
26
|
+
fi
|
27
|
+
|
28
|
+
# Initialize the local directory as a Git repository
|
29
|
+
git init
|
30
|
+
|
31
|
+
# Adds the files in the local repository and stages them for commit.
|
32
|
+
git add .
|
33
|
+
|
34
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
35
|
+
git commit -m "$release_note"
|
36
|
+
|
37
|
+
# Sets the new remote
|
38
|
+
git_remote=`git remote`
|
39
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
40
|
+
|
41
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
42
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
43
|
+
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
|
44
|
+
else
|
45
|
+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
|
46
|
+
fi
|
47
|
+
|
48
|
+
fi
|
49
|
+
|
50
|
+
git pull origin master
|
51
|
+
|
52
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
53
|
+
echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
|
54
|
+
git push origin master 2>&1 | grep -v 'To https'
|
55
|
+
|
@@ -0,0 +1,59 @@
|
|
1
|
+
=begin
|
2
|
+
#Dyspatch API
|
3
|
+
|
4
|
+
## Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. ## API Client Libraries Dyspatch provides API Clients for popular languages and web frameworks. - [Java](https://github.com/getdyspatch/dyspatch-java) - [Javascript](https://github.com/getdyspatch/dyspatch-javascript) - [Python](https://github.com/getdyspatch/dyspatch-python)
|
5
|
+
|
6
|
+
OpenAPI spec version: 2018.08
|
7
|
+
Contact: support@dyspatch.io
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
# Common files
|
14
|
+
require 'dyspatch_client/api_client'
|
15
|
+
require 'dyspatch_client/api_error'
|
16
|
+
require 'dyspatch_client/version'
|
17
|
+
require 'dyspatch_client/configuration'
|
18
|
+
|
19
|
+
# Models
|
20
|
+
require 'dyspatch_client/models/api_error'
|
21
|
+
require 'dyspatch_client/models/compiled_read'
|
22
|
+
require 'dyspatch_client/models/created_at'
|
23
|
+
require 'dyspatch_client/models/cursor'
|
24
|
+
require 'dyspatch_client/models/language_id'
|
25
|
+
require 'dyspatch_client/models/localization_id'
|
26
|
+
require 'dyspatch_client/models/localization_meta_read'
|
27
|
+
require 'dyspatch_client/models/localization_name'
|
28
|
+
require 'dyspatch_client/models/localization_read'
|
29
|
+
require 'dyspatch_client/models/localization_url'
|
30
|
+
require 'dyspatch_client/models/template_description'
|
31
|
+
require 'dyspatch_client/models/template_id'
|
32
|
+
require 'dyspatch_client/models/template_meta_read'
|
33
|
+
require 'dyspatch_client/models/template_name'
|
34
|
+
require 'dyspatch_client/models/template_read'
|
35
|
+
require 'dyspatch_client/models/template_url'
|
36
|
+
require 'dyspatch_client/models/templates_read'
|
37
|
+
require 'dyspatch_client/models/updated_at'
|
38
|
+
|
39
|
+
# APIs
|
40
|
+
require 'dyspatch_client/api/localizations_api'
|
41
|
+
require 'dyspatch_client/api/templates_api'
|
42
|
+
|
43
|
+
module DyspatchClient
|
44
|
+
class << self
|
45
|
+
# Customize default settings for the SDK using block.
|
46
|
+
# DyspatchClient.configure do |config|
|
47
|
+
# config.username = "xxx"
|
48
|
+
# config.password = "xxx"
|
49
|
+
# end
|
50
|
+
# If no block given, return the default Configuration object.
|
51
|
+
def configure
|
52
|
+
if block_given?
|
53
|
+
yield(Configuration.default)
|
54
|
+
else
|
55
|
+
Configuration.default
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|