dyspatch_client 3.0.1 → 4.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 +4 -4
- data/Gemfile +2 -0
- data/README.md +35 -41
- data/Rakefile +2 -0
- data/docs/APIError.md +13 -2
- data/docs/CompiledRead.md +13 -0
- data/docs/Cursor.md +11 -1
- data/docs/DraftMetaRead.md +15 -0
- data/docs/DraftRead.md +17 -1
- data/docs/DraftsApi.md +140 -133
- data/docs/DraftsRead.md +11 -1
- data/docs/{Body.md → InlineObject.md} +10 -1
- data/docs/LocalizationKeyRead.md +10 -0
- data/docs/LocalizationMetaRead.md +14 -3
- data/docs/LocalizationRead.md +17 -1
- data/docs/LocalizationsApi.md +14 -13
- data/docs/TemplateMetaRead.md +16 -1
- data/docs/TemplateRead.md +17 -1
- data/docs/TemplatesApi.md +40 -36
- data/docs/TemplatesRead.md +11 -1
- data/dyspatch_client.gemspec +5 -11
- data/lib/dyspatch_client.rb +5 -19
- data/lib/dyspatch_client/api/drafts_api.rb +372 -236
- data/lib/dyspatch_client/api/localizations_api.rb +47 -30
- data/lib/dyspatch_client/api/templates_api.rb +98 -64
- data/lib/dyspatch_client/api_client.rb +40 -43
- data/lib/dyspatch_client/api_error.rb +23 -4
- data/lib/dyspatch_client/configuration.rb +48 -9
- data/lib/dyspatch_client/models/api_error.rb +46 -22
- data/lib/dyspatch_client/models/compiled_read.rb +45 -66
- data/lib/dyspatch_client/models/cursor.rb +43 -20
- data/lib/dyspatch_client/models/draft_meta_read.rb +49 -25
- data/lib/dyspatch_client/models/draft_read.rb +49 -25
- data/lib/dyspatch_client/models/drafts_read.rb +41 -17
- data/lib/dyspatch_client/models/{body.rb → inline_object.rb} +40 -17
- data/lib/dyspatch_client/models/localization_key_read.rb +41 -17
- data/lib/dyspatch_client/models/localization_meta_read.rb +53 -39
- data/lib/dyspatch_client/models/localization_read.rb +50 -26
- data/lib/dyspatch_client/models/template_meta_read.rb +48 -24
- data/lib/dyspatch_client/models/template_read.rb +49 -25
- data/lib/dyspatch_client/models/templates_read.rb +41 -17
- data/lib/dyspatch_client/version.rb +5 -5
- data/spec/api/drafts_api_spec.rb +61 -53
- data/spec/api/localizations_api_spec.rb +11 -10
- data/spec/api/templates_api_spec.rb +22 -20
- data/spec/api_client_spec.rb +5 -5
- data/spec/configuration_spec.rb +12 -14
- data/spec/integration_spec.rb +41 -0
- data/spec/models/api_error_spec.rb +6 -6
- data/spec/models/compiled_read_spec.rb +5 -5
- data/spec/models/cursor_spec.rb +5 -5
- data/spec/models/draft_meta_read_spec.rb +5 -5
- data/spec/models/draft_read_spec.rb +5 -5
- data/spec/models/drafts_read_spec.rb +5 -5
- data/spec/models/inline_object_spec.rb +41 -0
- data/spec/models/localization_key_read_spec.rb +5 -5
- data/spec/models/localization_meta_read_spec.rb +6 -12
- data/spec/models/localization_read_spec.rb +5 -5
- data/spec/models/template_meta_read_spec.rb +5 -5
- data/spec/models/template_read_spec.rb +5 -5
- data/spec/models/templates_read_spec.rb +5 -5
- data/spec/spec_helper.rb +4 -4
- metadata +15 -190
- data/docs/CreatedAt.md +0 -7
- data/docs/DraftDescription.md +0 -7
- data/docs/DraftId.md +0 -7
- data/docs/DraftName.md +0 -7
- data/docs/DraftUrl.md +0 -7
- data/docs/LanguageId.md +0 -7
- data/docs/LocalizationId.md +0 -7
- data/docs/LocalizationName.md +0 -7
- data/docs/LocalizationUrl.md +0 -7
- data/docs/TemplateDescription.md +0 -7
- data/docs/TemplateId.md +0 -7
- data/docs/TemplateName.md +0 -7
- data/docs/TemplateUrl.md +0 -7
- data/docs/UpdatedAt.md +0 -7
- data/git_push.sh +0 -55
- data/lib/dyspatch_client/models/created_at.rb +0 -175
- data/lib/dyspatch_client/models/draft_description.rb +0 -175
- data/lib/dyspatch_client/models/draft_id.rb +0 -175
- data/lib/dyspatch_client/models/draft_name.rb +0 -175
- data/lib/dyspatch_client/models/draft_url.rb +0 -175
- data/lib/dyspatch_client/models/language_id.rb +0 -175
- data/lib/dyspatch_client/models/localization_id.rb +0 -175
- data/lib/dyspatch_client/models/localization_name.rb +0 -175
- data/lib/dyspatch_client/models/localization_url.rb +0 -175
- data/lib/dyspatch_client/models/template_description.rb +0 -175
- data/lib/dyspatch_client/models/template_id.rb +0 -175
- data/lib/dyspatch_client/models/template_name.rb +0 -175
- data/lib/dyspatch_client/models/template_url.rb +0 -175
- data/lib/dyspatch_client/models/updated_at.rb +0 -175
- data/spec/models/body_spec.rb +0 -41
- data/spec/models/created_at_spec.rb +0 -35
- data/spec/models/draft_description_spec.rb +0 -35
- data/spec/models/draft_id_spec.rb +0 -35
- data/spec/models/draft_name_spec.rb +0 -35
- data/spec/models/draft_url_spec.rb +0 -35
- data/spec/models/language_id_spec.rb +0 -35
- data/spec/models/localization_id_spec.rb +0 -35
- data/spec/models/localization_name_spec.rb +0 -35
- data/spec/models/localization_url_spec.rb +0 -35
- data/spec/models/template_description_spec.rb +0 -35
- data/spec/models/template_id_spec.rb +0 -35
- data/spec/models/template_name_spec.rb +0 -35
- data/spec/models/template_url_spec.rb +0 -35
- data/spec/models/updated_at_spec.rb +0 -35
data/docs/DraftsRead.md
CHANGED
@@ -1,9 +1,19 @@
|
|
1
1
|
# DyspatchClient::DraftsRead
|
2
2
|
|
3
3
|
## Properties
|
4
|
+
|
4
5
|
Name | Type | Description | Notes
|
5
6
|
------------ | ------------- | ------------- | -------------
|
6
7
|
**cursor** | [**Cursor**](Cursor.md) | | [optional]
|
7
|
-
**data** | [**Array
|
8
|
+
**data** | [**Array<DraftMetaRead>**](DraftMetaRead.md) | A list of draft metadata objects | [optional]
|
9
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'DyspatchClient'
|
14
|
+
|
15
|
+
instance = DyspatchClient::DraftsRead.new(cursor: null,
|
16
|
+
data: null)
|
17
|
+
```
|
8
18
|
|
9
19
|
|
@@ -1,8 +1,17 @@
|
|
1
|
-
# DyspatchClient::
|
1
|
+
# DyspatchClient::InlineObject
|
2
2
|
|
3
3
|
## Properties
|
4
|
+
|
4
5
|
Name | Type | Description | Notes
|
5
6
|
------------ | ------------- | ------------- | -------------
|
6
7
|
**name** | **String** | | [optional]
|
7
8
|
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'DyspatchClient'
|
13
|
+
|
14
|
+
instance = DyspatchClient::InlineObject.new(name: English (US))
|
15
|
+
```
|
16
|
+
|
8
17
|
|
data/docs/LocalizationKeyRead.md
CHANGED
@@ -1,9 +1,19 @@
|
|
1
1
|
# DyspatchClient::LocalizationKeyRead
|
2
2
|
|
3
3
|
## Properties
|
4
|
+
|
4
5
|
Name | Type | Description | Notes
|
5
6
|
------------ | ------------- | ------------- | -------------
|
6
7
|
**key** | **String** | | [optional]
|
7
8
|
**comment** | **String** | | [optional]
|
8
9
|
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'DyspatchClient'
|
14
|
+
|
15
|
+
instance = DyspatchClient::LocalizationKeyRead.new(key: null,
|
16
|
+
comment: null)
|
17
|
+
```
|
18
|
+
|
9
19
|
|
@@ -1,12 +1,23 @@
|
|
1
1
|
# DyspatchClient::LocalizationMetaRead
|
2
2
|
|
3
3
|
## Properties
|
4
|
+
|
4
5
|
Name | Type | Description | Notes
|
5
6
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**
|
7
|
-
**language** | **String** | A language identifier comprised of a language and a country identifier.
|
7
|
+
**localization** | **String** | An opaque, unique identifier for a localization | [optional]
|
8
|
+
**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
9
|
**name** | **String** | The user-specified name of a localization | [optional]
|
9
10
|
**url** | **String** | The API url for a specific localization | [optional]
|
10
|
-
|
11
|
+
|
12
|
+
## Code Sample
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'DyspatchClient'
|
16
|
+
|
17
|
+
instance = DyspatchClient::LocalizationMetaRead.new(localization: loc_g3L7Cw6Hp5wUaf395LehwK,
|
18
|
+
language: en-US,
|
19
|
+
name: English (US),
|
20
|
+
url: /localizations/loc_g3L7Cw6Hp5wUaf395LehwK)
|
21
|
+
```
|
11
22
|
|
12
23
|
|
data/docs/LocalizationRead.md
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
# DyspatchClient::LocalizationRead
|
2
2
|
|
3
3
|
## Properties
|
4
|
+
|
4
5
|
Name | Type | Description | Notes
|
5
6
|
------------ | ------------- | ------------- | -------------
|
6
7
|
**id** | **String** | An opaque, unique identifier for a localization | [optional]
|
7
|
-
**language** | **String** | A language identifier comprised of a language and a country identifier.
|
8
|
+
**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
9
|
**url** | **String** | The API url for a specific localization | [optional]
|
9
10
|
**template** | **String** | An opaque, unique identifier for a template | [optional]
|
10
11
|
**compiled** | [**CompiledRead**](CompiledRead.md) | | [optional]
|
@@ -12,4 +13,19 @@ Name | Type | Description | Notes
|
|
12
13
|
**updated_at** | **DateTime** | The time of last update | [optional]
|
13
14
|
**name** | **String** | The user-specified name of a localization | [optional]
|
14
15
|
|
16
|
+
## Code Sample
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
require 'DyspatchClient'
|
20
|
+
|
21
|
+
instance = DyspatchClient::LocalizationRead.new(id: loc_g3L7Cw6Hp5wUaf395LehwK,
|
22
|
+
language: en-US,
|
23
|
+
url: /localizations/loc_g3L7Cw6Hp5wUaf395LehwK,
|
24
|
+
template: tem_g3L7Cw6Hp5wU,
|
25
|
+
compiled: null,
|
26
|
+
created_at: null,
|
27
|
+
updated_at: null,
|
28
|
+
name: English (US))
|
29
|
+
```
|
30
|
+
|
15
31
|
|
data/docs/LocalizationsApi.md
CHANGED
@@ -4,17 +4,20 @@ All URIs are relative to *https://api.dyspatch.io*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**
|
7
|
+
[**get_localization_by_id**](LocalizationsApi.md#get_localization_by_id) | **GET** /localizations/{localizationId} | Get Localization Object by ID
|
8
8
|
|
9
9
|
|
10
|
-
|
11
|
-
|
10
|
+
|
11
|
+
## get_localization_by_id
|
12
|
+
|
13
|
+
> LocalizationRead get_localization_by_id(localization_id, target_language, accept)
|
12
14
|
|
13
15
|
Get Localization Object by ID
|
14
16
|
|
15
|
-
Returns a specific localization object with a matching ID
|
17
|
+
Returns a specific localization object with a matching ID
|
16
18
|
|
17
19
|
### Example
|
20
|
+
|
18
21
|
```ruby
|
19
22
|
# load the gem
|
20
23
|
require 'dyspatch_client'
|
@@ -27,27 +30,27 @@ DyspatchClient.configure do |config|
|
|
27
30
|
end
|
28
31
|
|
29
32
|
api_instance = DyspatchClient::LocalizationsApi.new
|
30
|
-
|
31
33
|
localization_id = 'localization_id_example' # String | A localization ID
|
32
|
-
|
33
34
|
target_language = 'target_language_example' # String | The type of templating language to compile as. Should only be used for visual templates.
|
34
|
-
|
35
|
+
accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2019.10\", set the value to \"application/vnd.dyspatch.2019.10+json\"
|
35
36
|
|
36
37
|
begin
|
37
38
|
#Get Localization Object by ID
|
38
|
-
result = api_instance.
|
39
|
+
result = api_instance.get_localization_by_id(localization_id, target_language, accept)
|
39
40
|
p result
|
40
41
|
rescue DyspatchClient::ApiError => e
|
41
|
-
puts "Exception when calling LocalizationsApi->
|
42
|
+
puts "Exception when calling LocalizationsApi->get_localization_by_id: #{e}"
|
42
43
|
end
|
43
44
|
```
|
44
45
|
|
45
46
|
### Parameters
|
46
47
|
|
48
|
+
|
47
49
|
Name | Type | Description | Notes
|
48
50
|
------------- | ------------- | ------------- | -------------
|
49
51
|
**localization_id** | **String**| A localization ID |
|
50
52
|
**target_language** | **String**| The type of templating language to compile as. Should only be used for visual templates. |
|
53
|
+
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \"2019.10\", set the value to \"application/vnd.dyspatch.2019.10+json\" |
|
51
54
|
|
52
55
|
### Return type
|
53
56
|
|
@@ -59,8 +62,6 @@ Name | Type | Description | Notes
|
|
59
62
|
|
60
63
|
### HTTP request headers
|
61
64
|
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
65
|
+
- **Content-Type**: Not defined
|
66
|
+
- **Accept**: application/vnd.dyspatch.2019.10+json, */*
|
66
67
|
|
data/docs/TemplateMetaRead.md
CHANGED
@@ -1,14 +1,29 @@
|
|
1
1
|
# DyspatchClient::TemplateMetaRead
|
2
2
|
|
3
3
|
## Properties
|
4
|
+
|
4
5
|
Name | Type | Description | Notes
|
5
6
|
------------ | ------------- | ------------- | -------------
|
6
7
|
**id** | **String** | An opaque, unique identifier for a template | [optional]
|
7
8
|
**name** | **String** | The name of a template | [optional]
|
8
9
|
**description** | **String** | A description of the template | [optional]
|
9
10
|
**url** | **String** | The API url for a specific template | [optional]
|
10
|
-
**localizations** | [**Array
|
11
|
+
**localizations** | [**Array<LocalizationMetaRead>**](LocalizationMetaRead.md) | A list of the template's available localization objects | [optional]
|
11
12
|
**created_at** | **DateTime** | The time of initial creation | [optional]
|
12
13
|
**updated_at** | **DateTime** | The time of last update | [optional]
|
13
14
|
|
15
|
+
## Code Sample
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'DyspatchClient'
|
19
|
+
|
20
|
+
instance = DyspatchClient::TemplateMetaRead.new(id: tem_g3L7Cw6Hp5wU,
|
21
|
+
name: null,
|
22
|
+
description: null,
|
23
|
+
url: /templates/tem_g3L7Cw6Hp5wUaf395LehwK,
|
24
|
+
localizations: null,
|
25
|
+
created_at: null,
|
26
|
+
updated_at: null)
|
27
|
+
```
|
28
|
+
|
14
29
|
|
data/docs/TemplateRead.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# DyspatchClient::TemplateRead
|
2
2
|
|
3
3
|
## Properties
|
4
|
+
|
4
5
|
Name | Type | Description | Notes
|
5
6
|
------------ | ------------- | ------------- | -------------
|
6
7
|
**id** | **String** | An opaque, unique identifier for a template | [optional]
|
@@ -10,6 +11,21 @@ Name | Type | Description | Notes
|
|
10
11
|
**compiled** | [**CompiledRead**](CompiledRead.md) | | [optional]
|
11
12
|
**created_at** | **DateTime** | The time of initial creation | [optional]
|
12
13
|
**updated_at** | **DateTime** | The time of last update | [optional]
|
13
|
-
**localizations** | [**Array
|
14
|
+
**localizations** | [**Array<LocalizationMetaRead>**](LocalizationMetaRead.md) | A list of the Template's available localizations | [optional]
|
15
|
+
|
16
|
+
## Code Sample
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
require 'DyspatchClient'
|
20
|
+
|
21
|
+
instance = DyspatchClient::TemplateRead.new(id: tem_g3L7Cw6Hp5wU,
|
22
|
+
name: null,
|
23
|
+
description: null,
|
24
|
+
url: /templates/tem_g3L7Cw6Hp5wUaf395LehwK,
|
25
|
+
compiled: null,
|
26
|
+
created_at: null,
|
27
|
+
updated_at: null,
|
28
|
+
localizations: null)
|
29
|
+
```
|
14
30
|
|
15
31
|
|
data/docs/TemplatesApi.md
CHANGED
@@ -4,18 +4,21 @@ All URIs are relative to *https://api.dyspatch.io*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**
|
8
|
-
[**
|
7
|
+
[**get_template_by_id**](TemplatesApi.md#get_template_by_id) | **GET** /templates/{templateId} | Get Template by ID
|
8
|
+
[**get_templates**](TemplatesApi.md#get_templates) | **GET** /templates | List Templates
|
9
9
|
|
10
10
|
|
11
|
-
# **templates_get**
|
12
|
-
> TemplatesRead templates_get(opts)
|
13
11
|
|
14
|
-
|
12
|
+
## get_template_by_id
|
15
13
|
|
16
|
-
|
14
|
+
> TemplateRead get_template_by_id(template_id, target_language, accept)
|
15
|
+
|
16
|
+
Get Template by ID
|
17
|
+
|
18
|
+
Gets a template object with the matching ID. If the template has published content the \"compiled\" field will contain the template .
|
17
19
|
|
18
20
|
### Example
|
21
|
+
|
19
22
|
```ruby
|
20
23
|
# load the gem
|
21
24
|
require 'dyspatch_client'
|
@@ -28,29 +31,31 @@ DyspatchClient.configure do |config|
|
|
28
31
|
end
|
29
32
|
|
30
33
|
api_instance = DyspatchClient::TemplatesApi.new
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
}
|
34
|
+
template_id = 'template_id_example' # String | A template ID
|
35
|
+
target_language = 'target_language_example' # String | The type of templating language to compile as. Should only be used for visual templates.
|
36
|
+
accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2019.10\", set the value to \"application/vnd.dyspatch.2019.10+json\"
|
35
37
|
|
36
38
|
begin
|
37
|
-
#
|
38
|
-
result = api_instance.
|
39
|
+
#Get Template by ID
|
40
|
+
result = api_instance.get_template_by_id(template_id, target_language, accept)
|
39
41
|
p result
|
40
42
|
rescue DyspatchClient::ApiError => e
|
41
|
-
puts "Exception when calling TemplatesApi->
|
43
|
+
puts "Exception when calling TemplatesApi->get_template_by_id: #{e}"
|
42
44
|
end
|
43
45
|
```
|
44
46
|
|
45
47
|
### Parameters
|
46
48
|
|
49
|
+
|
47
50
|
Name | Type | Description | Notes
|
48
51
|
------------- | ------------- | ------------- | -------------
|
49
|
-
**
|
52
|
+
**template_id** | **String**| A template ID |
|
53
|
+
**target_language** | **String**| The type of templating language to compile as. Should only be used for visual templates. |
|
54
|
+
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \"2019.10\", set the value to \"application/vnd.dyspatch.2019.10+json\" |
|
50
55
|
|
51
56
|
### Return type
|
52
57
|
|
53
|
-
[**
|
58
|
+
[**TemplateRead**](TemplateRead.md)
|
54
59
|
|
55
60
|
### Authorization
|
56
61
|
|
@@ -58,19 +63,20 @@ Name | Type | Description | Notes
|
|
58
63
|
|
59
64
|
### HTTP request headers
|
60
65
|
|
61
|
-
|
62
|
-
|
66
|
+
- **Content-Type**: Not defined
|
67
|
+
- **Accept**: application/vnd.dyspatch.2019.10+json, */*
|
63
68
|
|
64
69
|
|
70
|
+
## get_templates
|
65
71
|
|
66
|
-
|
67
|
-
> TemplateRead templates_template_id_get(template_id, target_language)
|
72
|
+
> TemplatesRead get_templates(accept, opts)
|
68
73
|
|
69
|
-
|
74
|
+
List Templates
|
70
75
|
|
71
|
-
Gets a
|
76
|
+
Gets a list of Template Metadata objects for all templates. Up to 25 results returned before results are paginated.
|
72
77
|
|
73
78
|
### Example
|
79
|
+
|
74
80
|
```ruby
|
75
81
|
# load the gem
|
76
82
|
require 'dyspatch_client'
|
@@ -83,31 +89,31 @@ DyspatchClient.configure do |config|
|
|
83
89
|
end
|
84
90
|
|
85
91
|
api_instance = DyspatchClient::TemplatesApi.new
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
92
|
+
accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2019.10\", set the value to \"application/vnd.dyspatch.2019.10+json\"
|
93
|
+
opts = {
|
94
|
+
cursor: 'cursor_example' # String | A cursor value used to retrieve a specific page from a paginated result set.
|
95
|
+
}
|
91
96
|
|
92
97
|
begin
|
93
|
-
#
|
94
|
-
result = api_instance.
|
98
|
+
#List Templates
|
99
|
+
result = api_instance.get_templates(accept, opts)
|
95
100
|
p result
|
96
101
|
rescue DyspatchClient::ApiError => e
|
97
|
-
puts "Exception when calling TemplatesApi->
|
102
|
+
puts "Exception when calling TemplatesApi->get_templates: #{e}"
|
98
103
|
end
|
99
104
|
```
|
100
105
|
|
101
106
|
### Parameters
|
102
107
|
|
108
|
+
|
103
109
|
Name | Type | Description | Notes
|
104
110
|
------------- | ------------- | ------------- | -------------
|
105
|
-
**
|
106
|
-
**
|
111
|
+
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \"2019.10\", set the value to \"application/vnd.dyspatch.2019.10+json\" |
|
112
|
+
**cursor** | **String**| A cursor value used to retrieve a specific page from a paginated result set. | [optional]
|
107
113
|
|
108
114
|
### Return type
|
109
115
|
|
110
|
-
[**
|
116
|
+
[**TemplatesRead**](TemplatesRead.md)
|
111
117
|
|
112
118
|
### Authorization
|
113
119
|
|
@@ -115,8 +121,6 @@ Name | Type | Description | Notes
|
|
115
121
|
|
116
122
|
### HTTP request headers
|
117
123
|
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
124
|
+
- **Content-Type**: Not defined
|
125
|
+
- **Accept**: application/vnd.dyspatch.2019.10+json, */*
|
122
126
|
|
data/docs/TemplatesRead.md
CHANGED
@@ -1,9 +1,19 @@
|
|
1
1
|
# DyspatchClient::TemplatesRead
|
2
2
|
|
3
3
|
## Properties
|
4
|
+
|
4
5
|
Name | Type | Description | Notes
|
5
6
|
------------ | ------------- | ------------- | -------------
|
6
7
|
**cursor** | [**Cursor**](Cursor.md) | | [optional]
|
7
|
-
**data** | [**Array
|
8
|
+
**data** | [**Array<TemplateMetaRead>**](TemplateMetaRead.md) | A list of template metadata objects | [optional]
|
9
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'DyspatchClient'
|
14
|
+
|
15
|
+
instance = DyspatchClient::TemplatesRead.new(cursor: null,
|
16
|
+
data: null)
|
17
|
+
```
|
8
18
|
|
9
19
|
|
data/dyspatch_client.gemspec
CHANGED
@@ -3,12 +3,12 @@
|
|
3
3
|
=begin
|
4
4
|
#Dyspatch API
|
5
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
|
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) - [C#](https://github.com/getdyspatch/dyspatch-dotnet) - [Go](https://github.com/getdyspatch/dyspatch-golang) - [Ruby](https://github.com/getdyspatch/dyspatch-ruby)
|
7
7
|
|
8
|
-
OpenAPI
|
8
|
+
The version of the OpenAPI document: 2019.10
|
9
9
|
Contact: support@dyspatch.io
|
10
|
-
Generated by: https://
|
11
|
-
|
10
|
+
Generated by: https://openapi-generator.tech
|
11
|
+
OpenAPI Generator version: 4.2.3-SNAPSHOT
|
12
12
|
|
13
13
|
=end
|
14
14
|
|
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.email = ["support@dyspatch.io"]
|
24
24
|
s.homepage = "https://www.dyspatch.io"
|
25
25
|
s.summary = "Dyspatch is an email production platform that helps teams create and change 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
|
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) - [C#](https://github.com/getdyspatch/dyspatch-dotnet) - [Go](https://github.com/getdyspatch/dyspatch-golang) - [Ruby](https://github.com/getdyspatch/dyspatch-ruby) "
|
27
27
|
s.license = 'Apache-2.0'
|
28
28
|
s.required_ruby_version = ">= 1.9"
|
29
29
|
|
@@ -31,12 +31,6 @@ Gem::Specification.new do |s|
|
|
31
31
|
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
32
32
|
|
33
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
34
|
|
41
35
|
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
42
36
|
s.test_files = `find spec/*`.split("\n")
|