apollo-deploy-signal-sdk 1.0.5
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 +5 -0
- data/LICENSE +21 -0
- data/README.md +79 -0
- data/docs/README.md +30 -0
- data/docs/domains/api-keys.md +92 -0
- data/docs/domains/contact-properties.md +122 -0
- data/docs/domains/contacts.md +394 -0
- data/docs/domains/emails.md +150 -0
- data/docs/domains/metrics.md +131 -0
- data/docs/domains/projects.md +127 -0
- data/docs/domains/segments.md +116 -0
- data/docs/domains/sending-domains.md +160 -0
- data/docs/domains/suppressions.md +120 -0
- data/docs/domains/topics.md +141 -0
- data/docs/domains/webhooks.md +200 -0
- data/docs/types.md +1225 -0
- data/lib/apollo-deploy-signal-sdk.rb +3 -0
- data/lib/apollo_deploy_signal_sdk/client.rb +111 -0
- data/lib/apollo_deploy_signal_sdk/errors.rb +150 -0
- data/lib/apollo_deploy_signal_sdk/resources/api-keys.rb +86 -0
- data/lib/apollo_deploy_signal_sdk/resources/contact-properties.rb +108 -0
- data/lib/apollo_deploy_signal_sdk/resources/contacts.rb +356 -0
- data/lib/apollo_deploy_signal_sdk/resources/emails.rb +128 -0
- data/lib/apollo_deploy_signal_sdk/resources/metrics.rb +122 -0
- data/lib/apollo_deploy_signal_sdk/resources/projects.rb +114 -0
- data/lib/apollo_deploy_signal_sdk/resources/segments.rb +105 -0
- data/lib/apollo_deploy_signal_sdk/resources/sending-domains.rb +144 -0
- data/lib/apollo_deploy_signal_sdk/resources/suppressions.rb +104 -0
- data/lib/apollo_deploy_signal_sdk/resources/topics.rb +126 -0
- data/lib/apollo_deploy_signal_sdk/resources/webhooks.rb +184 -0
- data/lib/apollo_deploy_signal_sdk/transport.rb +618 -0
- data/lib/apollo_deploy_signal_sdk/types.rb +4917 -0
- data/lib/apollo_deploy_signal_sdk/version.rb +5 -0
- data/lib/apollo_deploy_signal_sdk.rb +47 -0
- metadata +135 -0
|
@@ -0,0 +1,394 @@
|
|
|
1
|
+
# ContactsAPI
|
|
2
|
+
|
|
3
|
+
contacts API operations.
|
|
4
|
+
|
|
5
|
+
[Documentation index](../README.md) · [SDK overview](../../README.md) · [Generated source](../../lib/apollo_deploy_signal_sdk/resources/contacts.rb)
|
|
6
|
+
|
|
7
|
+
Client accessor: `client.contacts`
|
|
8
|
+
|
|
9
|
+
## Operations
|
|
10
|
+
|
|
11
|
+
| Method | HTTP | Path | Returns | Description |
|
|
12
|
+
|---|---|---|---|---|
|
|
13
|
+
| [`list_contacts`](#list-contacts) | `GET` | `/v1/projects/{projectId}/contacts` | `ContactPageResponse` | — |
|
|
14
|
+
| [`get_contact`](#get-contact) | `GET` | `/v1/projects/{projectId}/contacts/{contactId}` | `ContactResponse` | — |
|
|
15
|
+
| [`list_contact_segments`](#list-contact-segments) | `GET` | `/v1/projects/{projectId}/contacts/{contactId}/segments` | `ListContactSegmentsResponse` | — |
|
|
16
|
+
| [`get_contact_topics`](#get-contact-topics) | `GET` | `/v1/projects/{projectId}/contacts/{contactId}/topics` | `GetContactTopicsResponse` | — |
|
|
17
|
+
| [`create_contact`](#create-contact) | `POST` | `/v1/projects/{projectId}/contacts` | `ContactResponse` | — |
|
|
18
|
+
| [`update_contact`](#update-contact) | `PATCH` | `/v1/projects/{projectId}/contacts/{contactId}` | `ContactResponse` | — |
|
|
19
|
+
| [`delete_contact`](#delete-contact) | `DELETE` | `/v1/projects/{projectId}/contacts/{contactId}` | `nil` | — |
|
|
20
|
+
| [`upload_contact_image`](#upload-contact-image) | `POST` | `/v1/projects/{projectId}/contacts/{contactId}/image` | `ContactResponse` | — |
|
|
21
|
+
| [`set_contact_image_url`](#set-contact-image-url) | `PUT` | `/v1/projects/{projectId}/contacts/{contactId}/image` | `ContactResponse` | — |
|
|
22
|
+
| [`delete_contact_image`](#delete-contact-image) | `DELETE` | `/v1/projects/{projectId}/contacts/{contactId}/image` | `nil` | — |
|
|
23
|
+
| [`add_contact_to_segment`](#add-contact-to-segment) | `POST` | `/v1/projects/{projectId}/contacts/{contactId}/segments` | `nil` | — |
|
|
24
|
+
| [`remove_contact_from_segment`](#remove-contact-from-segment) | `DELETE` | `/v1/projects/{projectId}/contacts/{contactId}/segments/{segmentId}` | `nil` | — |
|
|
25
|
+
| [`update_contact_topics`](#update-contact-topics) | `PATCH` | `/v1/projects/{projectId}/contacts/{contactId}/topics` | `nil` | — |
|
|
26
|
+
| [`get_contact_activity`](#get-contact-activity) | `GET` | `/v1/projects/{projectId}/contacts/{contactId}/activity` | `GetContactActivityResponse` | — |
|
|
27
|
+
| [`get_contact_engagement_score`](#get-contact-engagement-score) | `GET` | `/v1/projects/{projectId}/contacts/{contactId}/engagement` | `EngagementScoreResponse` | — |
|
|
28
|
+
| [`get_contact_email_validation_status`](#get-contact-email-validation-status) | `GET` | `/v1/projects/{projectId}/contacts/{contactId}/email-validation` | `EmailValidationStatusResponse` | — |
|
|
29
|
+
| [`refresh_contact_engagement_score`](#refresh-contact-engagement-score) | `POST` | `/v1/projects/{projectId}/contacts/{contactId}/engagement/refresh` | `EngagementScoreResponse` | — |
|
|
30
|
+
| [`record_contact_email_validation`](#record-contact-email-validation) | `POST` | `/v1/projects/{projectId}/contacts/{contactId}/email-validation` | `nil` | — |
|
|
31
|
+
|
|
32
|
+
## list_contacts
|
|
33
|
+
|
|
34
|
+
`GET /v1/projects/{projectId}/contacts`
|
|
35
|
+
|
|
36
|
+
### Parameters
|
|
37
|
+
|
|
38
|
+
| Name | Location | Type | Required | Description |
|
|
39
|
+
|---|---|---|:---:|---|
|
|
40
|
+
| `projectId` | Path | `String` | Yes | — |
|
|
41
|
+
|
|
42
|
+
### Response
|
|
43
|
+
|
|
44
|
+
- Response schema selectors: `200`
|
|
45
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
46
|
+
- Type: `ContactPageResponse`
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
## get_contact
|
|
50
|
+
|
|
51
|
+
`GET /v1/projects/{projectId}/contacts/{contactId}`
|
|
52
|
+
|
|
53
|
+
### Parameters
|
|
54
|
+
|
|
55
|
+
| Name | Location | Type | Required | Description |
|
|
56
|
+
|---|---|---|:---:|---|
|
|
57
|
+
| `projectId` | Path | `String` | Yes | — |
|
|
58
|
+
| `contactId` | Path | `String` | Yes | — |
|
|
59
|
+
|
|
60
|
+
### Response
|
|
61
|
+
|
|
62
|
+
- Response schema selectors: `200`
|
|
63
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
64
|
+
- Type: `ContactResponse`
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
## list_contact_segments
|
|
68
|
+
|
|
69
|
+
`GET /v1/projects/{projectId}/contacts/{contactId}/segments`
|
|
70
|
+
|
|
71
|
+
### Parameters
|
|
72
|
+
|
|
73
|
+
| Name | Location | Type | Required | Description |
|
|
74
|
+
|---|---|---|:---:|---|
|
|
75
|
+
| `projectId` | Path | `String` | Yes | — |
|
|
76
|
+
| `contactId` | Path | `String` | Yes | — |
|
|
77
|
+
|
|
78
|
+
### Response
|
|
79
|
+
|
|
80
|
+
- Response schema selectors: `200`
|
|
81
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
82
|
+
- Type: `ListContactSegmentsResponse`
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
## get_contact_topics
|
|
86
|
+
|
|
87
|
+
`GET /v1/projects/{projectId}/contacts/{contactId}/topics`
|
|
88
|
+
|
|
89
|
+
### Parameters
|
|
90
|
+
|
|
91
|
+
| Name | Location | Type | Required | Description |
|
|
92
|
+
|---|---|---|:---:|---|
|
|
93
|
+
| `projectId` | Path | `String` | Yes | — |
|
|
94
|
+
| `contactId` | Path | `String` | Yes | — |
|
|
95
|
+
|
|
96
|
+
### Response
|
|
97
|
+
|
|
98
|
+
- Response schema selectors: `200`
|
|
99
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
100
|
+
- Type: `GetContactTopicsResponse`
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
## create_contact
|
|
104
|
+
|
|
105
|
+
`POST /v1/projects/{projectId}/contacts`
|
|
106
|
+
|
|
107
|
+
### Parameters
|
|
108
|
+
|
|
109
|
+
| Name | Location | Type | Required | Description |
|
|
110
|
+
|---|---|---|:---:|---|
|
|
111
|
+
| `projectId` | Path | `String` | Yes | — |
|
|
112
|
+
|
|
113
|
+
### Request body
|
|
114
|
+
|
|
115
|
+
- Type: `CreateContactBody`
|
|
116
|
+
- Required: Yes
|
|
117
|
+
- Content type: `application/json`
|
|
118
|
+
|
|
119
|
+
### Response
|
|
120
|
+
|
|
121
|
+
- Response schema selectors: `201`
|
|
122
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
123
|
+
- Type: `ContactResponse`
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
## update_contact
|
|
127
|
+
|
|
128
|
+
`PATCH /v1/projects/{projectId}/contacts/{contactId}`
|
|
129
|
+
|
|
130
|
+
### Parameters
|
|
131
|
+
|
|
132
|
+
| Name | Location | Type | Required | Description |
|
|
133
|
+
|---|---|---|:---:|---|
|
|
134
|
+
| `projectId` | Path | `String` | Yes | — |
|
|
135
|
+
| `contactId` | Path | `String` | Yes | — |
|
|
136
|
+
|
|
137
|
+
### Request body
|
|
138
|
+
|
|
139
|
+
- Type: `UpdateContactBody`
|
|
140
|
+
- Required: Yes
|
|
141
|
+
- Content type: `application/json`
|
|
142
|
+
|
|
143
|
+
### Response
|
|
144
|
+
|
|
145
|
+
- Response schema selectors: `200`
|
|
146
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
147
|
+
- Type: `ContactResponse`
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
## delete_contact
|
|
151
|
+
|
|
152
|
+
`DELETE /v1/projects/{projectId}/contacts/{contactId}`
|
|
153
|
+
|
|
154
|
+
### Parameters
|
|
155
|
+
|
|
156
|
+
| Name | Location | Type | Required | Description |
|
|
157
|
+
|---|---|---|:---:|---|
|
|
158
|
+
| `projectId` | Path | `String` | Yes | — |
|
|
159
|
+
| `contactId` | Path | `String` | Yes | — |
|
|
160
|
+
|
|
161
|
+
### Response
|
|
162
|
+
|
|
163
|
+
- Response schema selectors: `2XX`
|
|
164
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
165
|
+
- Type: `nil`
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
## upload_contact_image
|
|
169
|
+
|
|
170
|
+
`POST /v1/projects/{projectId}/contacts/{contactId}/image`
|
|
171
|
+
|
|
172
|
+
### Parameters
|
|
173
|
+
|
|
174
|
+
| Name | Location | Type | Required | Description |
|
|
175
|
+
|---|---|---|:---:|---|
|
|
176
|
+
| `projectId` | Path | `String` | Yes | — |
|
|
177
|
+
| `contactId` | Path | `String` | Yes | — |
|
|
178
|
+
|
|
179
|
+
### Response
|
|
180
|
+
|
|
181
|
+
- Response schema selectors: `200`
|
|
182
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
183
|
+
- Type: `ContactResponse`
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
## set_contact_image_url
|
|
187
|
+
|
|
188
|
+
`PUT /v1/projects/{projectId}/contacts/{contactId}/image`
|
|
189
|
+
|
|
190
|
+
### Parameters
|
|
191
|
+
|
|
192
|
+
| Name | Location | Type | Required | Description |
|
|
193
|
+
|---|---|---|:---:|---|
|
|
194
|
+
| `projectId` | Path | `String` | Yes | — |
|
|
195
|
+
| `contactId` | Path | `String` | Yes | — |
|
|
196
|
+
|
|
197
|
+
### Request body
|
|
198
|
+
|
|
199
|
+
- Type: `SetImageUrlBody`
|
|
200
|
+
- Required: Yes
|
|
201
|
+
- Content type: `application/json`
|
|
202
|
+
|
|
203
|
+
### Response
|
|
204
|
+
|
|
205
|
+
- Response schema selectors: `200`
|
|
206
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
207
|
+
- Type: `ContactResponse`
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
## delete_contact_image
|
|
211
|
+
|
|
212
|
+
`DELETE /v1/projects/{projectId}/contacts/{contactId}/image`
|
|
213
|
+
|
|
214
|
+
### Parameters
|
|
215
|
+
|
|
216
|
+
| Name | Location | Type | Required | Description |
|
|
217
|
+
|---|---|---|:---:|---|
|
|
218
|
+
| `projectId` | Path | `String` | Yes | — |
|
|
219
|
+
| `contactId` | Path | `String` | Yes | — |
|
|
220
|
+
|
|
221
|
+
### Response
|
|
222
|
+
|
|
223
|
+
- Response schema selectors: `2XX`
|
|
224
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
225
|
+
- Type: `nil`
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
## add_contact_to_segment
|
|
229
|
+
|
|
230
|
+
`POST /v1/projects/{projectId}/contacts/{contactId}/segments`
|
|
231
|
+
|
|
232
|
+
### Parameters
|
|
233
|
+
|
|
234
|
+
| Name | Location | Type | Required | Description |
|
|
235
|
+
|---|---|---|:---:|---|
|
|
236
|
+
| `projectId` | Path | `String` | Yes | — |
|
|
237
|
+
| `contactId` | Path | `String` | Yes | — |
|
|
238
|
+
|
|
239
|
+
### Request body
|
|
240
|
+
|
|
241
|
+
- Type: `AddToSegmentBody`
|
|
242
|
+
- Required: Yes
|
|
243
|
+
- Content type: `application/json`
|
|
244
|
+
|
|
245
|
+
### Response
|
|
246
|
+
|
|
247
|
+
- Response schema selectors: `2XX`
|
|
248
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
249
|
+
- Type: `nil`
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
## remove_contact_from_segment
|
|
253
|
+
|
|
254
|
+
`DELETE /v1/projects/{projectId}/contacts/{contactId}/segments/{segmentId}`
|
|
255
|
+
|
|
256
|
+
### Parameters
|
|
257
|
+
|
|
258
|
+
| Name | Location | Type | Required | Description |
|
|
259
|
+
|---|---|---|:---:|---|
|
|
260
|
+
| `projectId` | Path | `String` | Yes | — |
|
|
261
|
+
| `contactId` | Path | `String` | Yes | — |
|
|
262
|
+
| `segmentId` | Path | `String` | Yes | — |
|
|
263
|
+
|
|
264
|
+
### Response
|
|
265
|
+
|
|
266
|
+
- Response schema selectors: `2XX`
|
|
267
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
268
|
+
- Type: `nil`
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
## update_contact_topics
|
|
272
|
+
|
|
273
|
+
`PATCH /v1/projects/{projectId}/contacts/{contactId}/topics`
|
|
274
|
+
|
|
275
|
+
### Parameters
|
|
276
|
+
|
|
277
|
+
| Name | Location | Type | Required | Description |
|
|
278
|
+
|---|---|---|:---:|---|
|
|
279
|
+
| `projectId` | Path | `String` | Yes | — |
|
|
280
|
+
| `contactId` | Path | `String` | Yes | — |
|
|
281
|
+
|
|
282
|
+
### Request body
|
|
283
|
+
|
|
284
|
+
- Type: `UpdateTopicsBody`
|
|
285
|
+
- Required: Yes
|
|
286
|
+
- Content type: `application/json`
|
|
287
|
+
|
|
288
|
+
### Response
|
|
289
|
+
|
|
290
|
+
- Response schema selectors: `2XX`
|
|
291
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
292
|
+
- Type: `nil`
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
## get_contact_activity
|
|
296
|
+
|
|
297
|
+
`GET /v1/projects/{projectId}/contacts/{contactId}/activity`
|
|
298
|
+
|
|
299
|
+
### Parameters
|
|
300
|
+
|
|
301
|
+
| Name | Location | Type | Required | Description |
|
|
302
|
+
|---|---|---|:---:|---|
|
|
303
|
+
| `projectId` | Path | `String` | Yes | — |
|
|
304
|
+
| `contactId` | Path | `String` | Yes | — |
|
|
305
|
+
|
|
306
|
+
### Response
|
|
307
|
+
|
|
308
|
+
- Response schema selectors: `200`
|
|
309
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
310
|
+
- Type: `GetContactActivityResponse`
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
## get_contact_engagement_score
|
|
314
|
+
|
|
315
|
+
`GET /v1/projects/{projectId}/contacts/{contactId}/engagement`
|
|
316
|
+
|
|
317
|
+
### Parameters
|
|
318
|
+
|
|
319
|
+
| Name | Location | Type | Required | Description |
|
|
320
|
+
|---|---|---|:---:|---|
|
|
321
|
+
| `projectId` | Path | `String` | Yes | — |
|
|
322
|
+
| `contactId` | Path | `String` | Yes | — |
|
|
323
|
+
|
|
324
|
+
### Response
|
|
325
|
+
|
|
326
|
+
- Response schema selectors: `200`
|
|
327
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
328
|
+
- Type: `EngagementScoreResponse`
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
## get_contact_email_validation_status
|
|
332
|
+
|
|
333
|
+
`GET /v1/projects/{projectId}/contacts/{contactId}/email-validation`
|
|
334
|
+
|
|
335
|
+
### Parameters
|
|
336
|
+
|
|
337
|
+
| Name | Location | Type | Required | Description |
|
|
338
|
+
|---|---|---|:---:|---|
|
|
339
|
+
| `projectId` | Path | `String` | Yes | — |
|
|
340
|
+
| `contactId` | Path | `String` | Yes | — |
|
|
341
|
+
|
|
342
|
+
### Response
|
|
343
|
+
|
|
344
|
+
- Response schema selectors: `200`
|
|
345
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
346
|
+
- Type: `EmailValidationStatusResponse`
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
## refresh_contact_engagement_score
|
|
350
|
+
|
|
351
|
+
`POST /v1/projects/{projectId}/contacts/{contactId}/engagement/refresh`
|
|
352
|
+
|
|
353
|
+
### Parameters
|
|
354
|
+
|
|
355
|
+
| Name | Location | Type | Required | Description |
|
|
356
|
+
|---|---|---|:---:|---|
|
|
357
|
+
| `projectId` | Path | `String` | Yes | — |
|
|
358
|
+
| `contactId` | Path | `String` | Yes | — |
|
|
359
|
+
|
|
360
|
+
### Response
|
|
361
|
+
|
|
362
|
+
- Response schema selectors: `200`
|
|
363
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
364
|
+
- Type: `EngagementScoreResponse`
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
## record_contact_email_validation
|
|
368
|
+
|
|
369
|
+
`POST /v1/projects/{projectId}/contacts/{contactId}/email-validation`
|
|
370
|
+
|
|
371
|
+
### Parameters
|
|
372
|
+
|
|
373
|
+
| Name | Location | Type | Required | Description |
|
|
374
|
+
|---|---|---|:---:|---|
|
|
375
|
+
| `projectId` | Path | `String` | Yes | — |
|
|
376
|
+
| `contactId` | Path | `String` | Yes | — |
|
|
377
|
+
|
|
378
|
+
### Request body
|
|
379
|
+
|
|
380
|
+
- Type: `RecordValidationBody`
|
|
381
|
+
- Required: Yes
|
|
382
|
+
- Content type: `application/json`
|
|
383
|
+
|
|
384
|
+
### Response
|
|
385
|
+
|
|
386
|
+
- Response schema selectors: `2XX`
|
|
387
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
388
|
+
- Type: `nil`
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
---
|
|
392
|
+
|
|
393
|
+
Generated from the Apollo Signal API manifest by Tesseract.
|
|
394
|
+
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
# EmailsAPI
|
|
2
|
+
|
|
3
|
+
emails API operations.
|
|
4
|
+
|
|
5
|
+
[Documentation index](../README.md) · [SDK overview](../../README.md) · [Generated source](../../lib/apollo_deploy_signal_sdk/resources/emails.rb)
|
|
6
|
+
|
|
7
|
+
Client accessor: `client.emails`
|
|
8
|
+
|
|
9
|
+
## Operations
|
|
10
|
+
|
|
11
|
+
| Method | HTTP | Path | Returns | Description |
|
|
12
|
+
|---|---|---|---|---|
|
|
13
|
+
| [`send_email`](#send-email) | `POST` | `/v1/emails` | `SendEmailResponse` | — |
|
|
14
|
+
| [`get_email`](#get-email) | `GET` | `/v1/emails/{emailId}` | `EmailDetailResponse` | — |
|
|
15
|
+
| [`batch_send_emails`](#batch-send-emails) | `POST` | `/v1/emails/batch` | `BatchSendResponse` | — |
|
|
16
|
+
| [`cancel_email`](#cancel-email) | `DELETE` | `/v1/emails/{emailId}` | `CancelResponse` | — |
|
|
17
|
+
| [`bulk_cancel_emails`](#bulk-cancel-emails) | `DELETE` | `/v1/emails` | `BulkCancelResponse` | — |
|
|
18
|
+
| [`issue_stream_token`](#issue-stream-token) | `POST` | `/v1/emails/{projectId}/stream/token` | `StreamTokenResponse` | — |
|
|
19
|
+
| [`stream_email_events`](#stream-email-events) | `GET` | `/v1/emails/stream` | `StreamEventResponse` | — |
|
|
20
|
+
| [`validate_links`](#validate-links) | `POST` | `/v1/emails/validate` | `ValidateLinksResponse` | — |
|
|
21
|
+
|
|
22
|
+
## send_email
|
|
23
|
+
|
|
24
|
+
`POST /v1/emails`
|
|
25
|
+
|
|
26
|
+
### Request body
|
|
27
|
+
|
|
28
|
+
- Type: `SendEmailRequest`
|
|
29
|
+
- Required: Yes
|
|
30
|
+
- Content type: `application/json`
|
|
31
|
+
|
|
32
|
+
### Response
|
|
33
|
+
|
|
34
|
+
- Response schema selectors: `201`
|
|
35
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
36
|
+
- Type: `SendEmailResponse`
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
## get_email
|
|
40
|
+
|
|
41
|
+
`GET /v1/emails/{emailId}`
|
|
42
|
+
|
|
43
|
+
### Parameters
|
|
44
|
+
|
|
45
|
+
| Name | Location | Type | Required | Description |
|
|
46
|
+
|---|---|---|:---:|---|
|
|
47
|
+
| `emailId` | Path | `String` | Yes | — |
|
|
48
|
+
|
|
49
|
+
### Response
|
|
50
|
+
|
|
51
|
+
- Response schema selectors: `200`
|
|
52
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
53
|
+
- Type: `EmailDetailResponse`
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
## batch_send_emails
|
|
57
|
+
|
|
58
|
+
`POST /v1/emails/batch`
|
|
59
|
+
|
|
60
|
+
### Request body
|
|
61
|
+
|
|
62
|
+
- Type: `BatchSendRequest`
|
|
63
|
+
- Required: Yes
|
|
64
|
+
- Content type: `application/json`
|
|
65
|
+
|
|
66
|
+
### Response
|
|
67
|
+
|
|
68
|
+
- Response schema selectors: `200`
|
|
69
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
70
|
+
- Type: `BatchSendResponse`
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
## cancel_email
|
|
74
|
+
|
|
75
|
+
`DELETE /v1/emails/{emailId}`
|
|
76
|
+
|
|
77
|
+
### Parameters
|
|
78
|
+
|
|
79
|
+
| Name | Location | Type | Required | Description |
|
|
80
|
+
|---|---|---|:---:|---|
|
|
81
|
+
| `emailId` | Path | `String` | Yes | — |
|
|
82
|
+
|
|
83
|
+
### Response
|
|
84
|
+
|
|
85
|
+
- Response schema selectors: `200`
|
|
86
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
87
|
+
- Type: `CancelResponse`
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
## bulk_cancel_emails
|
|
91
|
+
|
|
92
|
+
`DELETE /v1/emails`
|
|
93
|
+
|
|
94
|
+
### Response
|
|
95
|
+
|
|
96
|
+
- Response schema selectors: `200`
|
|
97
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
98
|
+
- Type: `BulkCancelResponse`
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
## issue_stream_token
|
|
102
|
+
|
|
103
|
+
`POST /v1/emails/{projectId}/stream/token`
|
|
104
|
+
|
|
105
|
+
### Parameters
|
|
106
|
+
|
|
107
|
+
| Name | Location | Type | Required | Description |
|
|
108
|
+
|---|---|---|:---:|---|
|
|
109
|
+
| `projectId` | Path | `String` | Yes | — |
|
|
110
|
+
|
|
111
|
+
### Response
|
|
112
|
+
|
|
113
|
+
- Response schema selectors: `200`
|
|
114
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
115
|
+
- Type: `StreamTokenResponse`
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
## stream_email_events
|
|
119
|
+
|
|
120
|
+
`GET /v1/emails/stream`
|
|
121
|
+
|
|
122
|
+
### Response
|
|
123
|
+
|
|
124
|
+
- Response schema selectors: `200`
|
|
125
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
126
|
+
- Type: `StreamEventResponse`
|
|
127
|
+
- Streaming: Server-Sent Events with payload `StreamEventResponse`
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
## validate_links
|
|
131
|
+
|
|
132
|
+
`POST /v1/emails/validate`
|
|
133
|
+
|
|
134
|
+
### Request body
|
|
135
|
+
|
|
136
|
+
- Type: `ValidateLinksRequest`
|
|
137
|
+
- Required: Yes
|
|
138
|
+
- Content type: `application/json`
|
|
139
|
+
|
|
140
|
+
### Response
|
|
141
|
+
|
|
142
|
+
- Response schema selectors: `200`
|
|
143
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
144
|
+
- Type: `ValidateLinksResponse`
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
Generated from the Apollo Signal API manifest by Tesseract.
|
|
150
|
+
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
# MetricsAPI
|
|
2
|
+
|
|
3
|
+
metrics API operations.
|
|
4
|
+
|
|
5
|
+
[Documentation index](../README.md) · [SDK overview](../../README.md) · [Generated source](../../lib/apollo_deploy_signal_sdk/resources/metrics.rb)
|
|
6
|
+
|
|
7
|
+
Client accessor: `client.metrics`
|
|
8
|
+
|
|
9
|
+
## Operations
|
|
10
|
+
|
|
11
|
+
| Method | HTTP | Path | Returns | Description |
|
|
12
|
+
|---|---|---|---|---|
|
|
13
|
+
| [`get_topic_performance`](#get-topic-performance) | `GET` | `/v1/metrics/topics/{id}` | `TopicPerformanceResponse` | — |
|
|
14
|
+
| [`get_email_performance`](#get-email-performance) | `GET` | `/v1/metrics/emails/{id}` | `EmailPerformanceResponse` | — |
|
|
15
|
+
| [`get_email_engagement`](#get-email-engagement) | `GET` | `/v1/metrics/emails/{id}/engagement` | `EmailReadScrollAnalyticsResponse` | — |
|
|
16
|
+
| [`get_project_metrics_summary`](#get-project-metrics-summary) | `GET` | `/v1/metrics/summary` | `ProjectMetricsSummaryResponse` | — |
|
|
17
|
+
| [`get_project_metrics_timeline`](#get-project-metrics-timeline) | `GET` | `/v1/metrics/timeline` | `ProjectMetricsTimelineResponse` | — |
|
|
18
|
+
| [`get_metrics_advisor`](#get-metrics-advisor) | `GET` | `/v1/metrics/advisor` | `AdvisorReportResponse` | — |
|
|
19
|
+
|
|
20
|
+
## get_topic_performance
|
|
21
|
+
|
|
22
|
+
`GET /v1/metrics/topics/{id}`
|
|
23
|
+
|
|
24
|
+
### Parameters
|
|
25
|
+
|
|
26
|
+
| Name | Location | Type | Required | Description |
|
|
27
|
+
|---|---|---|:---:|---|
|
|
28
|
+
| `id` | Path | `String` | Yes | — |
|
|
29
|
+
| `window` | Query | `String` | No | Time window. |
|
|
30
|
+
| `projectId` | Query | `String` | No | Required for session auth; ignored for API key auth. |
|
|
31
|
+
|
|
32
|
+
### Response
|
|
33
|
+
|
|
34
|
+
- Response schema selectors: `200`
|
|
35
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
36
|
+
- Type: `TopicPerformanceResponse`
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
## get_email_performance
|
|
40
|
+
|
|
41
|
+
`GET /v1/metrics/emails/{id}`
|
|
42
|
+
|
|
43
|
+
### Parameters
|
|
44
|
+
|
|
45
|
+
| Name | Location | Type | Required | Description |
|
|
46
|
+
|---|---|---|:---:|---|
|
|
47
|
+
| `id` | Path | `String` | Yes | — |
|
|
48
|
+
|
|
49
|
+
### Response
|
|
50
|
+
|
|
51
|
+
- Response schema selectors: `200`
|
|
52
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
53
|
+
- Type: `EmailPerformanceResponse`
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
## get_email_engagement
|
|
57
|
+
|
|
58
|
+
`GET /v1/metrics/emails/{id}/engagement`
|
|
59
|
+
|
|
60
|
+
### Parameters
|
|
61
|
+
|
|
62
|
+
| Name | Location | Type | Required | Description |
|
|
63
|
+
|---|---|---|:---:|---|
|
|
64
|
+
| `id` | Path | `String` | Yes | — |
|
|
65
|
+
|
|
66
|
+
### Response
|
|
67
|
+
|
|
68
|
+
- Response schema selectors: `200`
|
|
69
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
70
|
+
- Type: `EmailReadScrollAnalyticsResponse`
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
## get_project_metrics_summary
|
|
74
|
+
|
|
75
|
+
`GET /v1/metrics/summary`
|
|
76
|
+
|
|
77
|
+
### Parameters
|
|
78
|
+
|
|
79
|
+
| Name | Location | Type | Required | Description |
|
|
80
|
+
|---|---|---|:---:|---|
|
|
81
|
+
| `window` | Query | `String` | No | Metrics time window. |
|
|
82
|
+
| `projectId` | Query | `String` | No | Required for session auth; ignored for API key auth. |
|
|
83
|
+
|
|
84
|
+
### Response
|
|
85
|
+
|
|
86
|
+
- Response schema selectors: `200`
|
|
87
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
88
|
+
- Type: `ProjectMetricsSummaryResponse`
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
## get_project_metrics_timeline
|
|
92
|
+
|
|
93
|
+
`GET /v1/metrics/timeline`
|
|
94
|
+
|
|
95
|
+
### Parameters
|
|
96
|
+
|
|
97
|
+
| Name | Location | Type | Required | Description |
|
|
98
|
+
|---|---|---|:---:|---|
|
|
99
|
+
| `window` | Query | `String` | No | Metrics time window. |
|
|
100
|
+
| `granularity` | Query | `String` | No | `hour` or `day`. |
|
|
101
|
+
| `format` | Query | `String` | No | `compact` or `detailed`. |
|
|
102
|
+
| `projectId` | Query | `String` | No | Required for session auth; ignored for API key auth. |
|
|
103
|
+
|
|
104
|
+
### Response
|
|
105
|
+
|
|
106
|
+
- Response schema selectors: `200`
|
|
107
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
108
|
+
- Type: `ProjectMetricsTimelineResponse`
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
## get_metrics_advisor
|
|
112
|
+
|
|
113
|
+
`GET /v1/metrics/advisor`
|
|
114
|
+
|
|
115
|
+
### Parameters
|
|
116
|
+
|
|
117
|
+
| Name | Location | Type | Required | Description |
|
|
118
|
+
|---|---|---|:---:|---|
|
|
119
|
+
| `projectId` | Query | `String` | No | Required for session auth; ignored for API key auth. |
|
|
120
|
+
|
|
121
|
+
### Response
|
|
122
|
+
|
|
123
|
+
- Response schema selectors: `200`
|
|
124
|
+
- HTTP success handling: every 2xx response is accepted; selectors identify the schema contract used for decoding.
|
|
125
|
+
- Type: `AdvisorReportResponse`
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
Generated from the Apollo Signal API manifest by Tesseract.
|
|
131
|
+
|